Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727288 - app-emulation/wine-vanilla-5.9 calls 'ar' directly (ABI_X86="32")
Summary: app-emulation/wine-vanilla-5.9 calls 'ar' directly (ABI_X86="32")
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-06-06 09:22 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-06-06 15:36 UTC (History)
0 users

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 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-06 09:22:47 UTC
On a sys-devel/binutils-config[-native-symlinks] system app-emulation/wine-vanilla-5.9 build fails as:

"""
rm -f libwpp.a
ar rc libwpp.a preproc.o wpp.o ppy.tab.o ppl.yy.o
make[1]: ar: No such file or directory
"""

That happens because wine overrides default 'tc-export' detection with null assignment 'local PKG_CONFIG AR RANLIB':

"""
    local PKG_CONFIG AR RANLIB
    # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
    # set AR and RANLIB to make QA scripts happy; #483342
    tc-export PKG_CONFIG AR RANLIB
"""

At least AR and RANLIB change should not be needed anymore as multilib.eclass attemts to set reasonable valies to them: https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/multilib.eclass?id=dd35b529194fdcadf324fd4f0a466a61aa1dfadb

The following does not fix wine build completely (unqualified 'as' is used) but makes things a little bit better:


--- a/app-emulation/wine-vanilla/wine-vanilla-5.9.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-5.9.ebuild
@@ -419,10 +419,9 @@ multilib_src_configure() {
 		$(use_with xml xslt)
 	)

-	local PKG_CONFIG AR RANLIB
+	local PKG_CONFIG
 	# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
-	# set AR and RANLIB to make QA scripts happy; #483342
-	tc-export PKG_CONFIG AR RANLIB
+	tc-export PKG_CONFIG

 	if use amd64; then
 		if [[ ${ABI} == amd64 ]]; then
Comment 1 Larry the Git Cow gentoo-dev 2020-06-06 15:36:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=c7bcfbac23a0193453f5d354eb16e03b0ec5dc38

commit c7bcfbac23a0193453f5d354eb16e03b0ec5dc38
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2020-06-06 15:35:22 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2020-06-06 15:35:22 +0000

    app-emulation/wine-vanilla: Bump to 5.10
    
    Closes: https://bugs.gentoo.org/727288
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 app-emulation/wine-vanilla/Manifest                |   1 +
 .../wine-vanilla/wine-vanilla-5.10.ebuild          | 539 +++++++++++++++++++++
 2 files changed, 540 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=532f9676eb48cb49051a888737e4d3cecb557f3b

commit 532f9676eb48cb49051a888737e4d3cecb557f3b
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2020-06-06 15:36:31 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2020-06-06 15:36:31 +0000

    app-emulation/wine-staging: Bump to 5.10
    
    Bug: https://bugs.gentoo.org/727288
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 app-emulation/wine-staging/Manifest                |   2 +
 .../wine-staging/wine-staging-5.10.ebuild          | 620 +++++++++++++++++++++
 2 files changed, 622 insertions(+)