From 1cb00e64f14a66952e69ae9bb3891517fa414c47 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Mon, 18 May 2026 17:39:38 +0800 Subject: [PATCH] dev-util/wxformbuilder: drop -fPIE from app, bump to -r1 - Add no-pie patch: app target now POSITION_INDEPENDENT_CODE OFF. - Third-party static libs keep -fPIC for shared-lib linking. Closes: https://bugs.gentoo.org/948602 Signed-off-by: Huang Rui --- .../files/wxformbuilder-4.2.1-no-pie.patch | 20 +++++++++++++++++++ ...1.ebuild => wxformbuilder-4.2.1-r1.ebuild} | 5 ++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 dev-util/wxformbuilder/files/wxformbuilder-4.2.1-no-pie.patch rename dev-util/wxformbuilder/{wxformbuilder-4.2.1.ebuild => wxformbuilder-4.2.1-r1.ebuild} (86%) diff --git a/dev-util/wxformbuilder/files/wxformbuilder-4.2.1-no-pie.patch b/dev-util/wxformbuilder/files/wxformbuilder-4.2.1-no-pie.patch new file mode 100644 index 0000000000..78884afc01 --- /dev/null +++ b/dev-util/wxformbuilder/files/wxformbuilder-4.2.1-no-pie.patch @@ -0,0 +1,20 @@ +Disable position independent code for the executable target. + +Upstream enables CMAKE_POSITION_INDEPENDENT_CODE globally in +cmake/macros.cmake (for the benefit of static libraries that get linked +into shared libraries), which propagates -fPIE to the wxFormBuilder_app +executable. Gentoo's tinderbox QA flags this as an "uncommon" flag +(QA0069), since PIE handling belongs to the toolchain. Set the property +to OFF on the executable target so libs still get -fPIC. + +https://bugs.gentoo.org/948602 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -16,6 +16,7 @@ + add_executable(wxFormBuilder_app WIN32 MACOSX_BUNDLE) + add_executable(wxFormBuilder::app ALIAS wxFormBuilder_app) + set_target_properties(wxFormBuilder_app PROPERTIES ++ POSITION_INDEPENDENT_CODE OFF + OUTPUT_NAME "$,$>,wxFormBuilder,wxformbuilder>" + ) + diff --git a/dev-util/wxformbuilder/wxformbuilder-4.2.1.ebuild b/dev-util/wxformbuilder/wxformbuilder-4.2.1-r1.ebuild similarity index 86% rename from dev-util/wxformbuilder/wxformbuilder-4.2.1.ebuild rename to dev-util/wxformbuilder/wxformbuilder-4.2.1-r1.ebuild index 729bf48e4b..fa71302da5 100644 --- a/dev-util/wxformbuilder/wxformbuilder-4.2.1.ebuild +++ b/dev-util/wxformbuilder/wxformbuilder-4.2.1-r1.ebuild @@ -28,4 +28,7 @@ DEPEND="${RDEPEND} >=dev-libs/boost-1.71 " -PATCHES=( "${FILESDIR}/${P}-fix-build.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-4.2.1-fix-build.patch" + "${FILESDIR}/${PN}-4.2.1-no-pie.patch" +)