Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903885 - x11-libs/wxGTK:3.2-gtk3 - /usr/bin/wxrc collides with eselect-wxwidgets when USE=-X
Summary: x11-libs/wxGTK:3.2-gtk3 - /usr/bin/wxrc collides with eselect-wxwidgets when ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 903688
  Show dependency tree
 
Reported: 2023-04-05 19:32 UTC by James Le Cuirot
Modified: 2023-05-01 02:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2023-04-05 19:32:42 UTC
The ebuild removes /usr/bin/wxrc so that it does not collide with eselect-wxwidgets but only when USE=X. The upstream logic of whether to install wxrc or not changed in 3.1. Previously it was based on the --enable-xrc option, which we've never specified at all, but it is disabled by --disable-gui. That option is still there, but now the logic is based on --with-expat instead, which we pass unconditionally. This seems odd, and I have no idea why it changed, but that's how it is.

The addition of the wayland USE flag should also be considered here. Perhaps we should just rm -f wxrc. Basing --disable-gui solely on the X flag also seems wrong.
Comment 1 Arsen Arsenović gentoo-dev 2023-04-30 15:29:11 UTC
thanks for the analysis, I've removed the conditionals to get

~/.../repo/x11-libs/wxGTK$ tar -xOf /var/cache/binpkgs/x11-libs/wxGTK/wxGTK-3.2.2.1-r2-1.gpkg.tar  wxGTK-3.2.2.1-r2-1/image.tar.bz2 | bzip2 -d - | tar -tf - | grep 'bin.*xrc'
image/usr/bin/wxrc-3.2-gtk3
image/usr/lib/debug/usr/bin/wxrc-3.2-gtk3.debug

with USE=-X.  I'll push that now.

apologies for the delay.

wrt USE=X really being GUI, the wayland support upstream doesn't really exist without X AFAICT, so I'm not sure what we ought to be doing about that.
Comment 2 Larry the Git Cow gentoo-dev 2023-04-30 15:32:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ea54579e1ca07511b81fd648d2e8b1583ee41ee

commit 5ea54579e1ca07511b81fd648d2e8b1583ee41ee
Author:     Arsen Arsenović <arsen@gentoo.org>
AuthorDate: 2023-04-30 15:24:55 +0000
Commit:     Arsen Arsenović <arsen@gentoo.org>
CommitDate: 2023-04-30 15:25:58 +0000

    x11-libs/wxGTK: fix the wxrc link not being deleted with USE=-X
    
    Closes: https://bugs.gentoo.org/903885
    Signed-off-by: Arsen Arsenović <arsen@gentoo.org>

 x11-libs/wxGTK/wxGTK-3.2.2.1-r2.ebuild | 225 +++++++++++++++++++++++++++++++++
 1 file changed, 225 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2023-05-01 02:31:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63d7507fbcf008d12ff05dd5258e94eec4827f34

commit 63d7507fbcf008d12ff05dd5258e94eec4827f34
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-01 02:31:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-01 02:31:04 +0000

    x11-libs/wxGTK: stabilize 3.2.2.1-r2 for amd64, arm, arm64, x86
    
    Forward stable kw to avoid file collision.
    
    Bug: https://bugs.gentoo.org/903885
    Bug: https://bugs.gentoo.org/903688
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/wxGTK/wxGTK-3.2.2.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)