Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625560 - app-emulation/wine-{any,vanilla,staging,d3d9} && app-eselect/wine: winegcc fails to link when using a variant symlink other than /usr/bin/winegcc
Summary: app-emulation/wine-{any,vanilla,staging,d3d9} && app-eselect/wine: winegcc fa...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL: https://source.winehq.org/git/wine.gi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-18 18:52 UTC by Adam Feldman
Modified: 2017-08-21 09:20 UTC (History)
6 users (show)

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


Attachments
wine-winegcc-verbose.patch (wine-winegcc-verbose.patch,1.31 KB, patch)
2017-07-19 19:38 UTC, Bob Wya
Details | Diff
C test program (main.c,216 bytes, text/plain)
2017-07-19 19:41 UTC, Bob Wya
Details
winegcc-staging-2.12-variant_build_log (winegcc-staging-2.12-variant_build_log.txt,10.97 KB, text/plain)
2017-07-19 19:45 UTC, Bob Wya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Feldman gentoo-dev 2017-07-18 18:52:56 UTC
winegcc attempts to guess the libdir which doesn't work with the prefixed installation directories.  The default symlinks for plain old wine's libdir work with winegcc's autodetection code, however no other symlinks work (ie for /usr/bin/winegcc-2.2 or /usr/bin/winegcc-vanilla, etc).

The only consumer that would have really caused a problem for this was www-plugins/pipelight (since we'd be using the -staging variant), but since that was recently removed from the tree, I'm adding this as a reminder to fix this bug, and won't be holding up unmasking of the slotted packaging based on this bug report.

The issue is in the get_lib_dir function.  I haven't come up with the best way to resolve it yet.
Comment 1 Bob Wya 2017-07-19 19:38:27 UTC
Created attachment 485980 [details, diff]
wine-winegcc-verbose.patch

NP, I've had a dive into this issue... However I can't seem to reproduce it. The variant winegcc-* wrappers appears to work on my system.

I used the attached patch to verify the operation of the get_lib_dir() function.
Comment 2 Bob Wya 2017-07-19 19:41:57 UTC
Created attachment 485982 [details]
C test program

Test program - C source code.
Comment 3 Bob Wya 2017-07-19 19:45:19 UTC
Created attachment 485992 [details]
winegcc-staging-2.12-variant_build_log

Build log from compilation:

/usr/bin/winegcc-staging-2.12 -v main.c &> winegcc-staging-2.12-variant_build_log.txt