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

Bug 727280

Summary: =sys-libs/liburing-0.6 calls 'ar' and 'ranlib' directly: make[1]: ar: No such file or directory
Product: Gentoo Linux Reporter: Sergei Trofimovich <slyfox>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Sergei Trofimovich gentoo-dev 2020-06-06 08:29:20 UTC
On a sys-devel/binutils-config[-native-symlinks] systel libuting build fails as:

"""
ar r liburing.a setup.ol queue.ol syscall.ol register.ol
make[1]: ar: No such file or directory
make[1]: *** [Makefile:49: liburing.a] Error 127
"""

It seems to be called from

"""
src/Makefile:   $(QUIET_AR)$(AR) r liburing.a $^
"""

without any AR detection.

This seems to be enough to get liburing compiling:

--- a/sys-libs/liburing/liburing-0.6.ebuild
+++ b/sys-libs/liburing/liburing-0.6.ebuild
@@ -32,7 +32,7 @@ multilib_src_configure() {
 }

 multilib_src_compile() {
-	emake V=1
+	emake V=1 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
 }

 multilib_src_install_all() {
Comment 1 Larry the Git Cow gentoo-dev 2020-06-06 09:37:54 UTC
The bug has been closed via the following commit(s):

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

commit eddc81a7d3ae1553e3f7873a29081914303877c1
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-06-06 09:37:00 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-06-06 09:37:29 +0000

    sys-libs/liburing: Don't call ar and ranlib directly
    
    Closes: https://bugs.gentoo.org/727280
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-libs/liburing/liburing-0.5.ebuild | 2 +-
 sys-libs/liburing/liburing-0.6.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)