[pkg-php-pear] Bug#1080394: php-crypt-gpg: FTBFS: unlink(/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/test-keychain/S.gpg-agent.ssh): No such file or directory

Santiago Vila sanvila at debian.org
Tue Sep 3 11:57:17 BST 2024


Package: src:php-crypt-gpg
Version: 1.6.9-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem=phppear --with phppear
    dh_update_autotools_config -O--buildsystem=phppear
    dh_autoreconf -O--buildsystem=phppear
    dh_auto_configure -O--buildsystem=phppear
	cp package.xml ./Crypt_GPG-1.6.9/package.xml
	sed -i -e s/md5sum=\"\[^\"\]\*\"// -e s/sha1sum=\"\[^\"\]\*\"// ./Crypt_GPG-1.6.9/package.xml
    dh_auto_build -O--buildsystem=phppear
    debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# without --process-isolation there is a weird race condition
# causing the tests to fails GnuPG when can't use /run/user/ID as
# socket directory (for instance because it's not there) and uses
# its homedir as fallback -- removing the GNUPGHOME between each
# test seems to cause problems when it contains the agent socket
phpunit --include-path Crypt_GPG-*/ Crypt_GPG-*/tests \
	--process-isolation --exclude-group write
PHPUnit 9.6.20 by Sebastian Bergmann and contributors.

............E...........................................S......  63 / 295 ( 21%)
...E........................................................... 126 / 295 ( 42%)
..............................SSSSSSSS......................... 189 / 295 ( 64%)
............................................................... 252 / 295 ( 85%)
...........................................                     295 / 295 (100%)

Time: 01:56.895, Memory: 8.00 MB

There were 2 errors:

1) DecryptAndVerifyTest::testDecryptAndVerifyDualNoPassphraseKeyMissing
unlink(/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/test-keychain/S.gpg-agent.ssh): No such file or directory

/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/TestCase.php:587
/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/TestCase.php:554

2) EncryptAndSignTest::testEncryptAndSign
unlink(/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/test-keychain/S.gpg-agent.ssh): No such file or directory

/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/TestCase.php:587
/<<PKGBUILDDIR>>/Crypt_GPG-1.6.9/tests/TestCase.php:554

ERRORS!
Tests: 295, Assertions: 937, Errors: 2, Skipped: 9.
make[1]: *** [debian/rules:11: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202409/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the pkg-php-pear mailing list