forked from pool/python-rjsmin
Accepting request 703832 from home:bmwiedemann:branches:devel:languages:python
Add reproducible.patch to build without profiling (boo#1040589) note: might need testing. OBS-URL: https://build.opensuse.org/request/show/703832 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rjsmin?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
272875d27f
commit
f8a965bfd5
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 18 02:29:20 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add reproducible.patch to build without profiling (boo#1040589)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 15 18:27:39 UTC 2019 - Ethan Apodaca <eapodaca@suse.com>
|
||||
|
||||
|
@@ -27,6 +27,8 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: http://opensource.perlig.de/rjsmin/
|
||||
Source: https://github.com/ndparker/rjsmin/archive/%{release_sha}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE -- build without profiling
|
||||
Patch0: reproducible.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -46,6 +48,7 @@ at runtime (rather than during a preprocessing step).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{release_sha}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
21
reproducible.patch
Normal file
21
reproducible.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
Date: 2019-05-18
|
||||
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
||||
|
||||
Do not instrument code with profiling
|
||||
to make build reproducible
|
||||
and also more sane in general
|
||||
Index: rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47/debug.unix.cflags
|
||||
===================================================================
|
||||
--- rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47.orig/debug.unix.cflags
|
||||
+++ rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47/debug.unix.cflags
|
||||
@@ -1,10 +1,6 @@
|
||||
# allow crash debugging
|
||||
-ggdb
|
||||
|
||||
-# produce coverage reports
|
||||
--ftest-coverage
|
||||
--fprofile-arcs
|
||||
-
|
||||
# don't compile on weird code
|
||||
-std=c89 -pedantic -fno-strict-aliasing -Werror
|
||||
-Wall
|
Reference in New Issue
Block a user