diff --git a/deepin-daemon.changes b/deepin-daemon.changes index c8385a9..89df06f 100644 --- a/deepin-daemon.changes +++ b/deepin-daemon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 11 09:57:39 UTC 2024 - Bernhard Wiedemann + +- Make tarball creation reproducible (boo#1218191) + ------------------------------------------------------------------- Thu Jan 12 18:05:58 UTC 2023 - Stefan Schubert diff --git a/deepin-daemon.spec b/deepin-daemon.spec index 977f32a..56d1012 100644 --- a/deepin-daemon.spec +++ b/deepin-daemon.spec @@ -238,7 +238,12 @@ mkdir build pushd build mkdir polkit mv %{buildroot}%{_datadir}/polkit-1/actions/* polkit/ -tar -cvf polkit.tar.gz polkit +reproducibletarflags=" + --sort=name + --mtime=@${SOURCE_DATE_EPOCH:-$(date +%%s)} + --owner=0 --group=0 --numeric-owner + --pax-option=exthdr.name=%%d/PaxHeaders/%%f,delete=atime,delete=ctime" +tar $reproducibletarflags -cvf polkit.tar.gz polkit install -m 0644 polkit.tar.gz %{buildroot}%{_datadir}/dde-daemon/ # File all dbus service profiles, workaround boo#1070943 @@ -247,7 +252,7 @@ mkdir dbus/system-services mkdir dbus/system.d mv %{buildroot}%{_datadir}/dbus-1/system-services/* dbus/system-services mv %{buildroot}%{_datadir}/dbus-1/system.d/* dbus/system.d -tar -cvf dbus.tar.gz dbus +tar $reproducibletarflags -cvf dbus.tar.gz dbus install -m 0644 dbus.tar.gz %{buildroot}%{_datadir}/dde-daemon/ popd