aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libgroove
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-03-09 11:32:19 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2018-03-09 11:32:19 +0100
commitf3809c6f4a739be24d2e29ae9badcbfc8530aa15 (patch)
tree6a75a481f6427bf4b1b36d0f096c80d066f5654d /pkgs/development/libraries/libgroove
parent6fcf691545896b278cc8e6961af5db9331656f8c (diff)
libgroove: fix build
When compiling with GCC v7 and the `-Werror` flag several new warnings caused the build to fail: https://hydra.nixos.org/build/70751457/nixlog/2 Note: I patched the CMake file manually as v4.3.0 is quite old, a v5 is in progress, but isn't stable yet, so patching v4 seems to be the better solution taking stability into account. See tickets #31747 and #36453
Diffstat (limited to 'pkgs/development/libraries/libgroove')
-rw-r--r--pkgs/development/libraries/libgroove/default.nix4
-rw-r--r--pkgs/development/libraries/libgroove/no-warnings-as-errors.patch15
2 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libgroove/default.nix b/pkgs/development/libraries/libgroove/default.nix
index ac6c9d297cc3..bd5a5f068515 100644
--- a/pkgs/development/libraries/libgroove/default.nix
+++ b/pkgs/development/libraries/libgroove/default.nix
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "1la9d9kig50mc74bxvhx6hzqv0nrci9aqdm4k2j4q0s1nlfgxipd";
};
+ patches = [ ./no-warnings-as-errors.patch ];
+
buildInputs = [ cmake libav SDL2 chromaprint libebur128 ];
meta = with stdenv.lib; {
@@ -18,6 +20,6 @@ stdenv.mkDerivation rec {
homepage = https://github.com/andrewrk/libgroove;
license = licenses.mit;
platforms = platforms.unix;
- maintainers = [ maintainers.andrewrk ];
+ maintainers = with maintainers; [ andrewrk ma27 ];
};
}
diff --git a/pkgs/development/libraries/libgroove/no-warnings-as-errors.patch b/pkgs/development/libraries/libgroove/no-warnings-as-errors.patch
new file mode 100644
index 000000000000..86a8a935769c
--- /dev/null
+++ b/pkgs/development/libraries/libgroove/no-warnings-as-errors.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a1e8541..6bc9c30 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -135,8 +135,8 @@ configure_file (
+ "${PROJECT_BINARY_DIR}/config.h"
+ )
+
+-set(LIB_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
+-set(EXAMPLE_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -g")
++set(LIB_CFLAGS "${C99_C_FLAGS} -pedantic -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
++set(EXAMPLE_CFLAGS "${C99_C_FLAGS} -pedantic -Wall -g")
+ set(EXAMPLE_INCLUDES "${PROJECT_SOURCE_DIR}")
+
+ add_library(groove SHARED ${LIBGROOVE_SOURCES} ${LIBGROOVE_HEADERS})