macaroni-os / macaroni-os/mark-issues
[core-server-kit] sys-fs/hfsutils-3.2.6-r5 fails to emerge
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
```
>>> 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: https://github.com/coffnix/coffnix-ebuilds/commit/bfd1a6e087c953d30d10d6db4ee4e0d8fa342710
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the old sys-fs/hfsutils-3.2.6-r5 ebuild with the newer 3.2.6_p15 ebuild and patches referenced in commit bfd1a6e087c953d30d10d6db4ee4e0d8fa342710. Start with the configure failure and its config.log, then verify that the updated package builds successfully with GCC 14 and the reported compiler flags.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100