me
/
guix
Archived
1
0
Fork 0

gnu: p11-kit: Remove input labels.

* gnu/packages/tls.scm (p11-kit)[native-inputs, inputs]: Remove labels.
[arguments]: Switch to gexp.  Refer to "p11-kit-hurd.patch" right from here.
(p11-kit-next)[arguments]: Use a gexp.
master
Ludovic Courtès 2022-06-22 22:07:19 +02:00
parent db2e3b2261
commit c8372b82ac
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 37 additions and 41 deletions

View File

@ -147,33 +147,30 @@ in intelligent transportation networks.")
(base32 "1dn6br4v033d3gp2max9lsr3y4q0nj6iyr1yq3kzi8ym7lal13wa"))))
(build-system gnu-build-system)
(native-inputs
`(,@(if (hurd-target?)
`(("autoconf" ,autoconf)
("automake" ,automake)
("gettext" ,gettext-minimal) ;for autopoint
("libtool" ,libtool))
'())
("pkg-config" ,pkg-config)))
(append (list pkg-config)
(if (hurd-target?)
(list autoconf automake gettext-minimal libtool)
'())))
(inputs
`(("libffi" ,libffi)
,@(if (hurd-target?)
`(("libbsd" ,libbsd)
("hurd-patch" ,(search-patch "p11-kit-hurd.patch")))
'())
("libtasn1" ,libtasn1)))
(append (list libffi libtasn1)
(if (hurd-target?)
(list libbsd)
'())))
(arguments
`(#:configure-flags '("--without-trust-paths")
#:phases (modify-phases %standard-phases
,@(if (hurd-target?)
'((add-after 'unpack 'apply-hurd-patch
(list #:configure-flags #~'("--without-trust-paths")
#:phases #~(modify-phases %standard-phases
#$@(if (hurd-target?)
#~((add-after 'unpack 'apply-hurd-patch
(lambda* (#:key inputs #:allow-other-keys)
(let ((patch (assoc-ref inputs "hurd-patch")))
(define patch
#$(local-file
(search-patch "p11-kit-hurd.patch")))
(invoke "patch" "-p1" "--batch" "-i"
patch))))
patch)))
(replace 'bootstrap
(lambda _
(invoke "autoreconf" "-fiv"))))
'())
#~())
(add-before 'check 'prepare-tests
(lambda _
;; "test-runtime" expects XDG_RUNTIME_DIR to be set up
@ -181,8 +178,7 @@ in intelligent transportation networks.")
;; For simplicity just drop it since it is irrelevant
;; in the build container.
(substitute* "Makefile"
(("test-runtime\\$\\(EXEEXT\\)") ""))
#t)))))
(("test-runtime\\$\\(EXEEXT\\)") "")))))))
(home-page "https://p11-glue.github.io/p11-glue/p11-kit.html")
(synopsis "PKCS#11 library")
(description
@ -208,8 +204,8 @@ living in the same process.")
;; Use the default certificates so that users such as flatpak find them.
;; See <https://issues.guix.gnu.org/49957>.
(substitute-keyword-arguments (package-arguments p11-kit)
((#:configure-flags flags ''())
''("--with-trust-paths=/etc/ssl/certs/ca-certificates.crt"))))))
((#:configure-flags flags #~'())
#~'("--with-trust-paths=/etc/ssl/certs/ca-certificates.crt"))))))
(define-public gnutls
(package