Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736657 - app-emulation/wine-vanilla and wine-staging: add option for PE builds (--with-mingw)
Summary: app-emulation/wine-vanilla and wine-staging: add option for PE builds (--with...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-10 20:52 UTC by Simon
Modified: 2020-10-23 02:48 UTC (History)
7 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 Simon 2020-08-10 20:52:29 UTC
Updating from wine-staging-5.9 to 5.10 or higher breaks multiple games, because wine-5.10+ needs to be compiled with mingw toolchain for native PE libraries.
Please fix this and meanwhile add back wine-staging-5.9.

Reproducible: Always
Comment 1 Simon 2020-08-10 20:55:58 UTC
See also related arch bug:
https://bugs.archlinux.org/task/67326
Comment 2 Ionen Wolkens 2020-08-10 23:15:21 UTC
There are several problems to making this streamlined in gentoo, but you can still build it using mingw by passing EXTRA_ECONF="--with-mingw" and having mingw available (typically through crossdev), that's what I do.

I do wish I could at least be spared from having to use EXTRA_ECONF, maybe a USE=mingw could be made which point to the mingw wiki page warning users to setup mingw themselves?
Comment 3 Mike Lothian 2020-08-16 11:31:14 UTC
If you have a working mingw environment I have wine-staging ebuilds in the FireBurn overlay with mingw support - it gets Blizzard's games working again
Comment 4 nvaert1986 2020-10-11 10:35:39 UTC
(In reply to Simon from comment #0)
> Updating from wine-staging-5.9 to 5.10 or higher breaks multiple games,
> because wine-5.10+ needs to be compiled with mingw toolchain for native PE
> libraries.
> Please fix this and meanwhile add back wine-staging-5.9.
> 
> Reproducible: Always

I have the exact same problem and the more the wine and wine-staging versions go up, the more that stops working. I've got like 12 applications and games that stopped working after going in the upper wine releases (luckily I still have wine-staging-5.0 installed). If mingw resolves the issue, then why isn't this a USE flag?

P.S.: While checking the ebuild I noticed 

multilib_src_configure() {
	local myconf=(

		--without-mingw # linux LDFLAGS leak in mingw32: bug #685172

	)

Wouldn't it be possible to simply just include a mingw USE flag?

It is referenced here: https://bugs.winehq.org/show_bug.cgi?id=45349#c14 and a bug that I created here: https://bugs.winehq.org/show_bug.cgi?id=49942
Comment 5 Chiitoo gentoo-dev 2020-10-11 12:28:09 UTC
Yeah, we'll probably add a flag for it mingw, it's just that no one got to it yet.  :]

If you're in a rush at all, you might like to test the ebuilds from the overlay that has been mentioned.  I'm sure they'll appreciate any testing and feedback there as well.

I'll try to look into this sooner rather than later if no one else gets to it first.

As for old versions, you can still find them via our Wine overlay (or/and Gentoo git history), but they aren't maintained too actively and may be broken from time to time.