diff options
author | Bernd Waibel <waebbl-gentoo@posteo.net> | 2022-06-05 11:05:43 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-06-14 19:01:44 +0300 |
commit | b62d48ddf7302a3db272a0ffc494fb0f8defe8f5 (patch) | |
tree | 7a4afab31b71cdb9729c168950bac05333d6a9cf /sci-libs | |
parent | sci-libs/opencascade: add 7.6.2 (diff) | |
download | gentoo-b62d48ddf7302a3db272a0ffc494fb0f8defe8f5.tar.gz gentoo-b62d48ddf7302a3db272a0ffc494fb0f8defe8f5.tar.bz2 gentoo-b62d48ddf7302a3db272a0ffc494fb0f8defe8f5.zip |
sci-libs/opencascade: avoid pre-stripping binaries
Remove cmake settings for gcc and clang to not strip the binaries
during linking stage.
Closes: https://bugs.gentoo.org/831800
Bug: https://dev.opencascade.org/content/dont-pre-strip-binaries
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/25764
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-libs')
6 files changed, 38 insertions, 0 deletions
diff --git a/sci-libs/opencascade/files/opencascade-7.6.2-avoid-pre-stripping-binaries.patch b/sci-libs/opencascade/files/opencascade-7.6.2-avoid-pre-stripping-binaries.patch new file mode 100644 index 000000000000..144047fba163 --- /dev/null +++ b/sci-libs/opencascade/files/opencascade-7.6.2-avoid-pre-stripping-binaries.patch @@ -0,0 +1,33 @@ +https://bugs.gentoo.org/831800 +https://dev.opencascade.org/content/dont-pre-strip-binaries + +From 88e59e0199daaf66184833e366e9deb1299078a9 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Sun, 5 Jun 2022 09:48:09 +0200 +Subject: [PATCH] avoid pre-stripping binaries + +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- a/adm/cmake/occt_defs_flags.cmake ++++ b/adm/cmake/occt_defs_flags.cmake +@@ -133,8 +133,6 @@ if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang") + # does not support option "-std=c++0x" + set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}") + endif() +- # Optimize size of binaries +- set (CMAKE_SHARED_LINKER_FLAGS "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS}") + elseif(MINGW) + add_definitions(-D_WIN32_WINNT=0x0601) + # _WIN32_WINNT=0x0601 (use Windows 7 SDK) +@@ -150,9 +148,6 @@ elseif(MINGW) + elseif (DEFINED CMAKE_COMPILER_IS_GNUCXX) + # Require C++11 + set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}") +- # Optimize size of binaries +- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s") +- set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s") + endif() + + if (BUILD_RELEASE_DISABLE_EXCEPTIONS) +-- +2.35.1 + diff --git a/sci-libs/opencascade/opencascade-7.5.2-r6.ebuild b/sci-libs/opencascade/opencascade-7.5.2-r6.ebuild index 4ba6a2ccee23..d4500132ab1f 100644 --- a/sci-libs/opencascade/opencascade-7.5.2-r6.ebuild +++ b/sci-libs/opencascade/opencascade-7.5.2-r6.ebuild @@ -67,6 +67,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch "${FILESDIR}"/${PN}-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch + "${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch ) src_prepare() { diff --git a/sci-libs/opencascade/opencascade-7.5.3-r7.ebuild b/sci-libs/opencascade/opencascade-7.5.3-r7.ebuild index 7dc58dcd6393..8287de53da6b 100644 --- a/sci-libs/opencascade/opencascade-7.5.3-r7.ebuild +++ b/sci-libs/opencascade/opencascade-7.5.3-r7.ebuild @@ -67,6 +67,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch "${FILESDIR}"/${PN}-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch + "${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch ) src_prepare() { diff --git a/sci-libs/opencascade/opencascade-7.6.0-r4.ebuild b/sci-libs/opencascade/opencascade-7.6.0-r4.ebuild index cd8196d34d06..41e15cf2bd76 100644 --- a/sci-libs/opencascade/opencascade-7.6.0-r4.ebuild +++ b/sci-libs/opencascade/opencascade-7.6.0-r4.ebuild @@ -64,6 +64,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch + "${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch ) src_prepare() { diff --git a/sci-libs/opencascade/opencascade-7.6.1-r1.ebuild b/sci-libs/opencascade/opencascade-7.6.1-r1.ebuild index cd8196d34d06..41e15cf2bd76 100644 --- a/sci-libs/opencascade/opencascade-7.6.1-r1.ebuild +++ b/sci-libs/opencascade/opencascade-7.6.1-r1.ebuild @@ -64,6 +64,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch + "${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch ) src_prepare() { diff --git a/sci-libs/opencascade/opencascade-7.6.2.ebuild b/sci-libs/opencascade/opencascade-7.6.2.ebuild index cd8196d34d06..1a0ee2adda8e 100644 --- a/sci-libs/opencascade/opencascade-7.6.2.ebuild +++ b/sci-libs/opencascade/opencascade-7.6.2.ebuild @@ -64,6 +64,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch + "${FILESDIR}"/${P}-avoid-pre-stripping-binaries.patch ) src_prepare() { |