>>> Emerging (1 of 1) dev-php/PEAR-Crypt_CHAP-1.5.0-r3::gentoo * Crypt_CHAP-1.5.0.tgz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking Crypt_CHAP-1.5.0.tgz to /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work >>> Source unpacked in /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work >>> Preparing source in /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0 ... * Applying CHAP-1.5.0-constructor.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0 ... >>> Source compiled. >>> Test phase: dev-php/PEAR-Crypt_CHAP-1.5.0-r3 Running 1 tests FAIL Crypt_CHAP: simple test[tests/Crypt_CHAP.phpt] wrote log to "/var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0/run-tests.log" TOTAL TIME: 00:00 0 PASSED TESTS 0 SKIPPED TESTS 1 FAILED TESTS: tests/Crypt_CHAP.phpt Some tests failed * ERROR: dev-php/PEAR-Crypt_CHAP-1.5.0-r3::gentoo failed (test phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 520: Called die * The specific snippet of code: * pear run-tests tests/Crypt_CHAP.phpt || die * * If you need support, post the output of `emerge --info '=dev-php/PEAR-Crypt_CHAP-1.5.0-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-php/PEAR-Crypt_CHAP-1.5.0-r3::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/temp/environment'. * Working directory: '/var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0' * S: '/var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0'
# emerge --info Portage 2.3.96 (python 3.6.10-final-0, default/linux/ia64/17.0, gcc-9.3.0, glibc-2.30-r6, 4.19.86-gentoo ia64) ================================================================= System uname: Linux-4.19.86-gentoo-ia64-Dual-Core_Intel-R-_Itanium-R-_Processor_9040-with-gentoo-2.7 KiB Mem: 16659840 total, 2324512 free KiB Swap: 1999184 total, 1970512 free Timestamp of repository gentoo: Mon, 13 Apr 2020 08:38:04 +0000 sh bash 5.0_p16 ld GNU ld (Gentoo 2.34 p1) 2.34.0 ccache version 3.7.8 [enabled] app-shells/bash: 5.0_p16::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r1::gentoo, 3.6.10::gentoo dev-util/ccache: 3.7.8-r1::gentoo dev-util/cmake: 3.17.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34::gentoo sys-devel/gcc: 9.3.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r6::gentoo Repositories: gentoo location: /bound/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: ACCEPT_KEYWORDS="ia64 ~ia64" ACCEPT_LICENSE="@FREE" CBUILD="ia64-unknown-linux-gnu" CFLAGS="-O2 -pipe -g -fdiagnostics-show-option -frecord-gcc-switches" CHOST="ia64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" 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.2/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -g" DISTDIR="/bound/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 ccache 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 stricter test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j5 -l5" PKGDIR="/usr/portage/packages" 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" USE="X acl alsa apng berkdb bzip2 cairo cli client corefonts crypt cups dbus dri fortran gdbm glamor gnome-keyring gtk gtk3 http2 ia64 iconv icu ipv6 jpeg libtirpc minizip ncurses nls nptl openmp pam pcre playlist png policykit pulseaudio python readline sound split-usr sqlite ssl svg systemd tcpd test text threads truetype udev unicode webp xattr xkb xvfb zlib" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It's not very easy to get to actual error message. Consider adding it to build error. 'Uncaught Error: Call to undefined function mcrypt_module_open()' # cat tests/Crypt_CHAP.diff 014- NT Resp : 4e9d3c8f9cfd385d5bf4d3246791956ca4c351ab409a3d61 014+ 015- LM HASH : 75ba30198e6d1975aad3b435b51404ee 015+ Fatal error: Uncaught Error: Call to undefined function mcrypt_module_open() in /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0/CHAP.php:286 016- LM Resp : 91881d0152ab0c33c524135ec24a95ee64e23cdc2d33347d 016+ Stack trace: 017- 017+ #0 /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0/CHAP.php(240): Crypt_CHAP_MSv1->_challengeResponse() 018- MS-CHAPv2 TEST 018+ #1 /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0/tests/Crypt_CHAP.php(69): Crypt_CHAP_MSv1->challengeResponse() 019- Username : 55736572 019+ #2 {main} 020- NT HASH : 44ebba8d5312b8d611474411f56989ae 020+ thrown in /var/tmp/portage/dev-php/PEAR-Crypt_CHAP-1.5.0-r3/work/Crypt_CHAP-1.5.0/CHAP.php on line 286 021- NT HASH-HASH : 41c00c584bd2d91c4017a2a12fa59f3f 022- ChallResp : 82309ecd8d708b5ea08faa3981cd83544233114a3d85d6df 023- Challenge : d02e4386bce91226
# emerge --info php ... dev-lang/php-7.2.29::gentoo was built with the following: USE="acl berkdb bzip2 cli ctype (debug) fileinfo filter flatfile gd gdbm hash iconv ipv6 json nls opcache phar posix readline session simplexml sqlite ssl threads tokenizer truetype unicode webp xml zlib -apache2 -argon2 -bcmath -calendar -cdb -cgi -cjk -coverage -curl -embed -enchant -exif (-firebird) -fpm -ftp -gmp -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit (-libressl) -lmdb -mhash -mssql -mysql -mysqli (-oci8-instant-client) -odbc -pcntl -pdo -phpdbg -postgres (-qdbm) -recode (-selinux) -session-mm -sharedmem -snmp -soap -sockets -sodium -spell -systemd -sysvipc -test -tidy (-tokyocabinet) -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xslt -zip -zip-encryption" FEATURES="distlocks merge-sync sandbox ccache network-sandbox news xattr binpkg-dostrip binpkg-logs protect-owned parallel-fetch usersync preserve-libs userfetch config-protect-if-modified ipc-sandbox sfperms binpkg-docompress assume-digests fixlafiles unmerge-logs ebuild-locks pid-sandbox usersandbox unmerge-orphans qa-unresolved-soname-deps unknown-features-warn multilib-strict userpriv" dev-lang/php-7.4.4::gentoo was built with the following: USE="acl berkdb bzip2 cli ctype (debug) fileinfo filter flatfile gd gdbm iconv ipv6 json nls opcache phar posix readline session simplexml sqlite ssl threads tokenizer truetype unicode webp xml zlib -apache2 -argon2 -bcmath -calendar -cdb -cgi -cjk -coverage -curl -embed -enchant -exif -ffi (-firebird) -fpm -ftp -gmp -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit (-libressl) -lmdb -mhash -mssql -mysql -mysqli (-oci8-instant-client) -odbc -pcntl -pdo -phpdbg -postgres (-qdbm) (-selinux) -session-mm -sharedmem -snmp -soap -sockets -sodium -spell -systemd -sysvipc -test -tidy (-tokyocabinet) -xmlreader -xmlrpc -xmlwriter -xpm -xslt -zip" FEATURES="distlocks merge-sync sandbox ccache network-sandbox news xattr binpkg-dostrip binpkg-logs protect-owned parallel-fetch usersync preserve-libs userfetch config-protect-if-modified ipc-sandbox sfperms binpkg-docompress assume-digests fixlafiles unmerge-logs ebuild-locks pid-sandbox usersandbox unmerge-orphans qa-unresolved-soname-deps unknown-features-warn multilib-strict userpriv"
Probably due to: # qlist dev-php/pecl-mcrypt /usr/lib/php7.2/lib/extensions/debug-zts-20170718/mcrypt.so /etc/php/cli-php7.2/ext/mcrypt.ini /etc/php/cli-php7.2/ext-active/mcrypt.ini # eselect php list cli [1] php7.2 [2] php7.4 * guppy / # eselect php list apache2 (none found) guppy / # eselect php list fpm (none found) guppy / # eselect php list cgi (none found) guppy / # eselect php list phpdbg (none found) # emerge -v1 dev-php/pecl-mcrypt ... >>> Preparing source in /var/tmp/portage/dev-php/pecl-mcrypt-1.0.3/work/mcrypt-1.0.3 ... * Running /usr/lib/php7.2/bin/phpize ... ... >>> Installing (1 of 1) dev-php/pecl-mcrypt-1.0.3::gentoo * checking 3 files for package collisions >>> Merging dev-php/pecl-mcrypt-1.0.3 to / ... --- replaced obj /usr/lib/php7.2/lib/extensions/debug-zts-20170718/mcrypt.so Not clear why 7.2 and not 7.4 is being picked.
(In reply to Sergei Trofimovich from comment #4) > Probably due to: > > # qlist dev-php/pecl-mcrypt > /usr/lib/php7.2/lib/extensions/debug-zts-20170718/mcrypt.so > /etc/php/cli-php7.2/ext/mcrypt.ini > /etc/php/cli-php7.2/ext-active/mcrypt.ini > > # eselect php list cli > [1] php7.2 > [2] php7.4 * > Not clear why 7.2 and not 7.4 is being picked. Oh, it's probably due to profiles/base/make.defaults:PHP_TARGETS="php7-2" and failure is not specific to ia64 and also happens on amd64.
Yes. The PHP_TARGETS setting must be correct locally for whatever php cli is selected. We don't have a way to have this work on test scripts
(In reply to Brian Evans from comment #6) > Yes. The PHP_TARGETS setting must be correct locally for whatever php cli is > selected. We don't have a way to have this work on test scripts I don't understand what "locally" means. What should match what?
I believe on this system I first installed php-7.4, that applied default symlinks to 7.4. And when php-7.2 was installed they never switched automatically. Consider adding RESTRICT=test or a pkg_setup() entry that validates user's configuration and suggests what to do to get consistent setup. I still don't understand what is a consistent setup.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71992c19442523699715277ca94ec9093de7ae4a commit 71992c19442523699715277ca94ec9093de7ae4a Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2024-07-11 17:25:04 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2024-07-11 18:43:30 +0000 dev-php/PEAR-Crypt_CHAP: treeclean Bug: https://bugs.gentoo.org/933998 Bug: https://bugs.gentoo.org/717292 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> dev-php/PEAR-Crypt_CHAP/Manifest | 1 - .../PEAR-Crypt_CHAP-1.5.0-r3.ebuild | 30 ---------- .../files/CHAP-1.5.0-constructor.patch | 65 ---------------------- dev-php/PEAR-Crypt_CHAP/metadata.xml | 8 --- 4 files changed, 104 deletions(-)