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

Bug 731162

Summary: net-fs/nfs4-acl-tools-0.3.7 relies on system libtool which breaks when using a different toolchain than libtool was built against (e.g. gcc-vs-clang or cross-compiling)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: orbea, sam, toralf
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/25943
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 779364    
Attachments: build.log
other.tar.bz2

Description Agostino Sarubbo gentoo-dev 2020-07-07 06:20:50 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-fs/nfs4-acl-tools fails to compile.
Discovered on: amd64

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-07 06:20:56 UTC
Created attachment 648094 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-07 06:20:59 UTC
Created attachment 648096 [details]
other.tar.bz2

other logs
Comment 3 Agostino Sarubbo gentoo-dev 2022-01-16 13:25:23 UTC
tinderbox has reproduced this issue with version 0.3.7 - Updating summary.
Comment 4 SpanKY gentoo-dev 2022-01-19 06:39:58 UTC
the "libtool: error: specify a tag with '--tag'" error pretty reliably means the package is executing /usr/bin/libtool instead of bundling & generating its own copy, and the toolchain you're currently trying to build with does not match the toolchain that /usr/bin/libtool was built against.  you can see this with gcc upgrades and internal changes (which is why we tell people to re-emerge libtool), and you can see this when libtool is using gcc but you're switching on the fly to something else (like clang, or a cross-compiler).

so sure, it's a bug, but short of doing detailed surgery on the package, "that's just how it is" unfortunately.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-17 21:06:26 UTC
The bug has been closed via the following commit(s):

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

commit aa46307e10bbe5d57c52c1b74cd32bf2865d1ddc
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-06-17 20:31:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-17 21:06:13 +0000

    net-fs/nfs4-acl-tools: Fix libtool build issues
    
    When building with a different toolchain than what was used to compile
    the system libtool the build will fail. To fix this autoconf needs to
    generate libtool instead of using the system libtool. Additionally
    rlibtool depends on libtool being generated to work correctly.
    
    Closes: https://bugs.gentoo.org/731162
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/25943
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/nfs4-acl-tools-0.3.7-libtool.patch       | 86 ++++++++++++++++++++++
 1 file changed, 86 insertions(+)
Comment 6 orbea 2022-06-17 22:42:13 UTC
*** Bug 778512 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2022-06-17 23:45:05 UTC
The bug has been referenced in the following commit(s):

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

commit dab861a0e0f33ba400fa937b2b1f368081a589da
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-17 23:40:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-17 23:44:54 +0000

    net-fs/nfs4-acl-tools: strip patch; add new revision
    
    (Was mangling it to do the changes in a revbump and didn't
    actually add the new version!)
    
    Bug: https://bugs.gentoo.org/731162
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/nfs4-acl-tools-0.3.7-libtool.patch       | 16 ++-----------
 .../nfs4-acl-tools/nfs4-acl-tools-0.3.7-r1.ebuild  | 27 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 14 deletions(-)