Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine-vanilla/, app-emulation/wine-vanilla/files/
Date: Fri, 16 Jul 2021 23:22:40
Message-Id: 1626477754.3baf5a5158b264648f59c99c172a8bb3c9b92fe7.slyfox@gentoo
1 commit: 3baf5a5158b264648f59c99c172a8bb3c9b92fe7
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 6 22:31:19 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 16 23:22:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3baf5a51
7
8 app-emulation/wine-vanilla: revert winegcc '=' parameter handling
9
10 LDFLAGS=-Wl,--defsym=__gentoo_check_ldflags__=0 causes
11 wine-vanilla-6.12 build failures in form of:
12
13 ```
14 tools/winegcc/winegcc -o dlls/acledit/acledit.dll.so ... \
15 -Wl,--defsym=__gentoo_check_ldflags__=0
16
17 ld:--defsym:0: syntax error
18 collect2: error: ld returned 1 exit status
19 winegcc: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc failed
20 ```
21
22 The change is a revert of upstream commit fcda0afd
23 ("winegcc: Support -Wl,foo=... style linker options.")
24
25 Bug: https://bugs.winehq.org/show_bug.cgi?id=51413
26 Closes: https://bugs.gentoo.org/800809
27 Package-Manager: Portage-3.0.20, Repoman-3.0.3
28 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
29 Closes: https://github.com/gentoo/gentoo/pull/21618
30 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
31
32 .../files/wine-vanilla-6.12-winegcc-equals-args.patch | 13 +++++++++++++
33 app-emulation/wine-vanilla/wine-vanilla-6.12.ebuild | 1 +
34 2 files changed, 14 insertions(+)
35
36 diff --git a/app-emulation/wine-vanilla/files/wine-vanilla-6.12-winegcc-equals-args.patch b/app-emulation/wine-vanilla/files/wine-vanilla-6.12-winegcc-equals-args.patch
37 new file mode 100644
38 index 00000000000..562b63af063
39 --- /dev/null
40 +++ b/app-emulation/wine-vanilla/files/wine-vanilla-6.12-winegcc-equals-args.patch
41 @@ -0,0 +1,13 @@
42 +https://bugs.winehq.org/show_bug.cgi?id=51413
43 +https://bugs.gentoo.org/800809
44 +--- a/tools/winegcc/winegcc.c
45 ++++ b/tools/winegcc/winegcc.c
46 +@@ -1982,7 +1982,7 @@ int main(int argc, char **argv)
47 + if (strncmp("-Wl,", opts.args->base[i], 4) == 0)
48 + {
49 + unsigned int j;
50 +- strarray* Wl = strarray_fromstring(opts.args->base[i] + 4, ",=");
51 ++ strarray* Wl = strarray_fromstring(opts.args->base[i] + 4, ",");
52 + for (j = 0; j < Wl->size; j++)
53 + {
54 + if (!strcmp(Wl->base[j], "--image-base") && j < Wl->size - 1)
55
56 diff --git a/app-emulation/wine-vanilla/wine-vanilla-6.12.ebuild b/app-emulation/wine-vanilla/wine-vanilla-6.12.ebuild
57 index b16b5176cce..e725ccf27b9 100644
58 --- a/app-emulation/wine-vanilla/wine-vanilla-6.12.ebuild
59 +++ b/app-emulation/wine-vanilla/wine-vanilla-6.12.ebuild
60 @@ -144,6 +144,7 @@ PATCHES=(
61 "${PATCHDIR}/patches/${MY_PN}-4.7-multilib-portage.patch" #395615
62 "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
63 "${PATCHDIR}/patches/${MY_PN}-5.9-Revert-makedep-Install-also-generated-typelib-for-in.patch"
64 + "${FILESDIR}/wine-vanilla-6.12-winegcc-equals-args.patch" #800809
65 )
66 PATCHES_BIN=()