forked from pool/pommed
Accepting request 1166592 from home:bmwiedemann:branches:Base:System
Add `reproducible.patch` to produce deterministic build results independent of the number of cores/parallelism (boo#1102408) Update `pommed-dbus_policy.patch` and `pommed-desktop.patch` to allow using `%autopatch` OBS-URL: https://build.opensuse.org/request/show/1166592 OBS-URL: https://build.opensuse.org/package/show/Base:System/pommed?expand=0&rev=22
This commit is contained in:
parent
e7bca9caea
commit
3692835c3d
@ -1,7 +1,7 @@
|
|||||||
Index: dbus-policy.conf
|
Index: dbus-policy.conf
|
||||||
===================================================================
|
===================================================================
|
||||||
--- dbus-policy.conf.orig
|
--- a/dbus-policy.conf.orig
|
||||||
+++ dbus-policy.conf
|
+++ b/dbus-policy.conf
|
||||||
@@ -15,5 +15,7 @@
|
@@ -15,5 +15,7 @@
|
||||||
<policy context="default">
|
<policy context="default">
|
||||||
<allow send_destination="org.pommed"/>
|
<allow send_destination="org.pommed"/>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: gpomme/gpomme-c.desktop
|
Index: gpomme/gpomme-c.desktop
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gpomme/gpomme-c.desktop.orig
|
--- a/gpomme/gpomme-c.desktop.orig
|
||||||
+++ gpomme/gpomme-c.desktop
|
+++ b/gpomme/gpomme-c.desktop
|
||||||
@@ -6,4 +6,4 @@ Icon=gpomme
|
@@ -6,4 +6,4 @@ Icon=gpomme
|
||||||
Exec=gpomme -c
|
Exec=gpomme -c
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
@ -10,8 +10,8 @@ Index: gpomme/gpomme-c.desktop
|
|||||||
+Categories=System;Settings;HardwareSettings;
|
+Categories=System;Settings;HardwareSettings;
|
||||||
Index: gpomme/gpomme.desktop
|
Index: gpomme/gpomme.desktop
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gpomme/gpomme.desktop.orig
|
--- a/gpomme/gpomme.desktop.orig
|
||||||
+++ gpomme/gpomme.desktop
|
+++ b/gpomme/gpomme.desktop
|
||||||
@@ -6,4 +6,4 @@ Icon=gpomme
|
@@ -6,4 +6,4 @@ Icon=gpomme
|
||||||
Exec=gpomme
|
Exec=gpomme
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 10 07:47:05 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- 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 <dimstar@opensuse.org>
|
Thu Feb 29 14:48:07 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ Patch3: pommed-1.38-hardcoded-libpci.patch
|
|||||||
# PATCH-FIX-UPSTREAM pommed-dbus_policy.patch ro@novell.com -- bnc#469771
|
# PATCH-FIX-UPSTREAM pommed-dbus_policy.patch ro@novell.com -- bnc#469771
|
||||||
Patch4: pommed-dbus_policy.patch
|
Patch4: pommed-dbus_policy.patch
|
||||||
Patch5: pommed-1.39-multiple-def-lcd_bck_info.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: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(alsa)
|
BuildRequires: pkgconfig(alsa)
|
||||||
@ -97,11 +99,7 @@ of each item controlled by pommed.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 1
|
%autopatch -p1
|
||||||
%patch -P 2 -p1
|
|
||||||
%patch -P 3 -p1
|
|
||||||
%patch -P 4
|
|
||||||
%patch -P 5 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
67
reproducible.patch
Normal file
67
reproducible.patch
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user