From 3c6b59f0edc27eb3c958b4152aef6c2855376a6a22d4b6efa95d0723b52e1f27 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 1 Jun 2017 07:45:13 +0000 Subject: [PATCH 1/2] Accepting request 500302 from home:mnhauke:sdr-devel - Add patch: - bladeRF-add-cflag-Wno-format-truncation.diff (fix build for Tumbleweed) OBS-URL: https://build.opensuse.org/request/show/500302 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/bladeRF?expand=0&rev=15 --- bladeRF-add-cflag-Wno-format-truncation.diff | 12 ++++++++++++ bladeRF.changes | 7 +++++++ bladeRF.spec | 5 +++++ 3 files changed, 24 insertions(+) create mode 100644 bladeRF-add-cflag-Wno-format-truncation.diff diff --git a/bladeRF-add-cflag-Wno-format-truncation.diff b/bladeRF-add-cflag-Wno-format-truncation.diff new file mode 100644 index 0000000..d168e6c --- /dev/null +++ b/bladeRF-add-cflag-Wno-format-truncation.diff @@ -0,0 +1,12 @@ +diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt +index 848b62d..70a5ca3 100644 +--- a/host/CMakeLists.txt ++++ b/host/CMakeLists.txt +@@ -91,6 +91,7 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR + add_definitions(-Wall) + add_definitions(-Wextra) + add_definitions(-Wno-unused-parameter) ++ add_definitions(-Wno-format-truncation) + + if(TREAT_WARNINGS_AS_ERRORS) + add_definitions(-Werror) diff --git a/bladeRF.changes b/bladeRF.changes index 4013d52..68b0d25 100644 --- a/bladeRF.changes +++ b/bladeRF.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jun 1 06:47:30 UTC 2017 - mardnh@gmx.de + +- Add patch: + - bladeRF-add-cflag-Wno-format-truncation.diff + (fix build for Tumbleweed) + ------------------------------------------------------------------- Wed Apr 26 18:15:47 UTC 2017 - mardnh@gmx.de diff --git a/bladeRF.spec b/bladeRF.spec index a1b4e0d..9f68a65 100644 --- a/bladeRF.spec +++ b/bladeRF.spec @@ -31,6 +31,7 @@ Group: Productivity/Hamradio/Other Url: http://nuand.com/ #Git-Clone: https://github.com/Nuand/bladeRF.git Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz +Patch0: bladeRF-add-cflag-Wno-format-truncation.diff BuildRequires: cmake >= 2.8.4 BuildRequires: doxygen BuildRequires: fdupes @@ -74,6 +75,10 @@ use of libbladerf. %prep %setup -q -n %{name}-%{release_name} +# FIXME: should be fixed upstream +%if 0%{?suse_version} > 1320 +%patch0 -p1 +%endif %build cd host From a101b42a50d884b107ebde3677d95d38b752d99e5d4b18945edecafea008d85a Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 1 Jun 2017 17:00:58 +0000 Subject: [PATCH 2/2] * bladeRF-add-cflag-Wno-format-truncation.patch (boo#1041192) OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/bladeRF?expand=0&rev=16 --- ...on.diff => bladeRF-add-cflag-Wno-format-truncation.patch | 0 bladeRF.changes | 3 +-- bladeRF.spec | 6 ++---- 3 files changed, 3 insertions(+), 6 deletions(-) rename bladeRF-add-cflag-Wno-format-truncation.diff => bladeRF-add-cflag-Wno-format-truncation.patch (100%) diff --git a/bladeRF-add-cflag-Wno-format-truncation.diff b/bladeRF-add-cflag-Wno-format-truncation.patch similarity index 100% rename from bladeRF-add-cflag-Wno-format-truncation.diff rename to bladeRF-add-cflag-Wno-format-truncation.patch diff --git a/bladeRF.changes b/bladeRF.changes index 68b0d25..90b5e09 100644 --- a/bladeRF.changes +++ b/bladeRF.changes @@ -2,8 +2,7 @@ Thu Jun 1 06:47:30 UTC 2017 - mardnh@gmx.de - Add patch: - - bladeRF-add-cflag-Wno-format-truncation.diff - (fix build for Tumbleweed) + * bladeRF-add-cflag-Wno-format-truncation.patch (boo#1041192) ------------------------------------------------------------------- Wed Apr 26 18:15:47 UTC 2017 - mardnh@gmx.de diff --git a/bladeRF.spec b/bladeRF.spec index 9f68a65..eaa5817 100644 --- a/bladeRF.spec +++ b/bladeRF.spec @@ -31,7 +31,8 @@ Group: Productivity/Hamradio/Other Url: http://nuand.com/ #Git-Clone: https://github.com/Nuand/bladeRF.git Source: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz -Patch0: bladeRF-add-cflag-Wno-format-truncation.diff +# PATCH-FIX-OPENSUSE bladeRF-add-cflag-Wno-format-truncation.patch boo#1041192 +Patch0: bladeRF-add-cflag-Wno-format-truncation.patch BuildRequires: cmake >= 2.8.4 BuildRequires: doxygen BuildRequires: fdupes @@ -75,10 +76,7 @@ use of libbladerf. %prep %setup -q -n %{name}-%{release_name} -# FIXME: should be fixed upstream -%if 0%{?suse_version} > 1320 %patch0 -p1 -%endif %build cd host