commit: 5a331a7a1e2f1e945bda061316925ceccb9c984d Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Dec 8 14:04:42 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Dec 8 15:06:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a331a7a
app-crypt/zulucrypt: fix compile remove -pie for shared-libs zuluCrypt and zuluCrypt-exe Closes: https://bugs.gentoo.org/961174 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44953 Closes: https://github.com/gentoo/gentoo/pull/44953 Signed-off-by: Sam James <sam <AT> gentoo.org> .../zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch | 19 +++++++++++++++++++ app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch b/app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch new file mode 100644 index 000000000000..0eba7da980ff --- /dev/null +++ b/app-crypt/zulucrypt/files/zulucrypt-7.0.0-fix_linking.patch @@ -0,0 +1,19 @@ +PR pending https://github.com/mhogomchungu/zuluCrypt/pull/241.patch +remove -pie for shared-libs zuluCrypt and zuluCrypt-exe +see https://bugs.gentoo.org/961174 +--- a/zuluCrypt-cli/CMakeLists.txt ++++ b/zuluCrypt-cli/CMakeLists.txt +@@ -132,11 +132,11 @@ endif() + TARGET_LINK_LIBRARIES( zuluCrypt String StringList Process ${cryptsetup_lib} ${blkid} ${uuid_lib} ${devmapper_lib} -lgcrypt -lzuluplay ) + endif() + +- set_target_properties( zuluCrypt PROPERTIES LINK_FLAGS "-pie -Wl,-z,relro -Wl,-z,now" ) ++ set_target_properties( zuluCrypt PROPERTIES LINK_FLAGS "-Wl,-z,relro -Wl,-z,now" ) + + TARGET_LINK_LIBRARIES( zuluCrypt-exe zuluCrypt zuluCryptPluginManager ) + +- set_target_properties( zuluCrypt-exe PROPERTIES LINK_FLAGS "-pie -Wl,-z,relro -Wl,-z,now" ) ++ set_target_properties( zuluCrypt-exe PROPERTIES LINK_FLAGS "-Wl,-z,relro -Wl,-z,now" ) + + #TARGET_LINK_LIBRARIES( zuluCrypt-static String StringList Process ) + #TARGET_LINK_LIBRARIES( zuluCrypt-exe-static zuluCrypt-static zuluCryptPluginManager-static ) diff --git a/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild b/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild index 46db21703bce..d065cb29d376 100644 --- a/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild +++ b/app-crypt/zulucrypt/zulucrypt-7.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -29,6 +29,11 @@ RDEPEND="${DEPEND} udev? ( virtual/udev )" BDEPEND="virtual/pkgconfig" +PATCHES=( + # PR pending https://github.com/mhogomchungu/zuluCrypt/pull/241.patch + "${FILESDIR}"/${PN}-7.0.0-fix_linking.patch +) + src_configure() { local mycmakeargs=( -DBUILD_WITH_QT6=ON
