#1075067 hfsutils: ftbfs with GCC-14

Package:
src:hfsutils
Source:
src:hfsutils
Submitter:
Matthias Klose
Date:
2025-11-27 22:41:01 UTC
Severity:
normal
Tags:
#1075067#5
Date:
2024-07-03 12:30:08 UTC
From:
To:
[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/hfsutils_3.2.6-16_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
gpgv:                using RSA key 62FF8A7584E029569546000674263B37F5B5F913
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./hfsutils_3.2.6-16.dsc: no acceptable signature found
dpkg-source: info: extracting hfsutils in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking hfsutils_3.2.6.orig.tar.gz
tar: A lone zero block at 2060
dpkg-source: info: unpacking hfsutils_3.2.6-16.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 0001-Fix-build-system-issues.patch
dpkg-source: info: applying 0002-Fix-FTBFS-with-gcc-3.4.patch
dpkg-source: info: applying 0003-Add-support-for-files-larger-than-2GB.patch
dpkg-source: info: applying 0004-Add-DUSE_INTERP_RESULT-to-DEFINES-in-Makefile.in.patch
dpkg-source: info: applying 0005-Fix-missing-inclusion-of-string.h-in-hpwd.c.patch

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=unstable
SCHROOT_CHROOT_NAME=sid-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-dcaa0bdb-dc3d-4c6a-87a4-a48323583f62
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package hfsutils
dpkg-buildpackage: info: source version 3.2.6-16
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || /usr/bin/make -o configure.in distclean
dh_clean
 debian/rules build
dh_testdir
# Add here commands to compile the package.
CFLAGS="-Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" LDFLAGS="-Wl,-z,relro" ./configure --prefix=/usr \
	    --mandir=\${prefix}/share/man \
	    --with-tcl=/usr/lib \
	    --with-tk=/usr/lib
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [debian/rules:19: build-stamp] Error 1
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

#1075067#14
Date:
2024-11-29 13:28:47 UTC
From:
To:
Hi,

* Matthias Klose [Wed Jul 03, 2024 at 12:30:08PM +0000]:

[...]
[...]

I'm not sure how relevant hfsutils is those days, but due to this
FTBFS issue, hfsutils is no longer present in Debian unstable
nor testing, so it won't be shipped with Debian/trixie unless
someone takes care of this. :)

regards
-mika-

#1075067#19
Date:
2024-11-29 13:48:21 UTC
From:
To:
Hello,

I am going to take care of this during the holidays. I'm just currently
overloaded.

Thanks,
Adrian

#1075067#24
Date:
2025-04-10 23:09:53 UTC
From:
To:
Control: tags -1 patch

The Ubuntu diff has this fixed.

A minimal-ish change (without the debian/rules rewrite in the Ubuntu diff)
based on that is attached.

cu
Adrian

#1075067#31
Date:
2025-04-11 04:56:02 UTC
From:
To:
Hello Adrian,

OK, thank you. Would be good if this could be upstreamed, for example here [1].

Adrian

#1075067#38
Date:
2025-11-27 22:22:49 UTC
From:
To:
https://github.com/targetdisk/hfsutils/pull/1

The owner of the fork hasn't taken action yet to merge the PR.
But the patches at least exist in an easily accessible way.

#1075067#43
Date:
2025-11-27 22:39:37 UTC
From:
To:
Hi,

Thanks, I should hopefully get around to get this done over Christmas.

I'll add it to my TOOD list.

Adrian