gnu: gnutls@3.8: Do not rely expect ‘PATH_MAX’ definition on GNU/Hurd.
Fixes <https://issues.guix.gnu.org/66691>. * gnu/packages/tls.scm (gnutls-3.8.1)[arguments]: New field. Change-Id: If208591d78d5d023220bd3a7e3841af172c605ff
parent
356ca40c89
commit
a1ac534f8a
|
@ -318,7 +318,20 @@ required structures.")
|
||||||
(patches (search-patches "gnutls-skip-trust-store-test.patch"))
|
(patches (search-patches "gnutls-skip-trust-store-test.patch"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1742jiigwsfhx7nj5rz7dwqr8d46npsph6b68j7siar0mqarx2xs"))))))
|
"1742jiigwsfhx7nj5rz7dwqr8d46npsph6b68j7siar0mqarx2xs"))))
|
||||||
|
(arguments
|
||||||
|
(if (target-hurd?)
|
||||||
|
;; Fix reference to undefined 'PATH_MAX'. This is fixed in GnuTLS
|
||||||
|
;; commit 3b6ec1e01de4e96d36276dfe34ee9e183f285264.
|
||||||
|
(substitute-keyword-arguments (package-arguments gnutls)
|
||||||
|
((#:phases phases #~%standard-phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'unpack 'set-path-max
|
||||||
|
(lambda _
|
||||||
|
(substitute* "lib/pathbuf.h"
|
||||||
|
(("^#define GNUTLS_PATH_MAX PATH_MAX")
|
||||||
|
"#define GNUTLS_PATH_MAX 8192\n")))))))
|
||||||
|
(package-arguments gnutls)))))
|
||||||
|
|
||||||
(define-public gnutls/dane
|
(define-public gnutls/dane
|
||||||
;; GnuTLS with build libgnutls-dane, implementing DNS-based
|
;; GnuTLS with build libgnutls-dane, implementing DNS-based
|
||||||
|
|
Reference in New Issue