me
/
guix
Archived
1
0
Fork 0

gnu: gnutls: Remove input labels.

* gnu/packages/tls.scm (gnutls)[arguments]: Use gexps.
[native-inputs, propagated-inputs]: Remove labels.
(gnutls/dane, guile2.2-gnutls): Use 'modify-inputs'.
master
Ludovic Courtès 2022-06-22 22:24:24 +02:00
parent 9b4c15f27a
commit 4c4413b5c6
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 75 additions and 82 deletions

View File

@ -226,14 +226,14 @@ living in the same process.")
"0li7mwjnm64mbxhacz0rpf6i9qd83f53fvbrx96alpqqk9d6qvk4"))))
(build-system gnu-build-system)
(arguments
`(#:tests? ,(not (or (%current-target-system)
(list #:tests? (not (or (%current-target-system)
(hurd-target?)))
;; Ensure we don't keep a reference to the tools used for testing.
#:disallowed-references ,(if (hurd-target?)
#:disallowed-references (if (hurd-target?)
'()
(list net-tools iproute socat))
#:configure-flags
(cons*
#~(cons*
;; GnuTLS doesn't consult any environment variables to specify
;; the location of the system-wide trust store. Instead it has a
;; configure-time option. Unless specified, its configure script
@ -254,7 +254,7 @@ living in the same process.")
(string-append "--with-guile-extension-dir="
"$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/extensions")
(let ((system ,(or (%current-target-system)
(let ((system #$(or (%current-target-system)
(%current-system))))
(if (string-prefix? "mips64el" system)
(list
@ -263,7 +263,8 @@ living in the same process.")
"--without-p11-kit")
'())))
#:phases (modify-phases %standard-phases
#:phases
#~(modify-phases %standard-phases
;; fastopen.sh fails to connect to the server in the builder
;; environment (see:
;; https://gitlab.com/gnutls/gnutls/-/issues/1095).
@ -286,34 +287,27 @@ living in the same process.")
"debug"
"doc")) ;4.1 MiB of man pages
(native-inputs
`(,@(if (%current-target-system) ;for cross-build
`(("guile" ,guile-3.0)) ;to create .go files
(append (list pkg-config texinfo which
util-linux) ;one test needs 'setsid'
(if (%current-target-system) ;for cross-build
(list guile-3.0) ;to create .go files
'())
,@(if (hurd-target?)
(if (hurd-target?)
'()
`(("net-tools" ,net-tools)
("iproute" ,iproute) ;for 'ss'
("socat" ,socat))) ;several tests rely on it
("pkg-config" ,pkg-config)
("texinfo" ,texinfo)
("which" ,which)
,@(if (hurd-target?)
'()
`(("datefudge" ,datefudge))) ;tests rely on 'datefudge'
("util-linux" ,util-linux))) ;one test needs 'setsid'
(list net-tools
iproute ;for 'ss'
socat ;several tests rely on it
datefudge)))) ;tests rely on 'datefudge'
(inputs
(list guile-3.0))
(propagated-inputs
;; These are all in the 'Requires.private' field of gnutls.pc.
`(("libtasn1" ,libtasn1)
("libidn2" ,libidn2)
("nettle" ,nettle)
("zlib" ,zlib)
,@(let ((system (or (%current-target-system)
(append (list libtasn1 libidn2 nettle zlib)
(let ((system (or (%current-target-system)
(%current-system))))
(if (string-prefix? "mips64el" system)
'()
`(("p11-kit" ,p11-kit))))))
(list p11-kit)))))
(home-page "https://www.gnu.org/software/gnutls/")
(synopsis "Transport layer security library")
(description
@ -332,15 +326,14 @@ required structures.")
;; to have the choice between GnuTLS with Dane and without Dane.
(package/inherit gnutls
(name "gnutls-dane")
(inputs `(("unbound" ,unbound)
,@(package-inputs gnutls)))))
(inputs (modify-inputs (package-inputs gnutls)
(prepend unbound)))))
(define-public guile2.2-gnutls
(package/inherit gnutls
(name "guile2.2-gnutls")
(inputs `(("guile" ,guile-2.2)
,@(alist-delete "guile"
(package-inputs gnutls))))))
(inputs (modify-inputs (package-inputs gnutls)
(replace "guile" guile-2.2)))))
(define (target->openssl-target target)
"Return the value to set CONFIGURE_TARGET_ARCH to when cross-compiling