From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37390) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkXcU-000558-LR for guix-patches@gnu.org; Mon, 08 Jul 2019 13:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkXcS-0006ZO-FR for guix-patches@gnu.org; Mon, 08 Jul 2019 13:40:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkXcQ-0006YZ-IC for guix-patches@gnu.org; Mon, 08 Jul 2019 13:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkXcQ-00053o-D4 for guix-patches@gnu.org; Mon, 08 Jul 2019 13:40:02 -0400 Subject: [bug#36477] [PATCH 01/31] gnu: perl: Fix cross-compilation. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20190708095913.3460-2-m.othacehe@gmail.com> References: <20190708095913.3460-1-m.othacehe@gmail.com> <20190708095913.3460-2-m.othacehe@gmail.com> Date: Mon, 08 Jul 2019 19:39:28 +0200 Message-ID: <87o924pgrz.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe , 36477@debbugs.gnu.org --=-=-= Content-Type: text/plain Mathieu Othacehe writes: > * gnu/packages/perl.scm (perl)[arguments]: Use cross-libc instead of libc when > cross-compiling. [...] > @@ -81,7 +82,7 @@ > "perl-reproducible-build-date.patch")))) > (build-system gnu-build-system) > (arguments > - '(#:tests? #f > + `(#:tests? #f > #:configure-flags > (let ((out (assoc-ref %outputs "out")) > (libc (assoc-ref %build-inputs "libc"))) > @@ -130,7 +131,9 @@ > (add-after 'install 'remove-extra-references > (lambda* (#:key inputs outputs #:allow-other-keys) > (let* ((out (assoc-ref outputs "out")) > - (libc (assoc-ref inputs "libc")) > + (libc (assoc-ref inputs > + ,(if (%current-target-system) > + "cross-libc" "libc"))) > (config1 (car (find-files (string-append out "/lib/perl5") > "^Config_heavy\\.pl$"))) > (config2 (find-files (string-append out "/lib/perl5") OK! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0jf9AACgkQoqBt8qM6 VPpsqgf8DUSvb/e+rV5PD4E7R076Y5H//N3GpvUfR9+20T/GtwcjPGBUdLkfuG/9 pwOpMR40OMdtvagpIYNXqUxk/2hTC//vJ2ias/0fxssgw7uV+7ELXByV3kfiWRsZ Gv+dH6kG6Hit4jLaHhFdtPLVWMwy1m/gVekoIQLJJ5VsJeLTEweBTm7px/owmCTz OnUVnlu3ERIzlX7Pva/s6oB3ff88AB5nYpWKZdI79FbAeJKl7P7z9pt3NT/rzS2e dgFBx0Y9X43tcu5kP2XKRLcRqCjsvxUCWpow2qA+zOSlcd0P9GfL59NGMCFaX3tA UxYN4ZtTQbYZIit4ljnclgpEsno5Dg== =O5Hl -----END PGP SIGNATURE----- --=-=-=--