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

Bug 729260

Summary: app-editors/yudit-3.1.0 calls ar directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH, PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/33562
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log
Being able to specify AR ARFLAGS and RANLIB during "configure"

Description Agostino Sarubbo gentoo-dev 2020-06-23 06:36:36 UTC
@@This is an auto-filed bug@@
If you think that a different summary clarifies the issue better, feel free to change it.

Issue: app-editors/yudit calls ar directly.
Discovered on: amd64

NOTE:
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different AR implementation (like llvm-ar). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks] and set the AR variable to x86_64-pc-linux-gnu-ar.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-23 06:36:41 UTC
Created attachment 645814 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-24 18:40:35 UTC
ci has reproduced this issue with version 2.9.6 - Updating summary.
Comment 3 Agostino Sarubbo gentoo-dev 2023-02-15 06:50:31 UTC
ci has reproduced this issue with version 3.1.0 - Updating summary.
Comment 4 Gaspar Sinai 2023-02-24 12:00:43 UTC
Created attachment 854332 [details, diff]
Being able to specify AR ARFLAGS and RANLIB during "configure"

The attached patch is patch2 for yudit-3.1.0.
Now you can specify AR ARFLAGS and RANLIB when using configure.
I hope this helps bulding it on Gentoo.
Comment 5 Gaspar Sinai 2023-02-25 15:43:44 UTC
On Macintosh there was no compilation problem reported because
there is and "ar" command that comes with developer tools.

Still, I successfully tested the unmodified patch using 
Macintosh libtool that comes with developer tools:
 
/Library/Developer/CommandLineTools/usr/bin/libtool -> /usr/bin/libtool

./configure AR=/usr/bin/libtool ARFLAGS="-static -o" RANLIB=/bin/echo --prefix=/Applications/Yudit.app/Contents/MacOS
 
On Linux I could not replace "ar" command with GNU libtool, as it does
not seem to care about backward compatibility. You must have "ar"
and "ranlib" installed to compile Yudit on Linux.
Comment 6 Larry the Git Cow gentoo-dev 2023-11-21 17:45:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89a3c59b2bf1b84560c3e2c4f22dbed511855cd5

commit 89a3c59b2bf1b84560c3e2c4f22dbed511855cd5
Author:     Michael Mair-Keimberger <mmk@levelnine.at>
AuthorDate: 2023-10-28 10:40:10 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-11-21 17:45:41 +0000

    app-editors/yudit: improve ebuild, fix #729260
    
    Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
    
    Closes: https://bugs.gentoo.org/729260
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/yudit/yudit-3.1.0-r1.ebuild | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)