From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42858) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSIWU-0003j9-Th for guix-patches@gnu.org; Sat, 25 Apr 2020 06:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSIWT-0007Ax-VE for guix-patches@gnu.org; Sat, 25 Apr 2020 06:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSIWT-0007As-K8 for guix-patches@gnu.org; Sat, 25 Apr 2020 06:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSIWT-0000oG-Ig for guix-patches@gnu.org; Sat, 25 Apr 2020 06:59:01 -0400 Subject: [bug#40767] [PATCH] gnu: Add maradns. Resent-Message-ID: From: Arun Isaac In-Reply-To: <87y2qkx9sh.fsf@gmail.com> References: <20200422132922.9539-1-arunisaac@systemreboot.net> <87lfmnock3.fsf@gmail.com> <87blnioawj.fsf@gmail.com> <87y2qkx9sh.fsf@gmail.com> Date: Sat, 25 Apr 2020 16:28:47 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; 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 Cc: 40767@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain > I still have the following error when cross-building for > aarch64-linux-gnu or arm-linux-gnueabihf: Please find attached a patch fixing this issue. > Also, please be careful to stay under the 78 column limit. Yes, I checked before pushing. guix lint reported no warnings. Thanks! --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-maradns-Fix-cross-compilation.patch Content-Transfer-Encoding: quoted-printable From=203b59165f196b32f130150db7a7167dc2fadae315 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 25 Apr 2020 15:53:52 +0530 Subject: [PATCH] gnu: maradns: Fix cross compilation. * gnu/packages/dns.scm (maradns)[native-inputs]: Add gcc when cross compili= ng. [arguments]: Build make_32bit_tables for the host. =2D-- gnu/packages/dns.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 80ed1f0b49..8cb6a2f3fa 100644 =2D-- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -43,6 +43,7 @@ #:use-module (gnu packages crypto) #:use-module (gnu packages datastructures) #:use-module (gnu packages flex) + #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages groff) #:use-module (gnu packages groff) @@ -979,7 +980,15 @@ known public suffixes.") #:phases (modify-phases %standard-phases (replace 'configure =2D (lambda _ + (lambda* (#:key native-inputs #:allow-other-keys) + ;; make_32bit_tables generates a header file that is used dur= ing + ;; compilation. Hence, during cross compilation, it should be + ;; built for the host system. + (when ,(%current-target-system) + (substitute* "rng/Makefile" + (("\\$\\(CC\\) -o make_32bit_tables") + (string-append (assoc-ref native-inputs "gcc") + "/bin/gcc -o make_32bit_tables")))) (invoke "./configure"))) (add-before 'install 'create-install-directories (lambda* (#:key outputs #:allow-other-keys) @@ -991,6 +1000,10 @@ known public suffixes.") "/share/man/man5" "/share/man/man8")) #t)))))) + (native-inputs + `(,@(if (%current-target-system) + `(("gcc" ,gcc)) + '()))) (home-page "https://maradns.samiam.org") (synopsis "Small lightweight DNS server") (description "MaraDNS is a small and lightweight DNS server. MaraDNS =2D-=20 2.26.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl6kF+gACgkQLiXui2GA K7MWdggAyXPugEiNmM8M27E69Ii9+DUae2tLZCV18v2zvo9K13YBqONq+iPt01M6 qh736jJ8xfugsaXHQ5XcO9gRTJ3bffgYiTuj63bjV9GXo87lvMR4TwbZ+S6WXOxD WZS+p3TkVBbnIND5UZRG5+k8WOzREaTakvhL/LpFz4r1/X0aUICVnBIYiwN6dqCt ECcpz4OlIROPu6jv7vuWnVMAtK072bSSmdaUPe2+fjSecKrEG8JBDzg5Vp9qDzKu 7G13Ri/InWrv5UbgytGerNJlStJK/tP8rlmt5ziMo2v7Pp6/bfSVv9czfbMDHJVw /1mQSz10DhU1mglm50Hs0Ld0PujyJQ== =TpSb -----END PGP SIGNATURE----- --==-=-=--