From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:46306) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkY9L-0004c8-Nu for guix-patches@gnu.org; Mon, 08 Jul 2019 14:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkY9K-0004nO-OV for guix-patches@gnu.org; Mon, 08 Jul 2019 14:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkY9K-0004nD-HS for guix-patches@gnu.org; Mon, 08 Jul 2019 14:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkY9K-00061m-8j for guix-patches@gnu.org; Mon, 08 Jul 2019 14:14:02 -0400 Subject: [bug#36477] [PATCH 21/31] gnu: mit-krb5: Fix cross-compilation. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20190708095913.3460-22-m.othacehe@gmail.com> References: <20190708095913.3460-1-m.othacehe@gmail.com> <20190708095913.3460-22-m.othacehe@gmail.com> Date: Mon, 08 Jul 2019 20:13:34 +0200 Message-ID: <87tvbwo0mp.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 Content-Transfer-Encoding: quoted-printable Mathieu Othacehe writes: > * gnu/packages/kerberos.scm (mit-krb5)[arguments]: Disable tests when > cross-compiling. Add cross-compilation specific configure-flags and > make-flags. Search for perl in native-inputs or inputs. [...] > @@ -68,9 +69,23 @@ > ("perl" ,perl))) > (arguments > `(;; XXX: On 32-bit systems, 'kdb5_util' hangs on an fcntl/F_SETLKW= call > - ;; while running the tests in 'src/tests'. > - #:tests? ,(string=3D? (%current-system) "x86_64-linux") > + ;; while running the tests in 'src/tests'. Also disable tests when > + ;; cross-compiling. > + #:tests? ,(and (not (%current-target-system)) > + (string=3D? (%current-system) "x86_64-linux")) >=20=20 > + #:configure-flags > + (list ,@(if (%current-target-system) > + '("krb5_cv_attr_constructor_destructor=3Dyes" > + "ac_cv_func_regcomp=3Dyes" > + "ac_cv_printf_positional=3Dyes" > + "ac_cv_file__etc_environment=3Dyes" > + "ac_cv_file__etc_TIMEZONE=3Dno") > + '())) Have you checked whether these (strange!) configure flags are needed with the newer version on 'core-updates'? I have a slight preference for not passing #:make-flags etc at all in the normal context. E.g. ,@(if (%current-target-system) `(#:configure-flags ...) '()) ...but no strong opinion. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0jh84ACgkQoqBt8qM6 VPosWwf+Jh/MHQq4I4m9uOSjQ1hiMOmeUhQ+VY1pkpF3YkEFKH3n2shLu0WcMiNb 9t51jo1vzGykacoX6mFBHJ/4n2JYgtNDoly22xQG/lLYlzku2Auo+/+Fp4gD0v3s wrqTa5AwLahhL35kDnjTQbUlKNT/B1C1uVBxRKDK6yglpe/dazfLeL13scTtHfI/ Euook1vrZETddBf5LlVVlOPbG/bl67NY6nLEktAUuNJVWXJRucRQ1s2R5/9bH+EP sszFw6Lp9FTvtrRyKgWCC6jjs9uGTapmFEfY0CLw7rT3EclT1sJTdsPWQsxTpSY3 b0LeVxSf9xe4jwJ0Z57/17XlcHVrfA== =9xk9 -----END PGP SIGNATURE----- --=-=-=--