diff --git a/sle11-remove-unknown-compiler-options.patch b/sle11-remove-unknown-compiler-options.patch new file mode 100644 index 0000000..5285f53 --- /dev/null +++ b/sle11-remove-unknown-compiler-options.patch @@ -0,0 +1,14 @@ +Index: talloc-2.1.9/lib/replace/wscript +=================================================================== +--- talloc-2.1.9.orig/lib/replace/wscript ++++ talloc-2.1.9/lib/replace/wscript +@@ -706,8 +706,7 @@ def build(bld): + bld.SAMBA_SUBSYSTEM('replace-test', + source='''test/testsuite.c test/strptime.c + test/os2_delete.c test/getifaddrs.c''', +- deps='replace', +- cflags="-Wno-format-length") ++ deps='replace') + + if bld.env.standalone_replace: + bld.SAMBA_BINARY('replace_testsuite', diff --git a/talloc.changes b/talloc.changes index 0462e2a..4be894e 100644 --- a/talloc.changes +++ b/talloc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 20:45:20 UTC 2017 - jmcdonough@suse.com + +- Build SLE11 and earlier without -Wno-format-length. + ------------------------------------------------------------------- Wed Mar 22 16:51:46 UTC 2017 - jmcdonough@suse.com diff --git a/talloc.spec b/talloc.spec index 2ab8a24..de4bed8 100644 --- a/talloc.spec +++ b/talloc.spec @@ -62,6 +62,7 @@ Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc Source4: baselibs.conf Patch0: talloc-python3.5-fix-soabi_name.patch +Patch1: sle11-remove-unknown-compiler-options.patch Source50: talloc.keyring BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -175,6 +176,9 @@ Libraries and Header Files to Develop Programs with python3-talloc Support %prep %setup -n talloc-%{version} -q %patch0 -p1 +%if 0%{?suse_version} < 1200 +%patch1 -p1 +%endif %build %if ! %{build_man}