WXCONFFILE="${EROOT}"/var/lib/wxwidgets/current WXCONFDIR="${EROOT}"/usr/lib/wx/config which means it all falls apart when /usr/lib isn't the native libdir (or the creepy old amd64 profile symlink).
This becomes much more of a problem once one switches to the new 17.1 profile, where wxGTK installs to /usr/lib64, resulting in eselect wxwidgets list listing no wxwidgets profiles. ( And subsequently, all consumers of wx-config are broken )
Created attachment 517028 [details] eselect-wxwidgets-20140423.ebuild I encountered the same problem when I switched to a 2017.1 profile. Here is how I fixed it :
*** Bug 646728 has been marked as a duplicate of this bug. ***
Created attachment 533498 [details, diff] Patch for wxwidgets.eselect Please test if attached patch for wxwidgets.eselect fixes the problem. For simplicity of testing, I have added a get_libdir function directly to the module. The plan would be to add this function to eselect's package-manager lib instead, and make a new eselect release.
Created attachment 534030 [details, diff] Updated patch for wxwidgets.eselect, to be used with >=app-admin/eselect-1.4.13 Updated patch. Please test with >=app-admin/eselect-1.4.13 (which provides a get_libdir() function).
*** Bug 662914 has been marked as a duplicate of this bug. ***
Hit the same issue on default/linux/amd64/17.1/no-multilib profile. The patch in attachment 534030 [details, diff] fixes the problem for me. However, it requires eselect-1.4.13, which is still ~amd64.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6f2b9a1265e6bb17a5571319f92043101df5fd commit 9a6f2b9a1265e6bb17a5571319f92043101df5fd Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2018-08-30 17:00:11 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-08-30 17:00:40 +0000 app-eselect/eselect-wxwidgets: Fix libdir usage. Non-maintainer commit, acked by leio. Closes: https://bugs.gentoo.org/552500 Package-Manager: Portage-2.3.48, Repoman-2.3.10 app-eselect/eselect-wxwidgets/Manifest | 1 + .../eselect-wxwidgets-20180529.ebuild | 52 ++++++++++++++++++++++ 2 files changed, 53 insertions(+)