[packman] "reproducible builds" for the Multimedia/MakeMKV package

munix9 munix9 at googlemail.com
Wed May 26 11:19:39 CEST 2021


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)/





More information about the Packman mailing list