Am 26.05.21 um 11:08 schrieb munix9:

Attached is a suggestion/patch for "reproducible builds" for the Multimedia/MakeMKV package.



Added the patch as text for easier readability.


makemkv.spec.patch

--- a/makemkv.spec
+++ b/makemkv.spec
@@ -35,7 +35,7 @@
 Url:            http://www.makemkv.com
 Source0:        %{name}-oss-%{version}.tar.gz
 Source1:        %{name}-bin-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+Patch0:         fix-reproducible-builds.patch
 Requires:       %{libnamedriveio} = %{version}-%{release}
 Requires:       %{libnamemakemkve} = %{version}-%{release}
 Requires:       %{libnamemmbd} = %{version}-%{release}
@@ -108,7 +108,7 @@


 %prep
-%setup -q -n %{name}-oss-%{version}
+%autosetup -n %{name}-oss-%{version} -p1

 %build
export CC="gcc -fcommon" # see <https://gcc.gnu.org/gcc-10/porting_to.html#common>



fix-reproducible-builds.patch

--- a/Makefile.in
+++ b/Makefile.in
@@ -27,7 +27,7 @@
 OBJCOPY=@OBJCOPY@
 LD=@LD@
 BUILDINFO_ARCH_NAME=$(shell $(GCC) -dumpmachine)
-BUILDINFO_BUILD_DATE=$(shell date)
+BUILDINFO_BUILD_DATE=$(shell date -u -d@$(SOURCE_DATE_EPOCH))

 top_srcdir ?= .
 INCF=-I$(top_srcdir)/



_______________________________________________
Packman mailing list
Packman@links2linux.de
https://lists.links2linux.de/cgi-bin/mailman/listinfo/packman

Antwort per Email an