Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 552500

Summary: app-eselect/eselect-wxwidgets-20140423: does not respect libdir
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: RESOLVED FIXED    
Severity: normal CC: ahipp0, deefster, eselect, kentnl, rkitover
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/7103
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 506276    
Attachments: eselect-wxwidgets-20140423.ebuild
Patch for wxwidgets.eselect
Updated patch for wxwidgets.eselect, to be used with >=app-admin/eselect-1.4.13

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-06-18 21:23:26 UTC
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).
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-01-21 06:47:10 UTC
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 )
Comment 2 cyrillic 2018-01-29 01:31:18 UTC
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 :
Comment 3 Arfrever Frehtes Taifersar Arahesis 2018-02-06 17:13:58 UTC
*** Bug 646728 has been marked as a duplicate of this bug. ***
Comment 4 Ulrich Müller gentoo-dev 2018-05-27 10:41:40 UTC
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.
Comment 5 Ulrich Müller gentoo-dev 2018-05-29 17:17:23 UTC
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).
Comment 6 Mart Raudsepp gentoo-dev 2018-08-06 15:28:49 UTC
*** Bug 662914 has been marked as a duplicate of this bug. ***
Comment 7 Andrey 2018-08-22 00:04:34 UTC
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.
Comment 8 Larry the Git Cow gentoo-dev 2018-08-30 17:00:51 UTC
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(+)