From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: 'guix build --target=' handling questions Date: Thu, 23 Feb 2017 18:07:09 +0100 Message-ID: <20170223170709.GA27857@jocasta.intra> References: <20170221214035.6cd9f180@sf> <20170222225422.2d1020ba@sf> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgwrM-0005yc-W9 for guix-devel@gnu.org; Thu, 23 Feb 2017 12:07:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgwrJ-0006mq-Pe for guix-devel@gnu.org; Thu, 23 Feb 2017 12:07:16 -0500 Received: from de.cellform.com ([88.217.224.109]:59745 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgwrJ-0006m5-HL for guix-devel@gnu.org; Thu, 23 Feb 2017 12:07:13 -0500 Content-Disposition: inline In-Reply-To: <20170222225422.2d1020ba@sf> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Sergei Trofimovich Cc: guix-devel@gnu.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 22, 2017 at 10:54:22PM +0000, Sergei Trofimovich wrote: =20 (define-module (gnu packages regex) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix utils) ; for %current-target-system + ) =20 (define-public re2 (package (name "re2") (version "2017-01-01") @@ -40,11 +42,15 @@ "0yij1ajh66h3pj3kfz7y0ldrsww8rlpjzaavyr5lchl98as1jq7= 4")))) (build-system gnu-build-system) (arguments `(#:test-target "test" ;; There is no configure step, but the Makefile respects a pr= efix. - #:make-flags (list (string-append "prefix=3D" %output)) + #:make-flags (list (string-append "prefix=3D" %output) + (string-append "CXX=3D" ,(string-append (i= f (%current-target-system) + = (string-append (%current-target-system) "-") + = "") + "g++= "))) #:phases (modify-phases %standard-phases (delete 'configure) (add-after 'install 'delete-static-library (lambda* (#:key outputs #:allow-other-keys) =20 It looks clumsy and potentially requires more tools to be wrapped like= that. =20 At least 'ar' for this package. Perhaps there is a function that alrea= dy adds a "${target}-" and I've missed it? =20 So far as I'm aware there is no better solution than what you have proposed= =2E It is a common problem for packages which don't provide a proper autoconf ./configure scri= pt. J' --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlivFr0ACgkQimdxnC3oJ7P/+QCfS5eQFZAK37oq5cZX+/1ZToPZ x8sAnRQhvrn3Wyhv+erK5JO7NtyU7n77 =7Vu/ -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--