Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774018 - wxwidgets.eclass: fix cross-compiling
Summary: wxwidgets.eclass: fix cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-03 00:10 UTC by David Michael
Modified: 2021-03-26 20:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix.patch (0001-wxwidgets.eclass-fix-cross-compiling.patch,1.49 KB, patch)
2021-03-03 00:10 UTC, David Michael
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2021-03-03 00:10:17 UTC
Cross-compiled wxGTK installs a CHOST-prefixed wx-config file, so it is not located by the eclass.  The eclass also needs to look for it in SYSROOT so it uses the version built for the target system.
Comment 1 David Michael 2021-03-03 00:10:35 UTC
Created attachment 689166 [details, diff]
fix.patch
Comment 2 Larry the Git Cow gentoo-dev 2021-03-26 20:31:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77ff3a67bee9dcefd5f0fc9eb074f4e500c8a9ef

commit 77ff3a67bee9dcefd5f0fc9eb074f4e500c8a9ef
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2021-03-26 20:31:36 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-03-26 20:31:36 +0000

    wxwidgets.eclass: fix cross-compiling
    
    The wx-config file name is prefixed with CHOST when cross-compiling
    wxGTK, so test for that path's existence as well.  It also needs to
    be used from SYSROOT.
    
    Closes: https://bugs.gentoo.org/774018
    Signed-off-by: David Michael <fedora.dm0@gmail.com>
    Signed-off-by: David Seifert <soap@gentoo.org>

 eclass/wxwidgets.eclass | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)