Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731162 - 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)
Summary: net-fs/nfs4-acl-tools-0.3.7 relies on system libtool which breaks when using ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
: 778512 (view as bug list)
Depends on:
Blocks: rlibtool
  Show dependency tree
 
Reported: 2020-07-07 06:20 UTC by Agostino Sarubbo
Modified: 2022-06-17 23:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,12.28 KB, text/plain)
2020-07-07 06:20 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,247 bytes, application/x-bzip-compressed-tar)
2020-07-07 06:20 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)