[lmms] lmms-1.0.3-no_werror.patch

Rex Dieter rdieter at fedoraproject.org
Thu Feb 19 14:21:58 UTC 2015


commit bc385ebe7b021c12c735654bbe8f92d58a8bed23
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Feb 19 08:21:57 2015 -0600

    lmms-1.0.3-no_werror.patch

 lmms-1.0.3-no_werror.patch | 18 ++++++++++++++++++
 lmms.spec                  | 10 +++++++++-
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/lmms-1.0.3-no_werror.patch b/lmms-1.0.3-no_werror.patch
new file mode 100644
index 0000000..11243de
--- /dev/null
+++ b/lmms-1.0.3-no_werror.patch
@@ -0,0 +1,18 @@
+diff -up lmms-1.0.3/CMakeLists.txt.no_werror lmms-1.0.3/CMakeLists.txt
+--- lmms-1.0.3/CMakeLists.txt.no_werror	2015-02-19 08:18:57.745047561 -0600
++++ lmms-1.0.3/CMakeLists.txt	2015-02-19 08:20:13.161250528 -0600
+@@ -322,10 +322,10 @@ CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/lmms
+ CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/plugins/zynaddsubfx/zynaddsubfx.rc.in" "${CMAKE_BINARY_DIR}/plugins/zynaddsubfx/zynaddsubfx.rc")
+ 
+ # set compiler flags
+-SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow")
+-IF(NOT LMMS_BUILD_APPLE)
+-   SET(WERROR_FLAGS "${WERROR_FLAGS} -Werror")
+-ENDIF()
++#SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow")
++#IF(NOT LMMS_BUILD_APPLE)
++#   SET(WERROR_FLAGS "${WERROR_FLAGS} -Werror")
++#ENDIF()
+ 
+ SET(CMAKE_C_FLAGS "-O2 -g ${WERROR_FLAGS} ${CMAKE_C_FLAGS}")
+ SET(CMAKE_CXX_FLAGS "-O2 -g -fno-exceptions ${WERROR_FLAGS} ${CMAKE_CXX_FLAGS}")
diff --git a/lmms.spec b/lmms.spec
index 9822634..591186a 100644
--- a/lmms.spec
+++ b/lmms.spec
@@ -1,6 +1,6 @@
 Name:           lmms
 Version:        1.0.3
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Linux MultiMedia Studio
 URL:            http://lmms.sourceforge.net/
 Group:          Applications/Multimedia
@@ -45,6 +45,10 @@ Patch1:         lmms-1.0.3-vst-nowine.patch
 # adds missing includes
 Patch2:         lmms-1.0.3-gcc47.patch
 
+# drop all -Werror related flags
+# -Werror is fine for development, not so much for release builds
+Patch3:         lmms-1.0.3-no_werror.patch
+
 # according to upstream we should at least support oss, alsa, and
 # jack. output via pulseaudio has high latency, but we enable it
 # nevertheless as it is standard on fedora now. portaudio support is
@@ -129,6 +133,7 @@ developing addons for %{name}.
 %patch0 -p1 -b .libexecdir
 %patch1 -p1 -b .nowine
 %patch2 -p1 -b .gcc47
+%patch3 -p1 -b .no_werror
 
 # remove spurious x-bits
 find . -type f -exec chmod 0644 {} \;
@@ -218,6 +223,9 @@ This package contains the necessary files to host VST plugins.
 
 
 %changelog
+* Thu Feb 19 2015 Rex Dieter <rdieter at fedoraproject.org> 1.0.3-5
+- lmms-1.0.3-no_werror.patch
+
 * Thu Feb 19 2015 Rex Dieter <rdieter at fedoraproject.org> 1.0.3-4
 - rebuild (fltk)
 


More information about the scm-commits mailing list