From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id nE82GV+HMmQQvwAASxT56A (envelope-from ) for ; Sun, 09 Apr 2023 11:37:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MAiXF1+HMmTxSwAAG6o9tA (envelope-from ) for ; Sun, 09 Apr 2023 11:37:35 +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 031DF207F6 for ; Sun, 9 Apr 2023 11:37:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plRTr-0005dA-3J; Sun, 09 Apr 2023 05:37:03 -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 1plRTo-0005cu-Op for help-guix@gnu.org; Sun, 09 Apr 2023 05:37:00 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plRTm-0005z3-Ai for help-guix@gnu.org; Sun, 09 Apr 2023 05:37:00 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 03F5C4021D; Sun, 9 Apr 2023 11:36:56 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rv-mdA5rjst8; Sun, 9 Apr 2023 11:36:55 +0200 (CEST) Content-Type: multipart/signed; boundary=36afad5039b5c282174225a025e6ea462130a686f7f01ced13d70334e5fa; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1681033015; bh=jDNWlYj4NSQypXVoeIcIzmri4Q9382IS858cYPRE1sI=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=IC+4qYQ9iT5sHzY8ojYCjddBVfPvaKKReGQaWC2mc4++fenR5DUctFQP2XnPTQOZD aInQlLlxHOUQ3yjuvUVh173IDqLGfsxw/RC7cOLWbrvfG14nO2kHqDbIdOA6D6ecpg 9iwlElkzWRHqAzU4T+oGTOUcZ1nYpcQhJygzigX18pj0LeODh7zHWqV8YOfxbXRLLP GERTal8snTzY6GBqJMV+Vw/Y6xwHQHiAl7gzCOtd2yh8ITT2JTWotGZiJeuKfcX0Cx R6B7vhzqwKG2xXH53DK994ZEDjQCrjsM3tv4t555VXhrzPB21UoF7zm6+wviuaBBXm 8KxgEjLgkBMPw== Date: Sun, 09 Apr 2023 10:36:50 +0100 Message-Id: Cc: "help-guix" Subject: Re: How to copy a file to the package /bin folder using the r-build-system? From: "(" To: "Kyle Andrews" , "Simon Tournier" References: <87lejczclp.fsf@posteo.net> <87zg7jk753.fsf@gmail.com> <87sfd9wv7o.fsf@posteo.net> In-Reply-To: <87sfd9wv7o.fsf@posteo.net> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, MIME_HEADER_CTYPE_ONLY=0.1, 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=1681033055; a=rsa-sha256; cv=none; b=Q3kwscuwYGsXCocbdATt0i16faYcquyeQXsYOIO1vkVszrwqgSMwbleCmtM0dtlu90FCg+ mym5Q0Ts7OxgdiBmdDXqKIsOm9pCmDQT3X18L0WS0+SBqxKgzVkuUiLRxwVZ4HVINf8hLO IOcb1U2iKwEIphQ6rmhvF+oF2D8DjArCGjqQU1B/sMrgAqeP9nEOk/YGDD2Stre5phAMPH AkzqDz606pUIfiXD0jPE7aD/orxyehNH0P1bQSCUMrAqEATxQkJaW/GbsOjurYZjtn8PaE BQZixidA+drKfeEPNv1UTQc11HmkPW22I48zOVh09kgB56m5cdrB9NBJVURx+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=IC+4qYQ9; dmarc=pass (policy=reject) header.from=disroot.org; 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=1681033055; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc: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=IWdE7cy78YmcxyjCYN31uF459FdqxlPIWc3cbX4V6k4=; b=YtP46b25iAiK44Hee68P8rkkZgE2Gv9WbsXYHWPyjhdd7p0nJkeWqheMt54VnC+ghk6wk1 CAb8dlfbfsjWEkKhnOUv7C04KRtYQaZx8F040v+2yOMFwDfV5I7CK/2/tfvyF+ezxDX/fY Uq7+P8ALZ8nwMoStrvbCqXsYJJp5/31iPq+080vPA4ClkJllcMux6/SZ79o0Eg7HRklPgt M9fwlaxzsKWgqj+QVYxIixQ2ggEq12F0ikR1YzeXCN4t7BCr73ZsPcCT7+mGoHoHj8kTJX MhyD2jNT907PhedQVNSaDTnM+XAI9h6fb9BXy62forgxS6l80poB6he70IKN/g== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=IC+4qYQ9; dmarc=pass (policy=reject) header.from=disroot.org; 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.30 X-Spam-Score: -5.30 X-Migadu-Queue-Id: 031DF207F6 X-TUID: QeV4MxFF5xk0 --36afad5039b5c282174225a025e6ea462130a686f7f01ced13d70334e5fa Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 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"))) ``` > ``` > $ 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 impor= ting compression, prefixing (guix licenses) to prevent a namespace collisio= n, 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. -- ( --36afad5039b5c282174225a025e6ea462130a686f7f01ced13d70334e5fa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6Vh10NblKE5doNlW7ImHg/nqI20FAmQyhzMACgkQ7ImHg/nq I22KkQv/dyaRx1VxA7q1RtjF6N698Rru+vqiF4qkVIZ/TejyNsY3lUG+LXUEXwo1 DqI/kg/2ZJAaDbJ0UG8Bmc4FlrUjll9tWLAvc3ay5/A/hsT01etGZ9JhcaWZgwp7 ZB7OQQN9Zeqf1KQQ0Lr0cb7gMQUVc5f2v4dgeqUXnOl0PKB50jFEdEhjetBpNGJa Y8U79Hw+xn9kBv06PRxnkbG4hOIB8TLyFeM7PH93qhc6x1jEMxRMRlPSVngh5Es4 A8U9z/KH6Ny9SKwUOgB9zNx8SBTkanEHVmR3Rx4CbQOuNeNnr+JbeYDNsa573F4/ +hmx/JNhS94B67gZo3uA6qY3uPrwKFY7sj3mip53zONXmelvkmQRPsGAOzzghvNe h1Y3eioDIEAlMCM1hxXli4wKxVvmOjtxFXDLTjQXGdyuSjHUpE5oOXc4pZjoVPT/ KZuCisvTZGvFvLNT1+H5ilPUufVA7yMrgJxlLjgu6vUMvUnOrkKjp5Ty+N15ea+P K4zLi7hB =buaX -----END PGP SIGNATURE----- --36afad5039b5c282174225a025e6ea462130a686f7f01ced13d70334e5fa--