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

Bug 625560

Summary: app-emulation/wine-{any,vanilla,staging,d3d9} && app-eselect/wine: winegcc fails to link when using a variant symlink other than /usr/bin/winegcc
Product: Gentoo Linux Reporter: Adam Feldman <np-hardass>
Component: Current packagesAssignee: Wine Maintainers <wine>
Status: CONFIRMED ---    
Severity: normal CC: bob.mt.wya, jj, np-hardass, theli.ua, tsmksubc, xms-00
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://source.winehq.org/git/wine.git/blob/a8b5fdda3214e4fd52682aefaa093cd45766580e:/tools/winegcc/winegcc.c#l446
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: wine-winegcc-verbose.patch
C test program
winegcc-staging-2.12-variant_build_log

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