me
/
guix
Archived
1
0
Fork 0

gnu: openssl-1.1: Fix shared build for the Hurd.

* gnu/packages/tls.scm (openssl-1.1)[arguments]: When building for the Hurd,
add phase 'patch-configure'.
(openssl)[arguments]: And delete it again.
Janneke Nieuwenhuizen 2023-06-11 20:47:14 +02:00
parent 69142dbea4
commit fb6f94864d
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 11 additions and 1 deletions

View File

@ -470,6 +470,13 @@ OpenSSL for TARGET."
#$(target->openssl-target
(%current-target-system))))))
#~())
#$@(if (target-hurd?)
#~((add-after 'unpack 'patch-configure
(lambda _
(substitute* "config"
(("case \"\\$GUESSOS\" in.*" all)
(string-append all "hurd-x86*) OUT=hurd-x86;;\n"))))))
#~())
(replace 'configure
(lambda* (#:key configure-flags #:allow-other-keys)
;; It's not a shebang so patch-source-shebangs misses it.
@ -585,7 +592,10 @@ OpenSSL for TARGET."
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(setenv "HASHBANGPERL"
(search-input-file (or native-inputs inputs)
"/bin/perl"))))))
"/bin/perl"))))
#$@(if (target-hurd?)
#~((delete 'patch-configure))
#~())))
((#:configure-flags flags #~'())
(if (system-hurd?)
#~(append #$flags '("hurd-x86")) ;must not be used when