diff --git a/media-sound/loudgain/files/loudgain-0.6.8-github-pr37-respect-build-flags.patch b/media-sound/loudgain/files/loudgain-0.6.8-github-pr37-respect-build-flags.patch deleted file mode 100644 index cf4e4aadde..0000000000 --- a/media-sound/loudgain/files/loudgain-0.6.8-github-pr37-respect-build-flags.patch +++ /dev/null @@ -1,31 +0,0 @@ -https://github.com/Moonbase59/loudgain/pull/37 -From 31fc71b9970f22a116a9ad7eae66dc9cc66a54c1 Mon Sep 17 00:00:00 2001 -From: Peter Oliver -Date: Sun, 18 Oct 2020 00:51:52 +0100 -Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20override=20CFLAGS=20and=20CXXFL?= - =?UTF-8?q?AGS=20env=20variables?= -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This is necessary, for example, to build with the [hardened build flags](https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md#hardened-builds) used by default for Fedora. ---- - CMakeLists.txt | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9487ab9..eb030e2 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -72,9 +72,9 @@ SET_TARGET_PROPERTIES(loudgain PROPERTIES - COMPILE_FLAGS "-Wall -pedantic -g" - ) - --SET(CMAKE_C_FLAGS "-std=gnu99 -D_GNU_SOURCE") -+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -D_GNU_SOURCE") - --SET(CMAKE_CXX_FLAGS "-std=gnu++11 -D_GNU_SOURCE") -+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -D_GNU_SOURCE") - - INSTALL(TARGETS loudgain DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) - diff --git a/media-sound/loudgain/files/loudgain-0.6.8-respect-build-flags.patch b/media-sound/loudgain/files/loudgain-0.6.8-respect-build-flags.patch new file mode 100644 index 0000000000..9c1d475fe1 --- /dev/null +++ b/media-sound/loudgain/files/loudgain-0.6.8-respect-build-flags.patch @@ -0,0 +1,22 @@ +Respect CFLAGS and CXXFLAGS provided by the package manager. +https://bugs.gentoo.org/952032 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9487ab98a594..a8e1bed7a527 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -68,14 +68,6 @@ TARGET_LINK_LIBRARIES(loudgain + ${LTAG_LIBRARIES} + ) + +-SET_TARGET_PROPERTIES(loudgain PROPERTIES +- COMPILE_FLAGS "-Wall -pedantic -g" +-) +- +-SET(CMAKE_C_FLAGS "-std=gnu99 -D_GNU_SOURCE") +- +-SET(CMAKE_CXX_FLAGS "-std=gnu++11 -D_GNU_SOURCE") +- + INSTALL(TARGETS loudgain DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) + + INSTALL(FILES diff --git a/media-sound/loudgain/loudgain-0.6.8_p20240128-r1.ebuild b/media-sound/loudgain/loudgain-0.6.8_p20240128-r2.ebuild similarity index 93% rename from media-sound/loudgain/loudgain-0.6.8_p20240128-r1.ebuild rename to media-sound/loudgain/loudgain-0.6.8_p20240128-r2.ebuild index 2035e2f60f..e656094820 100644 --- a/media-sound/loudgain/loudgain-0.6.8_p20240128-r1.ebuild +++ b/media-sound/loudgain/loudgain-0.6.8_p20240128-r2.ebuild @@ -28,11 +28,11 @@ DEPEND="${COMMON_DEPEND}" PATCHES=( "${FILESDIR}/loudgain-0.6.8-github-pr34-manpage.patch" - "${FILESDIR}/loudgain-0.6.8-github-pr37-respect-build-flags.patch" "${FILESDIR}/loudgain-0.6.8-github-pr50-ffmpeg6.patch" "${FILESDIR}/loudgain-0.6.8-github-pr53-print-taglib-version.patch" "${FILESDIR}/loudgain-0.6.8-github-pr65-ffmpeg6-gcc14.patch" "${FILESDIR}/loudgain-0.6.8-github-pr66-ffmpeg7.patch" + "${FILESDIR}/loudgain-0.6.8-respect-build-flags.patch" ) src_install() {