diff --git a/console-setup-1.134-reproducible.patch b/console-setup-1.134-reproducible.patch new file mode 100644 index 0000000..cb4a718 --- /dev/null +++ b/console-setup-1.134-reproducible.patch @@ -0,0 +1,35 @@ +Date: 2018-01-05 +By: Bernhard M. Wiedemann + +PATCH-FIX-UPSTREAM in 1.174 + +dont add timestamps to .gz headers + +generate reproducible random output for missing glyphs + +Index: console-setup-1.134/Fonts/Makefile +=================================================================== +--- console-setup-1.134.orig/Fonts/Makefile ++++ console-setup-1.134/Fonts/Makefile +@@ -7,7 +7,7 @@ build-any: + + + %.gz : % +- gzip -9 <$< >$@ ++ gzip -n9 <$< >$@ + + # All available non-legacy font faces + FACES = Fixed13 Fixed14 Fixed15 Fixed16 \ +Index: console-setup-1.134/Fonts/bdf2psf +=================================================================== +--- console-setup-1.134.orig/Fonts/bdf2psf ++++ console-setup-1.134/Fonts/bdf2psf +@@ -21,6 +21,8 @@ + + use warnings 'all'; + use strict; ++srand(0); ++ + + ##################################################################### + diff --git a/console-setup.changes b/console-setup.changes index 52f81a7..35d4f6d 100644 --- a/console-setup.changes +++ b/console-setup.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 5 06:40:43 UTC 2018 - bwiedemann@suse.com + +- Add console-setup-1.134-reproducible.patch to make package build + reproducible (boo#1062303) + ------------------------------------------------------------------- Sun Sep 24 08:50:06 UTC 2017 - coolo@suse.com diff --git a/console-setup.spec b/console-setup.spec index 89a3ca0..b14797f 100644 --- a/console-setup.spec +++ b/console-setup.spec @@ -30,6 +30,8 @@ Patch0: console-setup-1.76-paths.patch Patch1: console-setup-1.76-fsf-address.patch # Backport fix from 1.143 Patch2: console-setup-1.134-perl526.patch +# PATCH-FIX-UPSTREAM in 1.174 +Patch3: console-setup-1.134-reproducible.patch BuildRequires: perl BuildRequires: perl(encoding) @@ -49,6 +51,7 @@ supports several languages that would be otherwise unsupported on the console %patch0 -p1 -b .paths %patch1 -p1 -b .fsf-address %patch2 -p1 -b .perl526 +%patch3 -p1 -b .reproducible %build make build-linux