diff --git a/pommed-dbus_policy.patch b/pommed-dbus_policy.patch index 9dae268..5690c4f 100644 --- a/pommed-dbus_policy.patch +++ b/pommed-dbus_policy.patch @@ -1,7 +1,7 @@ Index: dbus-policy.conf =================================================================== ---- dbus-policy.conf.orig -+++ dbus-policy.conf +--- a/dbus-policy.conf.orig ++++ b/dbus-policy.conf @@ -15,5 +15,7 @@ diff --git a/pommed-desktop.patch b/pommed-desktop.patch index 339a719..4340b89 100644 --- a/pommed-desktop.patch +++ b/pommed-desktop.patch @@ -1,7 +1,7 @@ Index: gpomme/gpomme-c.desktop =================================================================== ---- gpomme/gpomme-c.desktop.orig -+++ gpomme/gpomme-c.desktop +--- a/gpomme/gpomme-c.desktop.orig ++++ b/gpomme/gpomme-c.desktop @@ -6,4 +6,4 @@ Icon=gpomme Exec=gpomme -c StartupNotify=true @@ -10,8 +10,8 @@ Index: gpomme/gpomme-c.desktop +Categories=System;Settings;HardwareSettings; Index: gpomme/gpomme.desktop =================================================================== ---- gpomme/gpomme.desktop.orig -+++ gpomme/gpomme.desktop +--- a/gpomme/gpomme.desktop.orig ++++ b/gpomme/gpomme.desktop @@ -6,4 +6,4 @@ Icon=gpomme Exec=gpomme StartupNotify=true diff --git a/pommed.changes b/pommed.changes index e098664..3e2a660 100644 --- a/pommed.changes +++ b/pommed.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Apr 10 07:47:05 UTC 2024 - Bernhard Wiedemann + +- Add reproducible.patch to produce deterministic build results + independent of the number of cores/parallelism (boo#1102408) +- Update pommed-dbus_policy.patch pommed-desktop.patch + to allow using %autopatch + ------------------------------------------------------------------- Thu Feb 29 14:48:07 UTC 2024 - Dominique Leuenberger diff --git a/pommed.spec b/pommed.spec index ad3fb2f..9d82fde 100644 --- a/pommed.spec +++ b/pommed.spec @@ -37,6 +37,8 @@ Patch3: pommed-1.38-hardcoded-libpci.patch # PATCH-FIX-UPSTREAM pommed-dbus_policy.patch ro@novell.com -- bnc#469771 Patch4: pommed-dbus_policy.patch Patch5: pommed-1.39-multiple-def-lcd_bck_info.patch +# PATCH-FIX-UPSTREAM https://salsa.debian.org/mactel-team/pommed/-/merge_requests/2 +Patch6: reproducible.patch BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: pkgconfig(alsa) @@ -97,11 +99,7 @@ of each item controlled by pommed. %prep %setup -q -%patch -P 1 -%patch -P 2 -p1 -%patch -P 3 -p1 -%patch -P 4 -%patch -P 5 -p1 +%autopatch -p1 %build make %{?_smp_mflags} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..1f5745b --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,67 @@ +https://salsa.debian.org/mactel-team/pommed/-/merge_requests/2 + +Author: Bernhard M. Wiedemann +Date: 2023-12-20 + +Compile client-common with consistent CFLAGS - +otherwise debuginfo will vary across builds +depending on how parallel make scheduled compilations. +See https://reproducible-builds.org/ for why this matters. +This patch was done while working on reproducible builds for openSUSE. +Q: should we drop the duplicated rules from gpomme/Makefile wmpomme/Makefile ? + +diff --git a/Makefile b/Makefile +index bf51b4e..5849c46 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,10 +7,13 @@ all: pommed gpomme wmpomme + pommed: + $(MAKE) -C pommed OFLIB=$(OFLIB) + +-gpomme: ++client-common: ++ $(MAKE) -C client-common ++ ++gpomme: client-common + $(MAKE) -C gpomme + +-wmpomme: ++wmpomme: client-common + $(MAKE) -C wmpomme + + clean: +@@ -19,4 +22,4 @@ clean: + $(MAKE) -C wmpomme clean + rm -f *~ + +-.PHONY: pommed gpomme wmpomme ++.PHONY: pommed gpomme wmpomme client-common +diff --git a/client-common/Makefile b/client-common/Makefile +new file mode 100644 +index 0000000..b0a4770 +--- /dev/null ++++ b/client-common/Makefile +@@ -0,0 +1,10 @@ ++DBUS_CFLAGS = $(shell pkg-config dbus-1 --cflags) -DDBUS_API_SUBJECT_TO_CHANGE ++CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) ++SOURCES = dbus-client.c \ ++ video-client.c ++ ++OBJS = $(SOURCES:%.c=%.o) ++ ++all: $(OBJS) ++dbus-client.o: dbus-client.c dbus-client.h ++video-client.o: video-client.c video-client.h +diff --git a/wmpomme/Makefile b/wmpomme/Makefile +index cc7a438..0679273 100644 +--- a/wmpomme/Makefile ++++ b/wmpomme/Makefile +@@ -22,7 +22,7 @@ wmgeneral.o: wmgeneral.c wmgeneral.h + + ../client-common/dbus-client.o: ../client-common/dbus-client.c ../client-common/dbus-client.h + +-../client-common/dbus-video.o: ../client-common/video-client.c ../client-common/video-client.h ++../client-common/video-client.o: ../client-common/video-client.c ../client-common/video-client.h + + clean: + rm -f wmpomme $(OBJS)