diff options
| author | Johannes Christ <jc@jchri.st> | 2026-05-05 22:36:07 +0200 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-06-15 11:19:42 +0900 |
| commit | 9b3e0b6fac204b7a403eb3d0f51c517ffc957945 (patch) | |
| tree | 1c80da4cb889caec4ddda9e2883580cfbf233c7e /gnu | |
| parent | d11615f609d2cd58fb1305205a4fa975dc8e4657 (diff) | |
gnu: Add libtpms.
* gnu/packages/virtualization.scm (libtpms): New variable.
* gnu/packages/patches/libtpms-pkgconfigdir.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register patch.
Merges: https://codeberg.org/guix/guix/pulls/8383
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/patches/libtpms-pkgconfigdir.patch | 16 | ||||
| -rw-r--r-- | gnu/packages/virtualization.scm | 38 |
3 files changed, 55 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index 5fe395bd7be..98218e46cd2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1834,6 +1834,7 @@ dist_patch_DATA = \ | |||
| 1834 | %D%/packages/patches/libtirpc-hurd.patch \ | 1834 | %D%/packages/patches/libtirpc-hurd.patch \ |
| 1835 | %D%/packages/patches/libtool-grep-compat.patch \ | 1835 | %D%/packages/patches/libtool-grep-compat.patch \ |
| 1836 | %D%/packages/patches/libtool-skip-tests2.patch \ | 1836 | %D%/packages/patches/libtool-skip-tests2.patch \ |
| 1837 | %D%/packages/patches/libtpms-pkgconfigdir.patch \ | ||
| 1837 | %D%/packages/patches/libtree-fix-check-non-x86.patch \ | 1838 | %D%/packages/patches/libtree-fix-check-non-x86.patch \ |
| 1838 | %D%/packages/patches/libusb-0.1-disable-tests.patch \ | 1839 | %D%/packages/patches/libusb-0.1-disable-tests.patch \ |
| 1839 | %D%/packages/patches/libusb-for-axoloti.patch \ | 1840 | %D%/packages/patches/libusb-for-axoloti.patch \ |
diff --git a/gnu/packages/patches/libtpms-pkgconfigdir.patch b/gnu/packages/patches/libtpms-pkgconfigdir.patch new file mode 100644 index 00000000000..cf47480e791 --- /dev/null +++ b/gnu/packages/patches/libtpms-pkgconfigdir.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Automake expects `pkgconfigdir` to be present here, add it. | ||
| 2 | |||
| 3 | Upstream-status: Not presented upstream. | ||
| 4 | |||
| 5 | diff --git a/Makefile.am b/Makefile.am | ||
| 6 | index 03ed7e65..a05b022a 100644 | ||
| 7 | --- a/Makefile.am | ||
| 8 | +++ b/Makefile.am | ||
| 9 | @@ -38,6 +38,7 @@ EXTRA_DIST = \ | ||
| 10 | libtpms.pc.in \ | ||
| 11 | autogen.sh | ||
| 12 | |||
| 13 | +pkgconfigdir = $(libdir)/pkgconfig | ||
| 14 | pkgconfig_DATA = libtpms.pc | ||
| 15 | |||
| 16 | DISTCHECK_CONFIGURE_FLAGS = --with-openssl --with-tpm2 | ||
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index d4142e08689..41161ff8adc 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm | |||
| @@ -3880,6 +3880,44 @@ create_header")))))))))) | |||
| 3880 | numactl | 3880 | numactl |
| 3881 | yajl))))) | 3881 | yajl))))) |
| 3882 | 3882 | ||
| 3883 | (define-public libtpms | ||
| 3884 | (package | ||
| 3885 | (name "libtpms") | ||
| 3886 | (version "0.10.2") | ||
| 3887 | (source | ||
| 3888 | (origin | ||
| 3889 | (method git-fetch) | ||
| 3890 | (uri (git-reference | ||
| 3891 | (url "https://github.com/stefanberger/libtpms") | ||
| 3892 | (commit (string-append "v" version)))) | ||
| 3893 | (file-name (git-file-name name version)) | ||
| 3894 | (sha256 | ||
| 3895 | (base32 "190qnjp384a8i8jqh3xyxac7i3cbsbphbl6wk91kw5gzjymjj4aj")) | ||
| 3896 | (patches (search-patches "libtpms-pkgconfigdir.patch")) | ||
| 3897 | (snippet | ||
| 3898 | '(begin | ||
| 3899 | (delete-file "autogen.sh") | ||
| 3900 | (delete-file "bootstrap.sh"))))) | ||
| 3901 | (build-system gnu-build-system) | ||
| 3902 | (home-page "https://github.com/stefanberger/libtpms") | ||
| 3903 | (arguments | ||
| 3904 | (list | ||
| 3905 | #:phases | ||
| 3906 | #~(modify-phases %standard-phases | ||
| 3907 | (add-after 'unpack 'drop-empty-pkg-installdir | ||
| 3908 | (lambda _ | ||
| 3909 | (substitute* "configure.ac" | ||
| 3910 | ;; This causes a syntax error in the generated configure script. | ||
| 3911 | (("^PKG_INSTALLDIR\\(\\)") ""))))))) | ||
| 3912 | (inputs (list openssl)) | ||
| 3913 | (native-inputs (list autoconf-wrapper automake libtool | ||
| 3914 | ;; for pod2man | ||
| 3915 | perl)) | ||
| 3916 | (synopsis "TPM emulation library") | ||
| 3917 | (description "The libtpms library provides software emulation of a | ||
| 3918 | Trusted Platform Module (TPM 1.2 and TPM 2.0).") | ||
| 3919 | (license license:bsd-3))) | ||
| 3920 | |||
| 3883 | (define-public virt-what | 3921 | (define-public virt-what |
| 3884 | (package | 3922 | (package |
| 3885 | (name "virt-what") | 3923 | (name "virt-what") |
