From 6deff417034b2e418ca33dc303967e189ca70ae47a59ffd53d1410b80f5e0874 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 9 Jan 2018 16:32:03 +0000 Subject: [PATCH] Accepting request 562897 from home:bmwiedemann:branches:multimedia:libs Add libsamplerate-0.1.9-reproducible.patch to disable throughput test to make builds reproducible in spite of Profile Guided Optimizations See https://github.com/bmwiedemann/theunreproduciblepackage/tree/master/pgo for background and examples Additionally, this change significantly speeds up package builds. OBS-URL: https://build.opensuse.org/request/show/562897 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsamplerate?expand=0&rev=37 --- libsamplerate-0.1.9-reproducible.patch | 13 +++++++++++++ libsamplerate.changes | 6 ++++++ libsamplerate.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 libsamplerate-0.1.9-reproducible.patch 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