Your message dated Wed, 07 Aug 2024 15:34:19 +0000
with message-id <e1sbig7-00caji...@fasolo.debian.org>
and subject line Bug#1078098: fixed in libcrypt-gcrypt-perl 1.26-7
has caused the Debian Bug report #1078098,
regarding libcrypt-gcrypt-perl: Can't link/include C library 'gcrypt', aborting
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1078098: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078098
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libcrypt-gcrypt-perl
Version: 1.26-6
Severity: serious
Tags: trixie sid patch
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-14
Rebuilding this package on current sid produces an empty package.
The build system has trouble compiling or linking against gcrypt, but
the build does not fail and produces an empty package instead.
https://perl.debian.net/rebuild-logs/sid/libcrypt-gcrypt-perl_1.26-6/libcrypt-gcrypt-perl_1.26-6_amd64-2024-08-06T20%3A50%3A39Z.build
dh build
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2"
"LD=x86_64-linux-gnu-gcc -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"
Can't link/include C library 'gcrypt', aborting.
create-stamp debian/debhelper-build-stamp
Adding $args{debug}=1; to assert_lib() in inc/Devel/CheckLib.pm
reveals the reason:
/usr/bin/x86_64-linux-gnu-gcc -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fstack-protector-strong -L/usr/local/lib -ldl -lm
-lpthread -lc -lcrypt assertlib6Oi264pB.c -o assertlib1CazVLAR -L-lgcrypt
-lgcrypt
assertlib6Oi264pB.c: In function 'main':
assertlib6Oi264pB.c:1:22: error: implicit declaration of function
'gcry_check_version' [-Wimplicit-function-declaration]
1 | int main(void) { if (gcry_check_version("1.3.0")) return 0; else
return 1; }
| ^~~~~~~~~~~~~~~~~~
Can't link/include C library 'gcrypt', aborting.
So this is a GCC 14 related regression and is fixed by including
the gcrypt.h header with the version check. Patch attached.
As for not failing the build, looks like the upstream part of that is
intentional so that CPAN testers don't report failures due to lack of
external libraries. And debhelper / dh presumably sees that running
Makefile.PL doesn't produce a Makefile and assumes that this is not a
standard Perl package after all.
Not sure where that leaves us. Some solutions I can think of:
- patch Makefile.PL to use assert_lib() instead
- add a check in debian/rules to detect the failure
- call dh explicitly with --buildsystem=perl_makemaker
- change dh to fail the build if 'perl Makefile.PL' does not produce a Makefile
The last option is the only generic one, but might interfere
with the dh buildsystem automatic detection.
--
Niko
From: Niko Tyni <nt...@debian.org>
Date: Tue, 6 Aug 2024 22:08:51 +0100
X-Dgit-Generated: 1.26-6 c705b78053f02909c0db5549b794ad9f9fe10217
Subject: fix build with GCC-14
---
diff --git a/Makefile.PL b/Makefile.PL
index 86de082..0bf1af6 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -41,6 +41,7 @@ if (not $gcrypt_libpath and $] >= 5.006001) {
# SHA-512)
check_lib_or_exit(
function => 'if (gcry_check_version("1.3.0")) return 0; else return 1;',
+ header => [qw(gcrypt.h)],
lib => [qw(gcrypt)],
libpath => $gcrypt_libpath
);
--- End Message ---
--- Begin Message ---
Source: libcrypt-gcrypt-perl
Source-Version: 1.26-7
Done: gregor herrmann <gre...@debian.org>
We believe that the bug you reported is fixed in the latest version of
libcrypt-gcrypt-perl, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1078...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
gregor herrmann <gre...@debian.org> (supplier of updated libcrypt-gcrypt-perl
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 07 Aug 2024 17:06:36 +0200
Source: libcrypt-gcrypt-perl
Architecture: source
Version: 1.26-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintain...@lists.alioth.debian.org>
Changed-By: gregor herrmann <gre...@debian.org>
Closes: 1078098
Changes:
libcrypt-gcrypt-perl (1.26-7) unstable; urgency=medium
.
[ Debian Janitor ]
* Bump debhelper from old 12 to 13.
* Set upstream metadata fields: Repository-Browse.
.
[ gregor herrmann ]
* Add patch to use assert_lib(), i.e. fail the build instead of
producing an empty package. Cf. #1078098
* Add patch to fix build with GCC-14.
Thanks to Niko Tyni for the patch. (Closes: #1078098)
* Add /me to Uploaders.
* Declare compliance with Debian Policy 4.7.0.
* Set Rules-Requires-Root: no.
* Enable all hardening flags.
* Annotate test-only build dependencies with <!nocheck>.
* Drop debian/source/local-options.
Checksums-Sha1:
b6275a70b3007f66d520d7543b6aa82aff4ecd31 2467 libcrypt-gcrypt-perl_1.26-7.dsc
39c39930f928fa51811a9db28269598bac9079c8 6040
libcrypt-gcrypt-perl_1.26-7.debian.tar.xz
Checksums-Sha256:
287748eb60eb73dffdd7aea9940b5271fd5dfb0c389f6582af234ccf0e33c039 2467
libcrypt-gcrypt-perl_1.26-7.dsc
9168e1057a40fd0c226e9421494189a06b5d186b853d385511e492f5e61d2e3d 6040
libcrypt-gcrypt-perl_1.26-7.debian.tar.xz
Files:
734c372b3b7abd20b84a1517922f655d 2467 perl optional
libcrypt-gcrypt-perl_1.26-7.dsc
35cc406f64f30abab557829d1d50b917 6040 perl optional
libcrypt-gcrypt-perl_1.26-7.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmazjklfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgZq8xAAwQAtM1MzKzSU9tSl7A8M5B4rImbUm5sdYZ+mxmWuFSyN/AXIQVu/cC0m
ZPREoOQL/0rb+jIUdWMVfpAr7Bs13DdEmlCzUP23+P+N3Zy4ntwmSKZmdcpFxTvE
qus7vJ2JqDzYMy0fvGtANK92i0Vj0xWcY6drp9kiXPK21dKi63KfaVosSJq2a7NT
Rgue2MnkyvxqKXWBUpb6/dYuqzOI6rbDZas20Tt0A/pIZmew5ogQpzFPmh75OOfz
sb31gc67RyxMjfOlUNEo3nosv+Oo/C0czC31TkxhJt9X0tXb6IwxBka0hwmKBY2u
DylapI9wHy4EYLW+m7VyH0KrIjBQ/WrvsDczNpkN6enVxkrxISwzKkQlAChQ9+LQ
RGt5Rii2rTSPXReRgjlokoYGeQD2+wLziL8eUpoeNyD9fBjYC1jHvSIaComn8BTp
yDrzBhx+4A8j9hLkD2fTIOAD1PGpO6dvCicDh4Ij2hFg3a7vqxZKDdJPpfGAH3XD
E0fWSJ/6hb1Oldxqet1yKRmjHBTCJMFHrCvj6ZhwyplsOdDifpkHxNU1JfPXHPXC
29ZEzG45+LIwcwxIpq45LbXJgFEw7gQRFqFxeHU2okZFjsklIMVjosp8mPHpKhaP
wUb6EsWJtT1t2Hi31zax6qrp1Wv9OlIRNfq18bKb80vPQK4fzRA=
=AXdO
-----END PGP SIGNATURE-----
pgpnuRGUnvHJv.pgp
Description: PGP signature
--- End Message ---