diff --git a/libsamplerate-0.1.9-reproducible.patch b/libsamplerate-0.1.9-reproducible.patch new file mode 100644 index 0000000..0b45e89 --- /dev/null +++ b/libsamplerate-0.1.9-reproducible.patch @@ -0,0 +1,13 @@ +Index: libsamplerate-0.1.9/tests/Makefile.in +=================================================================== +--- libsamplerate-0.1.9.orig/tests/Makefile.in ++++ libsamplerate-0.1.9/tests/Makefile.in +@@ -1136,7 +1136,7 @@ check: $(noinst_PROGRAMS) + ./varispeed_test + ./float_short_test + ./snr_bw_test +- ./throughput_test ++ #./throughput_test # disabled to have reproducible builds with PGO - see https://github.com/bmwiedemann/theunreproduciblepackage/tree/master/pgo + @echo "-----------------------------------------------------------------" + @echo " ${PACKAGE}-${VERSION} passed all tests." + @echo "-----------------------------------------------------------------" diff --git a/libsamplerate.changes b/libsamplerate.changes index 1d39ed5..31d69a4 100644 --- a/libsamplerate.changes +++ b/libsamplerate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 9 12:10:42 UTC 2018 - bwiedemann@suse.com + +- Add libsamplerate-0.1.9-reproducible.patch to disable throughput + test to make builds reproducible in spite of Profile Guided Optimizations + ------------------------------------------------------------------- Sat Sep 30 23:47:42 UTC 2017 - jengelh@inai.de diff --git a/libsamplerate.spec b/libsamplerate.spec index 3328b8f..05958c2 100644 --- a/libsamplerate.spec +++ b/libsamplerate.spec @@ -25,6 +25,8 @@ Group: Development/Libraries/C and C++ Url: http://www.mega-nerd.com/SRC/ Source0: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz Source1: baselibs.conf +# PATCH-FEATURE-OPENSUSE -- Make build reproducible +Patch0: libsamplerate-0.1.9-reproducible.patch BuildRequires: fftw3-devel BuildRequires: libsndfile-devel BuildRequires: pkgconfig @@ -77,6 +79,7 @@ This package includes the example programs for libsamplerate. %prep %setup -q +%patch0 -p1 %build %ifnarch %arm aarch64