]> git.pld-linux.org Git - packages/tpm2-tss.git/commitdiff
- added install patch (don't try to create user/group on make install)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 14 Jun 2021 19:56:51 +0000 (21:56 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 14 Jun 2021 19:56:51 +0000 (21:56 +0200)
tpm2-tss-install.patch [new file with mode: 0644]
tpm2-tss.spec

diff --git a/tpm2-tss-install.patch b/tpm2-tss-install.patch
new file mode 100644 (file)
index 0000000..6c625e7
--- /dev/null
@@ -0,0 +1,35 @@
+--- tpm2-tss-3.1.0/configure.ac.orig   2021-05-17 20:42:46.000000000 +0200
++++ tpm2-tss-3.1.0/configure.ac        2021-06-14 21:52:12.075225467 +0200
+@@ -470,15 +470,6 @@
+ AM_CONDITIONAL(SYSD_SYSUSERS, test "x$systemd_sysusers" = "xyes")
+ AC_CHECK_PROG(systemd_tmpfiles, systemd-tmpfiles, yes)
+ AM_CONDITIONAL(SYSD_TMPFILES, test "x$systemd_tmpfiles" = "xyes")
+-# Check all tools used by make install
+-AS_IF([test "$HOSTOS" = "Linux"],
+-      [ERROR_IF_NO_PROG([groupadd])
+-       ERROR_IF_NO_PROG([useradd])
+-       ERROR_IF_NO_PROG([id])
+-       ERROR_IF_NO_PROG([chown])
+-       ERROR_IF_NO_PROG([chmod])
+-       ERROR_IF_NO_PROG([mkdir])
+-       ERROR_IF_NO_PROG([setfacl])])
+ AC_SUBST([PATH])
+--- tpm2-tss-3.1.0/Makefile.am.orig    2021-06-14 21:53:10.804907301 +0200
++++ tpm2-tss-3.1.0/Makefile.am 2021-06-14 21:53:13.818224310 +0200
+@@ -689,14 +689,6 @@
+ EXTRA_DIST += dist/tpm-udev.rules
+ install-dirs:
+-if HOSTOS_LINUX
+-if SYSD_SYSUSERS
+-      @echo "systemd-sysusers $(DESTDIR)$(sysconfdir)/sysusers.d/tpm2-tss.conf"
+-      @systemd-sysusers $(DESTDIR)$(sysconfdir)/sysusers.d/tpm2-tss.conf || echo "WARNING Failed to create the tss user and group"
+-else
+-      @echo "call make_tss_user_and_group"
+-      @$(call make_tss_user_and_group) || echo "WARNING Failed to create the tss user and group"
+-endif
+ if SYSD_TMPFILES
+       @echo "systemd-tmpfiles --create $(DESTDIR)$(sysconfdir)/tmpfiles.d/tpm2-tss-fapi.conf"
+       @systemd-tmpfiles --create $(DESTDIR)$(sysconfdir)/tmpfiles.d/tpm2-tss-fapi.conf|| echo "WARNING Failed to create the FAPI directories with the correct permissions"
index 4233999e6052465075577a4a79212ece9255cdd9..f80904ee42c310379a62023a4cbe8770399251b7 100644 (file)
@@ -12,6 +12,7 @@ Group:                Libraries
 #Source0Download: https://github.com/tpm2-software/tpm2-tss/releases
 Source0:       https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 4d04cf52fff4ee061bb3f7b4f4ea03b7
+Patch0:                %{name}-install.patch
 URL:           https://github.com/tpm2-software/tpm2-tss
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -87,6 +88,7 @@ Biblioteka statyczna tpm2-tss.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.086399 seconds and 4 git commands to generate.