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
This commit is contained in:
Takashi Iwai 2018-01-09 16:32:03 +00:00 committed by Git OBS Bridge
parent 3c6af5514a
commit 6deff41703
3 changed files with 22 additions and 0 deletions

View File

@ -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 "-----------------------------------------------------------------"

View File

@ -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

View File

@ -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