From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UBgxB9u3MmREtwAASxT56A (envelope-from ) for ; Sun, 09 Apr 2023 15:04:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eGjrBtu3MmSNJwEAauVa8A (envelope-from ) for ; Sun, 09 Apr 2023 15:04:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A509C7623 for ; Sun, 9 Apr 2023 15:04:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plUiA-00030D-TA; Sun, 09 Apr 2023 09:04:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plUi7-0002zk-GE for help-guix@gnu.org; Sun, 09 Apr 2023 09:04:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plUi5-0005CC-AF for help-guix@gnu.org; Sun, 09 Apr 2023 09:03:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B593A2400DF for ; Sun, 9 Apr 2023 15:03:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681045434; bh=xXTnUM9WdkSnLnsmjR/2KURRPfrdC5qw9RIJFziUzzs=; h=From:To:Cc:Subject:Date:From; b=jEtEmyVfKTwlG9PAoQyWhMXggXyiSlGJjYDngsvCMrWQYYOwrpUnPob+PRRY+v/sn SCL30/PUv5qzjpkBPp92+ZeGseSouM+ss1ytVZYUEJiNaIvER2I+ZvT5UhdtoaNjrV v909xi3M1KDbYXel5265z2YzQg2i+tIlt9krbGxVTdBq/g30V060PNT+0M4+h//eUO kplEmr2iZejcflTj3X5gDdSuLlFWhferWWxMa+ZH/n6PBWBMwuFwyXQxK9Nkk6Jo6Y sTLbRnfdupl8NaYavBxSEbNU3tKM4MwBAgdnlulocrny3ODzK2Z+strYLU5qt+mgIv 71qkdMHtwCgug== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PvXNn0yFNz9rxG; Sun, 9 Apr 2023 15:03:52 +0200 (CEST) References: <87lejczclp.fsf@posteo.net> <87zg7jk753.fsf@gmail.com> <87sfd9wv7o.fsf@posteo.net> From: Kyle Andrews To: "(" Cc: Simon Tournier , help-guix Subject: Re: How to copy a file to the package /bin folder using the r-build-system? Date: Sun, 09 Apr 2023 12:54:39 +0000 In-reply-to: Message-ID: <87pm8djjgo.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=kyle@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681045466; a=rsa-sha256; cv=none; b=GLQ3wlk+CvSjIE/e9EB1TnkyjYLDew3Zof8s8UtQKpDp8/JAI+QcKGGSlkDNCdKo1s7qLX exjfR/qwSUmhPk6M3JJEY9DOT67CuW0lPrvrXWDNaIgFM0C/AxYK8/Mq6JH2XccJ4zaVAW RdvQy31v5H9nsPjGv6uexOesIYUNgbFxlMxeD3fG2lFWSot+e9jwiyIuST8gEGdMSHl7oi PWHsQKzQs2stBIYHdu3OMmPmYlNnd+E2GNsPChXTmZz64HU1UnkiC8aiU0QDMLkMwmSnOB FtHA5eNAw8DT70Jm80fHihuUFj5qezgsIebyrwfnOycGs7sASAODmvbFhr9E5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jEtEmyVf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681045466; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jwzuruInfUjCvMiVx5Qj2c8HyA7MKLEHW4CWwTpE65g=; b=aSspJOABOdPZPVX5fuDQboweg4SD6UwOcnS10uQuf81jIhSwTuRoZqaom/C7lO2B8C1iNS ZMPcDEYRDYt8IIyD6MoHOpglLpYMCce/ebVVFSRu/gN+1RgInQbgJYdE1LC1M67fHLN5aO cYVOZVmfYd/NPTlE2LU+wVGtxbPEV8A65UFkU/zpwbHNWuiDUYp1DC1gI9SrI4opP2nssg 6Ti1pH1AXR3gw7bFYLV/RK8vxSl+iEoNzeb71gYL5r/8SnGRXlT7i7nTWmP1Zo3qgidO0+ MV5VEl2NRivowGqRu5HKUanA3g3CxQDPcR4BXntu1hYltcHPv8+GFZEcP30D3g== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jEtEmyVf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.71 X-Spam-Score: -5.71 X-Migadu-Queue-Id: A509C7623 X-TUID: laEGBynv6vAn "(" writes: > [[PGP Signed Part:Undecided]] > Heya, > > On Sun Apr 9, 2023 at 4:15 AM BST, Kyle Andrews wrote: >> > (lambda _ >> > (mkdir (string-append #$output "/bin")) >> > (copy-file "inst/bin/r" >> > (string-append #$output "/bin/r"))) >> >> This perfect makes sense now and is much more concise. > > Actually, you can even do: > > ``` > (lambda _ > (install-file "inst/bin/r" > (string-append #$output "/bin"))) > ``` That is nice and intentional! >> ``` >> $ guix build -L dev r-littler >> ... >> ld: cannot find -lz >> collect2: error: ld returned 1 exit status >> ... >> ``` >> >> I know I have seen that error before, but I thought it was fixed by >> importing compression, prefixing (guix licenses) to prevent a >> namespace collision, and including zlib in the package inputs. > > I think (!) you also need to import (gnu packages pkg-config) and add > PKG-CONFIG to NATIVE-INPUTS. That fixed it! Thanks! > -- (