Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834719

Summary: dev-php/PEAR-Crypt_GPG-1.6.7 fails tests
Product: Gentoo Linux Reporter: Jakov Smolić <jsmolic>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: CONFIRMED ---    
Severity: normal CC: matoro_bugzilla_gentoo, mjo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 833501    

Description Jakov Smolić archtester gentoo-dev 2022-03-07 14:45:01 UTC
* Package:    dev-php/PEAR-Crypt_GPG-1.6.7
 * Repository: gentoo
 * Maintainer: php-bugs@gentoo.org mjo@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux test userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox test userpriv usersandbox
>>> Unpacking source...
>>> Unpacking Crypt_GPG-1.6.7.tgz to /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work
>>> Source unpacked in /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work
>>> Preparing source in /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7 ...
>>> Source compiled.
>>> Test phase: dev-php/PEAR-Crypt_GPG-1.6.7
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
PHPUnit 8.5.11 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.4.28 with Xdebug 3.1.1

.E..............................................E..E...ES......  63 / 296 ( 21%)
................E...EE.................................E....... 126 / 296 ( 42%)
.........E.....................SSSSSSSS....................EE.E 189 / 296 ( 63%)
E.EE........................................................... 252 / 296 ( 85%)
............................................                    296 / 296 (100%)

Time: 1.54 minutes, Memory: 12.00 MB

There were 15 errors:

1) DecryptAndVerifyTest::testDecryptVerifyNoPassphrase
Crypt_GPG_KeyNotFoundException: Cannot decrypt data. No suitable private key is in the keyring. Import a suitable private key before trying to decrypt this data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:712
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1849
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:856
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DecryptAndVerifyTest.php:177

2) DecryptTest::testDecryptFileDual
fwrite(): write of 7 bytes failed with errno=32 Broken pipe

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1392
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:776
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1569
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:816
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DecryptTest.php:643

3) DecryptTest::testDecryptFileSignedData
Crypt_GPG_Exception: Unknown error decrypting data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:732
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1569
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:816
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DecryptTest.php:699

4) DeletePublicKeyTest::testDeletePublicKey
Crypt_GPG_Exception: Unknown error deleting key. Please use the 'debug' option when creating the Crypt_GPG object, and file a bug report at http://pear.php.net/bugs/report.php?package=Crypt_GPG

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:605
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:438
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DeletePublicKeyTest.php:66

5) EncryptTest::testEncryptDual
fwrite(): write of 7 bytes failed with errno=32 Broken pipe

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1392
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:776
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1569
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:776
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/EncryptTest.php:104

6) EncryptTest::testEncryptFile
unlink(/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/test-keychain/S.gpg-agent.extra): No such file or directory

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:586
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:553

7) EncryptTest::testEncryptFileDual
Crypt_GPG_KeyNotFoundException: Cannot decrypt data. No suitable private key is in the keyring. Import a suitable private key before trying to decrypt this data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:712
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1569
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:816
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/EncryptTest.php:184

8) GeneralTest::testSetEngine
Crypt_GPG_FileException: The 'homedir' "/var/lib/portage/home/.gnupg" is not readable or does not exist and cannot be created. This can happen if 'homedir' is not specified in the Crypt_GPG options, Crypt_GPG is run as the web user, and the web user has no home directory.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:497
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPGAbstract.php:256
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/GeneralTest.php:158

9) ImportKeyTest::testImportKeyFileAlreadyImported_private
unlink(/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/test-keychain/S.gpg-agent.extra): No such file or directory

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:586
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:553

10) SignTest::testSignClear
unlink(/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/test-keychain/S.gpg-agent.extra): No such file or directory

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:586
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:553

11) SignTest::testSignDetached
Crypt_GPG_KeyNotFoundException: Cannot sign data. Private key not found. Import the private key before trying to sign data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:649
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1663
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:955
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/SignTest.php:176

12) SignTest::testSignDualNormal
unlink(/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/test-keychain/S.gpg-agent.extra): No such file or directory

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:586
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:553

13) SignTest::testSignDualClear
Crypt_GPG_KeyNotFoundException: Cannot sign data. Private key not found. Import the private key before trying to sign data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:649
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1663
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:955
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/SignTest.php:227

14) SignTest::testSignEmpty
unlink(/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/test-keychain/S.gpg-agent.extra): No such file or directory

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:586
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/TestCase.php:553

15) SignTest::testSignDetachedTextmode
Crypt_GPG_KeyNotFoundException: Cannot sign data. Private key not found. Import the private key before trying to sign data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:649
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1663
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:955
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/SignTest.php:294

--

There were 9 skipped tests:

1) DeletePublicKeyTest::testDeletePublicKeyDeletePrivateKeyException
GnuPG >= 2.1 allows public key deletion if private key exists.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DeletePublicKeyTest.php:82

