Skip to content

Commit

Permalink
media-sound/lmms: Drop -Werror (bug #567428).
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
Jeroen Roovers committed Dec 31, 2015
1 parent 9f26206 commit 6772126
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions media-sound/lmms/files/lmms-1.1.3-Werror.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -334,9 +334,6 @@

# 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()

# Due to a regression in gcc-4.8.X, we need to disable array-bounds check
IF (CMAKE_COMPILER_IS_GNUCXX AND ((CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "4.8.0") OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.8.0")))
5 changes: 4 additions & 1 deletion media-sound/lmms/lmms-1.1.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ RDEPEND="${RDEPEND}

DOCS="README AUTHORS TODO"

PATCHES=( "${FILESDIR}/gcc52.patch" )
PATCHES=(
"${FILESDIR}/gcc52.patch"
"${FILESDIR}/lmms-1.1.3-Werror.patch"
)

src_configure() {
mycmakeargs="${mycmakeargs}
Expand Down

0 comments on commit 6772126

Please sign in to comment.