Skip to content

[core-server-kit] sys-fs/hfsutils-3.2.6-r5 fails to emerge #694

@coffnix

Description

@coffnix
>>> Emerging (1 of 1) sys-fs/hfsutils-3.2.6-r5::core-server-kit
 * hfsutils-3.2.6.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking hfsutils-3.2.6.tar.gz to /var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work
tar: A lone zero block at 2060
>>> Source unpacked in /var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work
>>> Preparing source in /var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work/hfsutils-3.2.6 ...
 * Applying hfsutils-3.2.6-errno.patch ...                                                                                                           [ ok ]
 * Applying largerthan2gb.patch ...                                                                                                                  [ ok ]
 * Applying hfsutils-3.2.6-fix-tcl-8.6.patch ...                                                                                                     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work/hfsutils-3.2.6 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --without-tcl --without-tk
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -pipe -march=znver3 -mtune=znver3 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work/hfsutils-3.2.6/config.log
 * ERROR: sys-fs/hfsutils-3.2.6-r5::core-server-kit failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_configure
 *             environment, line 1918:  Called econf '--without-tcl' '--without-tk'
 *        phase-helpers.sh, line  680:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-fs/hfsutils-3.2.6-r5::core-server-kit'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/hfsutils-3.2.6-r5::core-server-kit'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work/hfsutils-3.2.6'
 * S: '/var/tmp/portage/sys-fs/hfsutils-3.2.6-r5/work/hfsutils-3.2.6'

>>> Failed to emerge sys-fs/hfsutils-3.2.6-r5, Log file:

New ebuild tested + new patches: coffnix/coffnix-ebuilds@bfd1a6e

The old sys-fs/hfsutils-3.2.6-r5 ebuild failed during the configure phase with GCC 14:

checking whether the C compiler (...) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

The issue was not caused by a single patch alone. The old ebuild was still using an extremely outdated autotools setup and upstream-generated configure scripts from the original 3.2.6 release:

EAPI=5
inherit eutils toolchain-funcs
SRC_URI=ftp://ftp.mars.org/pub/hfs/${P}.tar.gz

After switching to the newer Gentoo/Debian-based hfsutils-3.2.6_p15 ebuild, the package builds correctly with GCC 14 because several important things changed simultaneously:

EAPI=5 -> EAPI=7
inherit eutils -> inherit autotools
upstream tarball -> Debian-maintained source + Debian patchset

The new ebuild also regenerates the autotools files using modern autotools:

eautoreconf

and exports the compiler environment explicitly:

tc-export CC

Additionally, newer compatibility patches were added:

hfsutils-3.2.6_p15-Include-string.h-for-strcmp.patch
hfsutils-3.2.6_p15-drop-manual-autoconf.patch

The old ebuild relied on stale configure scripts and legacy autotools logic that no longer behaves correctly with modern GCC 14 toolchains and current linker/compiler flags. The new ebuild fixes this by regenerating configure infrastructure and applying updated Debian/Gentoo compatibility patches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions