mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
glib: Verify the cross-compiled python is used in installed scripts.
* gnu/packages/glib.scm (glib)[arguments]<#:disallowed-references>: Disallow the native python when cross-compiling. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
1d7ceabc09
commit
dcd48bfd84
1 changed files with 11 additions and 1 deletions
|
@ -77,6 +77,8 @@ (define-module (gnu packages glib)
|
|||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (srfi srfi-26)
|
||||
#:use-module ((srfi srfi-1) #:hide (zip))
|
||||
|
||||
;; Export variables up-front to allow circular dependency with the 'xorg'
|
||||
|
@ -200,7 +202,15 @@ (define glib
|
|||
"static" ;static libraries
|
||||
"bin")) ;executables; depends on Python
|
||||
(arguments
|
||||
`(#:disallowed-references (,tzdata-for-tests)
|
||||
`(#:disallowed-references
|
||||
(,tzdata-for-tests
|
||||
;; Verify glib-mkenums, gtester, ... use the cross-compiled
|
||||
;; python.
|
||||
,@(if (%current-target-system)
|
||||
(map (cut gexp-input <> #:native? #t)
|
||||
`(,(this-package-native-input "python")
|
||||
,(this-package-native-input "python-wrapper")))
|
||||
'()))
|
||||
#:configure-flags '("--default-library=both"
|
||||
"-Dman=true"
|
||||
"-Dselinux=disabled")
|
||||
|
|
Loading…
Reference in a new issue