guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'guix build --target=' handling questions


From: John Darrington
Subject: Re: 'guix build --target=' handling questions
Date: Thu, 23 Feb 2017 18:07:09 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

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: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]