summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-05-26 10:39:14 +0100
committerSam James <sam@gentoo.org>2025-05-26 10:42:28 +0100
commit5bad3f3c548d366cb1cf3aa8c8dc7a62b5f7fc9e (patch)
tree791bdb47cb30c95d0334271d1d054d2e66093c1f
parent5789f5a5af28e911b65f4784b2f49497c709fad6 (diff)
downloadgentoo-5bad3f3c548d366cb1cf3aa8c8dc7a62b5f7fc9e.tar.gz
gentoo-5bad3f3c548d366cb1cf3aa8c8dc7a62b5f7fc9e.tar.bz2
gentoo-5bad3f3c548d366cb1cf3aa8c8dc7a62b5f7fc9e.zip
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 <sam@gentoo.org>
-rw-r--r--eclass/wxwidgets.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
index 7afea401a646..c861189b6551 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 "<x11-libs/wxGTK-3.2.8.1:3.2-gtk3"; then
+ wxconf="${wxtoolkit}-unicode-${WX_GTK_VER}"
+ else
+ wxconf="${wxtoolkit}-unicode-${WX_GTK_VER%%-*}"
+ fi
+
for w in "${CHOST:-${CBUILD}}-${wxconf}" "${wxconf}"; do
[[ -f ${ESYSROOT}/usr/$(get_libdir)/wx/config/${w} ]] && wxconf=${w} && break
done || die "Failed to find configuration ${wxconf}"