Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tpm2-0-tss for openSUSE:Factory 
checked in at 2024-01-15 22:15:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tpm2-0-tss (Old)
 and      /work/SRC/openSUSE:Factory/.tpm2-0-tss.new.21961 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tpm2-0-tss"

Mon Jan 15 22:15:33 2024 rev:35 rq:1138772 version:4.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/tpm2-0-tss/tpm2-0-tss.changes    2023-11-27 
22:42:30.707925164 +0100
+++ /work/SRC/openSUSE:Factory/.tpm2-0-tss.new.21961/tpm2-0-tss.changes 
2024-01-15 22:16:56.397806217 +0100
@@ -1,0 +2,14 @@
+Sat Jan 13 17:45:03 UTC 2024 - Callum Farmer <[email protected]>
+
+- Fix tmpfiles %ghost file names
+
+-------------------------------------------------------------------
+Sat Dec 16 16:41:48 UTC 2023 - Callum Farmer <[email protected]>
+
+- Move tmpfiles config to different package:
+  * tmpfiles_create was being called with bad input (version ?)
+  * it avoids breaking SLPP for libtss2-fapi1 (hence the prior
+    warning in spec)
+- tss sysusers requires should be pre not post
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tpm2-0-tss.spec ++++++
--- /var/tmp/diff_new_pack.djPVmG/_old  2024-01-15 22:16:56.853822878 +0100
+++ /var/tmp/diff_new_pack.djPVmG/_new  2024-01-15 22:16:56.853822878 +0100
@@ -154,14 +154,23 @@
 %package -n     libtss2-fapi1
 Summary:        FAPI interface library
 Group:          System/Libraries
-Requires:       user(tss)
-Requires(post): user(tss)
+Requires:       libtss2-fapi-common
 
 %description -n libtss2-fapi1
 This is the tpm2 Feature API (FAPI) library. This API is designed to be very
 high-level API, intended to make programming with the TPM as simple as
 possible.
 
+%package -n     libtss2-fapi-common
+Summary:        Common files for FAPI interface library
+Group:          System/Libraries
+Provides:       libtss2-fapi1:%{_tmpfilesdir}/tpm2-tss-fapi.conf
+Requires:       user(tss)
+Requires(pre):  user(tss)
+
+%description -n libtss2-fapi-common
+Provides files needed by the tpm2 Feature API (FAPI) library
+
 %package -n libtss2-policy0
 Summary:        TPM2 FAPI policy library
 Group:          System/Libraries
@@ -235,6 +244,9 @@
 %post
 %{_bindir}/udevadm trigger -s tpm -s tpmrm || :
 
+%post -n libtss2-fapi-common
+%tmpfiles_create %{_tmpfilesdir}/tpm2-tss-fapi.conf
+
 %post -n libtss2-esys0 -p /sbin/ldconfig
 %postun -n libtss2-esys0 -p /sbin/ldconfig
 %post -n libtss2-sys1 -p /sbin/ldconfig
@@ -249,11 +261,7 @@
 %postun -n libtss2-mu0 -p /sbin/ldconfig
 %post -n libtss2-rc0 -p /sbin/ldconfig
 %postun -n libtss2-rc0 -p /sbin/ldconfig
-
-%post -n libtss2-fapi1
-/sbin/ldconfig
-%tmpfiles_create %{_tmpfilesdir}/tpm2-tss-fapi-%{version}.conf
-
+%post -n libtss2-fapi1 -p /sbin/ldconfig
 %postun -n libtss2-fapi1 -p /sbin/ldconfig
 %post -n libtss2-policy0 -p /sbin/ldconfig
 %postun -n libtss2-policy0 -p /sbin/ldconfig
@@ -306,19 +314,14 @@
 
 %files -n libtss2-fapi1
 %{_libdir}/libtss2-fapi.so.*
+
+%files -n libtss2-fapi-common
 %{_tmpfilesdir}/tpm2-tss-fapi.conf
-# this would fix "tmpfile-not-in-filelist" warnings but when adding these
-# entries then it complains about "directories not owned by a package:" for
-# /run/tpm2-0-tss & friends. When adding them as %%ghost, too, then Leap15.1
-# complains about "found conflict of libtss2-fapi1-3.0.1-lp152.103.1.x86_64
-# with libtss2-fapi1-3.0.1-lp152.103.1.x86_64". Thus leave it be for the
-# moment, some insane circle of errors is involved here.
-#
-# it seems the problem is that during `make install` the package runs
-# systemd-tmpfiles --create, and the directories are created outside the
-# package's install tree. It seems this is not expected by RPM.
-# %%ghost %%{_sharedstatedir}/%%{name}/system/keystore
-# %%ghost %%{_rundir}/%%{name}/eventlog
+%ghost %{_sharedstatedir}/tpm2-tss
+%ghost %{_sharedstatedir}/tpm2-tss/system
+%ghost %{_sharedstatedir}/tpm2-tss/system/keystore
+%ghost %{_rundir}/tpm2-tss
+%ghost %{_rundir}/tpm2-tss/eventlog
 
 %files -n libtss2-policy0
 %{_libdir}/libtss2-policy.so.*

Reply via email to