From: John Darrington <john@darrington.wattle.id.au>
To: Sergei Trofimovich <slyfox@inbox.ru>
Cc: guix-devel@gnu.org
Subject: Re: 'guix build --target=' handling questions
Date: Thu, 23 Feb 2017 18:07:09 +0100 [thread overview]
Message-ID: <20170223170709.GA27857@jocasta.intra> (raw)
In-Reply-To: <20170222225422.2d1020ba@sf>
[-- Attachment #1: Type: text/plain, Size: 2224 bytes --]
On Wed, Feb 22, 2017 at 10:54:22PM +0000, Sergei Trofimovich wrote:
(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
+ )
(define-public re2
(package
(name "re2")
(version "2017-01-01")
@@ -40,11 +42,15 @@
"0yij1ajh66h3pj3kfz7y0ldrsww8rlpjzaavyr5lchl98as1jq74"))))
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
;; There is no configure step, but the Makefile respects a prefix.
- #:make-flags (list (string-append "prefix=" %output))
+ #:make-flags (list (string-append "prefix=" %output)
+ (string-append "CXX=" ,(string-append (if (%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)
It looks clumsy and potentially requires more tools to be wrapped like that.
At least 'ar' for this package. Perhaps there is a function that already
adds a "${target}-" and I've missed it?
So far as I'm aware there is no better solution than what you have proposed. It is a common
problem for packages which don't provide a proper autoconf ./configure script.
J'
--
Avoid eavesdropping. Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2017-02-23 17:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 21:40 'guix build --target=' handling questions Sergei Trofimovich
2017-02-22 22:54 ` Sergei Trofimovich
2017-02-23 17:07 ` John Darrington [this message]
2017-03-06 16:04 ` Ludovic Courtès
2017-03-06 22:01 ` Sergei Trofimovich
2017-03-07 14:48 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170223170709.GA27857@jocasta.intra \
--to=john@darrington.wattle.id.au \
--cc=guix-devel@gnu.org \
--cc=slyfox@inbox.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.