[pkg-php-pear] Bug#1006028: php-crypt-gpg: FTBFS: PHPUnit\Framework\Exception: PHP Fatal error: Uncaught Crypt_GPG_BadPassphraseException: Cannot export private key. Incorrect passphrase provided for keys: "First Keypair Test Key (do not encrypt important data with this key) <first-keypair at example.com>", "F27FB97E211A40BDD61FAD75E7493277280054C4", "First Keypair Test Key (do not encrypt important data with this key) <first-keypair at example.com>". in /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 634

Lucas Nussbaum lucas at debian.org
Sat Feb 19 06:38:04 GMT 2022


Source: php-crypt-gpg
Version: 1.6.7-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> 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.5.13 by Sebastian Bergmann and contributors.
> 
> ........................................................S......  63 / 295 ( 21%)
> ...........................................E................... 126 / 295 ( 42%)
> ..............................SSSSSSSS......................... 189 / 295 ( 64%)
> ............................................................... 252 / 295 ( 85%)
> ...........................................                     295 / 295 (100%)
> 
> Time: 01:40.173, Memory: 8.00 MB
> 
> There was 1 error:
> 
> 1) ExportPrivateKeyTest::testExportPrivateKey_with_bad_pass
> PHPUnit\Framework\Exception: PHP Fatal error:  Uncaught Crypt_GPG_BadPassphraseException: Cannot export private key. Incorrect passphrase provided for keys: "First Keypair Test Key (do not encrypt important data with this key) <first-keypair at example.com>", "F27FB97E211A40BDD61FAD75E7493277280054C4", "First Keypair Test Key (do not encrypt important data with this key) <first-keypair at example.com>". in /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 634
> #0 /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php(634): Crypt_GPG_ProcessHandler->badPassException()
> #1 /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php(1741): Crypt_GPG_ProcessHandler->throwException()
> #2 /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php(655): Crypt_GPG_Engine->_closeSubprocess()
> #3 [internal function]: Crypt_GPG_Engine->__destruct()
> #4 {main}
>   thrown in /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 858
> Fatal error: Uncaught Crypt_GPG_BadPassphraseException: Cannot export private key. Incorrect passphrase provided for keys: "First Keypair Test Key (do not encrypt important data with this key) <first-keypair at example.com>", "F27FB97E211A40BDD61FAD75E7493277280054C4", "First Keypair Test Key (do not encrypt important data with this key) <first-keypair at example.com>". in /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 634
> #0 /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php(634): Crypt_GPG_ProcessHandler->badPassException()
> #1 /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php(1741): Crypt_GPG_ProcessHandler->throwException()
> #2 /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php(655): Crypt_GPG_Engine->_closeSubprocess()
> #3 [internal function]: Crypt_GPG_Engine->__destruct()
> #4 {main}
>   thrown in /<<PKGBUILDDIR>>/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 858
> 
> ERRORS!
> Tests: 295, Assertions: 934, Errors: 1, Skipped: 9.
> make[1]: *** [debian/rules:11: override_dh_auto_test] Error 2


The full build log is available from:
http://qa-logs.debian.net/2022/02/18/php-crypt-gpg_1.6.7-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-php-pear mailing list