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

Bug 936309

Summary: sys-auth/oath-toolkit-2.6.9 does not pull in the required automake
Product: Gentoo Linux Reporter: Carlos Konstanski <420actionunits>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: CONFIRMED ---    
Severity: normal CC: mjo, sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Carlos Konstanski 2024-07-19 14:35:37 UTC
sys-auth/oath-toolkit-2.6.9 requires dev-build/automake-1.16.5. However this dependency is not called out in the ebuild. One has to manually perform an emerge --oneshot =dev-build/automake-1.16.5-r2 before building oath-toolkit.

Reproducible: Always
Comment 1 Michael Orlitzky gentoo-dev 2024-08-31 12:02:58 UTC
The real issue is, why is it trying to use automake at all? There's some mess with generated Makefile snippets that I think causes Makefile.in to be rebuilt from Makefile.am. That shouldn't happen in a release...
Comment 2 Michael Orlitzky gentoo-dev 2024-08-31 13:12:31 UTC
Ah. It's the patch. When the mtime of the source files is updated, it triggers a bunch of rebuilds that wouldn't happen otherwise, and gets us into the aforementioned Makefile mess.

It should be fixed in newer versions. I just added a patch to 2.6.11 and had to fix this before I could push it.
Comment 3 Larry the Git Cow gentoo-dev 2024-08-31 13:18:46 UTC
The bug has been referenced in the following commit(s):

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

commit 6cd7e5165b7750317d42a65b9bc20ce65eec8302
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-08-31 11:03:45 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-08-31 13:18:30 +0000

    sys-auth/oath-toolkit: fix the build on musl
    
    Add an upstream patch to fix the build on musl, and then fix a new
    problem introduced by the patch: the build system is extremely sensitive
    to mtime changes in the source tree, in that patching triggers a
    rebuild of some Makefile sources, which ultimately tries to invoke
    automake. We have to fudge the mtime on the patched file to avoid this.
    
    Bug: https://bugs.gentoo.org/936309
    Closes: https://bugs.gentoo.org/933086
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../files/oath-toolkit-2.6.11-fix-musl-build.patch | 24 ++++++++++++++++++++++
 sys-auth/oath-toolkit/oath-toolkit-2.6.11.ebuild   | 12 +++++++++++
 2 files changed, 36 insertions(+)