commit:     28b45c9532feaf612bf3f673ee90b8ef54c1a5cf
Author:     Alberto Gireud <agireud <AT> protonmail <DOT> com>
AuthorDate: Tue Mar  5 09:19:56 2024 +0000
Commit:     Alberto Gireud <agireud <AT> protonmail <DOT> com>
CommitDate: Tue Mar  5 09:21:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=28b45c95

app-admin/ananicy-cpp: Revbump and add patch to remove debug flags from 
RELWITHDEBINFO build.

Closes: https://bugs.gentoo.org/887193
Signed-off-by: Alberto Gireud <agireud <AT> protonmail.com>

 ...cpp-1.1.1-r1.ebuild => ananicy-cpp-1.1.1-r2.ebuild} |  4 ++++
 .../files/ananicy-cpp-1.1.1-remove-debug-flags.patch   | 18 ++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/app-admin/ananicy-cpp/ananicy-cpp-1.1.1-r1.ebuild 
b/app-admin/ananicy-cpp/ananicy-cpp-1.1.1-r2.ebuild
similarity index 94%
rename from app-admin/ananicy-cpp/ananicy-cpp-1.1.1-r1.ebuild
rename to app-admin/ananicy-cpp/ananicy-cpp-1.1.1-r2.ebuild
index f3481ad557..e97720ff94 100644
--- a/app-admin/ananicy-cpp/ananicy-cpp-1.1.1-r1.ebuild
+++ b/app-admin/ananicy-cpp/ananicy-cpp-1.1.1-r2.ebuild
@@ -24,6 +24,10 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+       "${FILESDIR}/${P}-remove-debug-flags.patch"
+)
+
 src_configure() {
        local mycmakeargs=(
                -DENABLE_SYSTEMD=$(usex systemd)

diff --git 
a/app-admin/ananicy-cpp/files/ananicy-cpp-1.1.1-remove-debug-flags.patch 
b/app-admin/ananicy-cpp/files/ananicy-cpp-1.1.1-remove-debug-flags.patch
new file mode 100644
index 0000000000..612eedddef
--- /dev/null
+++ b/app-admin/ananicy-cpp/files/ananicy-cpp-1.1.1-remove-debug-flags.patch
@@ -0,0 +1,18 @@
+Removes debug flags from RELWITHDEBINFO build.
+Bug: https://bugs.gentoo.org/887193
+Signed-off-by: Alberto Gireud <agir...@protonmail.com>
+
+index e1a041f..7e16d4c 100644
+--- a/cmake/CompilerChecks.cmake
++++ b/cmake/CompilerChecks.cmake
+@@ -22,8 +22,6 @@ set(CMAKE_MESSAGE_CONTEXT "")
+
+ if(CXX_ACCEPTS_G3)
+     set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3")
+-    set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_DEBUG} -g3")
+ elseif(CXX_ACCEPTS_G)
+     set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
+-    set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_DEBUG} -g")
+ endif()
+
+ if(CXX_ACCEPTS_OG)

Reply via email to