Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727280 - =sys-libs/liburing-0.6 calls 'ar' and 'ranlib' directly: make[1]: ar: No such file or directory
Summary: =sys-libs/liburing-0.6 calls 'ar' and 'ranlib' directly: make[1]: ar: No such...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-06-06 08:29 UTC by Sergei Trofimovich
Modified: 2020-06-06 09:37 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 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(-)