2) KeyGeneratorTest::testGenerateKeyWithName
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:484

3) KeyGeneratorTest::testGenerateKeyWithNameAndEmail
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:528

4) KeyGeneratorTest::testGenerateKeyWithNameEmailAndComment
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:576

5) KeyGeneratorTest::testGenerateKeyWithUserId
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:626

6) KeyGeneratorTest::testGenerateKeyWithPassphrase
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:675

7) KeyGeneratorTest::testGenerateKeyWithExpirationDate
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:724

8) KeyGeneratorTest::testGenerateKeyWithInvalidPrimaryKeyAlgorithm
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:777

9) KeyGeneratorTest::testGenerateKeyWithInvalidSubKeyAlgorithm
Key generation tests are disabled. To run key generation tests, enable them in the test configuration. See the configuration in 'config.php.dist' for an exampe.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/KeyGeneratorTest.php:801

ERRORS!
Tests: 296, Assertions: 908, Errors: 15, Skipped: 9.
PHP Fatal error:  Uncaught Crypt_GPG_BadPassphraseException: Cannot decrypt data. Incorrect passphrase provided for keys: "Second Keypair Test Key (do not encrypt important data with this key) <second-keypair@example.com>". No passphrase provided for keys: "First Keypair Test Key (do not encrypt important data with this key) <first-keypair@example.com>". in /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 722
#0 /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php(722): Crypt_GPG_ProcessHandler->badPassException()
#1 /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php(1741): Crypt_GPG_ProcessHandler->throwException()
#2 /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/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 /var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php on line 858
 * ERROR: dev-php/PEAR-Crypt_GPG-1.6.7::gentoo failed (test phase):
 *   test suite failed
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_test
 *   environment, line 503:  Called die
 * The specific snippet of code:
 *       phpunit --verbose --do-not-cache-result tests/ || die "test suite failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-php/PEAR-Crypt_GPG-1.6.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-php/PEAR-Crypt_GPG-1.6.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7'
 * S: '/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7'
Comment 1 Jakov Smolić archtester gentoo-dev 2022-03-07 14:45:22 UTC
Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.0, glibc-2.33-r13, 5.10.68-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.10.68-gentoo-dist-x86_64-Common_KVM_processor-with-glibc2.33
KiB Mem:    65850752 total,  38623980 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 07 Mar 2022 11:00:01 +0000
Head commit of repository gentoo: 3903cf1e5b292af5e88bffab9f0080bb9d006d3c
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.6.15-r1::gentoo, 3.7.12_p2::gentoo, 3.8.12_p2::gentoo, 3.9.10_p1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust-bin:         1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-apps/systemd:          250.2::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* @FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 10"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="X acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 matoro archtester 2022-06-21 15:46:59 UTC
With PHP 8, this is reduced to 3 failures.

>>> Test phase: dev-php/PEAR-Crypt_GPG-1.6.7
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
PHPUnit 8.5.11 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.0.16

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

Time: 1.52 minutes, Memory: 12.00 MB

There were 3 errors:

1) DecryptTest::testDecryptDual
fwrite(): Write of 7 bytes failed with errno=32 Broken pipe

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1392
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:776
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1569
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:776
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DecryptTest.php:314

2) DecryptTest::testDecryptDualOnePassphrase
Crypt_GPG_KeyNotFoundException: Cannot decrypt data. No suitable private key is in the keyring. Import a suitable private key before trying to decrypt this data.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/ProcessHandler.php:712
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:1741
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:777
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:1569
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG.php:776
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/DecryptTest.php:364

3) GeneralTest::testSetEngine
Crypt_GPG_FileException: The 'homedir' "/var/lib/portage/home/.gnupg" is not readable or does not exist and cannot be created. This can happen if 'homedir' is no
t specified in the Crypt_GPG options, Crypt_GPG is run as the web user, and the web user has no home directory.

/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPG/Engine.php:497
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/Crypt/GPGAbstract.php:256
/var/tmp/portage/dev-php/PEAR-Crypt_GPG-1.6.7/work/Crypt_GPG-1.6.7/tests/GeneralTest.php:158



Unsure what the cause of failure #1 is.
Failure #2 is already reported upstream by Red Hat, https://pear.php.net/bugs/bug.php?id=27013.  According to them this was introduced somewhere between 2.2.23 and 2.2.27 of app-crypt/gnupg.
Failure #3 seems to relate to our conflicting home dir vs HOME environment variable with portage.
Comment 3 matoro archtester 2022-08-01 05:22:48 UTC
According to debian, this requires phpunit >= 9:  https://salsa.debian.org/php-team/pear/php-crypt-gpg/-/blob/debian/latest/debian/control#L12

Do we have plans to bring in phpunit 9?