Archived
1
0
Fork 0

gnu: mig: Do not assume "perl" to be available.

* gnu/packages/hurd.scm (mig)[inputs]: Include perl.
[arguments]: Substitute "perl" with full store file name in bin/mig.
* gnu/packages/cross-base.scm (cross-kernel-headers): Adjust mig-cross
accordingly.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-06-26 22:37:49 +02:00
parent e6685186a5
commit 00410bbeaf
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 13 additions and 3 deletions

View file

@ -373,7 +373,7 @@ target that libc."
',%gcc-cross-include-paths) ',%gcc-cross-include-paths)
#t)))) #t))))
#:configure-flags (list ,(string-append "--target=" target)) #:configure-flags (list ,(string-append "--target=" target))
,@(package-arguments mig))) #:tests? #f))
(propagated-inputs `(("cross-gnumach-headers" ,xgnumach-headers))) (propagated-inputs `(("cross-gnumach-headers" ,xgnumach-headers)))
(native-inputs `(("cross-gcc" ,xgcc) (native-inputs `(("cross-gcc" ,xgcc)

View file

@ -131,11 +131,21 @@ GNU/Hurd."
(build-system gnu-build-system) (build-system gnu-build-system)
;; Flex is needed both at build and run time. ;; Flex is needed both at build and run time.
(inputs `(("gnumach-headers" ,gnumach-headers) (inputs `(("gnumach-headers" ,gnumach-headers)
("flex" ,flex))) ("flex" ,flex)
("perl" ,perl)))
(native-inputs (native-inputs
`(("flex" ,flex) `(("flex" ,flex)
("bison" ,bison))) ("bison" ,bison)))
(arguments `(#:tests? #f)) (arguments `(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'install 'patch-non-shebang-references
(lambda* (#:key build inputs outputs #:allow-other-keys)
(let ((perl (assoc-ref inputs "perl"))
(out (assoc-ref outputs "out")))
(substitute* (string-append out "/bin/mig")
(("perl ") (string-append perl "/bin/perl ")))
#t))))))
(home-page "https://www.gnu.org/software/hurd/microkernel/mach/mig/gnu_mig.html") (home-page "https://www.gnu.org/software/hurd/microkernel/mach/mig/gnu_mig.html")
(synopsis "Mach 3.0 interface generator for the Hurd") (synopsis "Mach 3.0 interface generator for the Hurd")
(description (description