From 5bad3f3c548d366cb1cf3aa8c8dc7a62b5f7fc9e Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 26 May 2025 10:39:14 +0100 Subject: [PATCH] wxwidgets.eclass: handle new wxGTK naming/versioning scheme Previously, we installed with names like 'gtk3-unicode-3.2-gtk3' which came from our 'versionator' seds which also broke version scripts and symbol versioning. Instead, follow upstream naming which yields e.g. 'gtk3-unicode-3.2' instead (i.e. no extra toolkit suffix). Add a `has_version` to check for wxGTK ebuilds following the old scheme, and if that doesn't fire, strip out the suffix. Trying to make the old scheme semi-work wasn't feasible (and I did try). Bug: https://bugs.gentoo.org/955936 Signed-off-by: Sam James --- eclass/wxwidgets.eclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass index 7afea401a646d..c861189b6551b 100644 --- a/eclass/wxwidgets.eclass +++ b/eclass/wxwidgets.eclass @@ -84,7 +84,15 @@ setup-wxwidgets() { wxtoolkit="base" fi - wxconf="${wxtoolkit}-unicode-${WX_GTK_VER}" + # Older versions used e.g. 'gtk3-unicode-3.2-gtk3', while we've + # migrated to the upstream layout of 'gtk3-unicode-3.2' for newer + # versions when fixing bug #955936. + if has_version -d "