Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417991 - dev-php/phpunit-3.5.13 should RDEPEND on <dev-php/File_Iterator-1.3.1
Summary: dev-php/phpunit-3.5.13 should RDEPEND on <dev-php/File_Iterator-1.3.1
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 14:25 UTC by Evan Plumlee
Modified: 2013-03-28 10:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch dev-php/phpunit-3.5.13 to RDEPEND on <dev-php/File_Iterator-1.3.0 (phpunit-3.5.13.ebuild.patch,389 bytes, patch)
2012-07-06 04:38 UTC, Matthew Emerson
Details | Diff
Proposed EBuild for dev-php/File_Iterator-1.2.6 (File_Iterator-1.2.6.ebuild,432 bytes, text/plain)
2012-07-06 04:44 UTC, Matthew Emerson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Plumlee 2012-05-28 14:25:13 UTC
dev-php/phpunit-3.5.13 emerges properly but will fail to run.  Instead, it will produce output such as:

<code>~/homepage $ php artisan test
PHP Strict Standards:  Non-static method File_Iterator_Factory::getFileIterator() should not be called statically, assuming $this from incompatible context in /usr/share/php/PHP/CodeCoverage/Filter.php on line 111

Strict Standards: Non-static method File_Iterator_Factory::getFileIterator() should not be called statically, assuming $this from incompatible context in /usr/share/php/PHP/CodeCoverage/Filter.php on line 111
PHP Fatal error:  Class 'File_Iterator' not found in /usr/share/php/File/Iterator/Factory.php on line 105

Fatal error: Class 'File_Iterator' not found in /usr/share/php/File/Iterator/Factory.php on line 105</code>

The solution is to unmask phpunit and emerge version 3.6.0, which is compatible with File_Iterator-1.3.1

<code>Gothmaug ~ # emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r3, 3.4.0-rc6-rt6 x86_64)
=================================================================
System uname: Linux-3.4.0-rc6-rt6-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.1
Timestamp of tree: Mon, 21 May 2012 08:35:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo xmw angelos gamerlay-stable sunrise proaudio vala gnome roslin x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -msse3 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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 -march=native -msse3 -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs=2 --load-average=2 --autounmask-write"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/xmw /var/lib/layman/angelos /var/lib/layman/gamerlay /var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/vala /var/lib/layman/gnome /var/lib/layman/roslin /usr/local/portage"
SYNC="rsync://192.168.1.26/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi alsa amd64 animation-rtl apng artworkextra autoipd avahi barcodes bash-completion beagle berkdb bluray branding bzip2 cairo cdda cdr cleartype cli consolekit contrib cracklib crypt cups curl custom-optimization cxx dbus declarative device-mapper directfb djvu dri dts dvd dvdr dvi emboss emerald encode exif extras fam fbcon firefox flac fluidsynth fortran fuse gconf gd gdbm gdu gif gmp gnutls gphoto2 gpm gsm gstreamer gtk guile iconv imagemagick ipv6 jack jadetex java jpeg jpeg2k jpg kde kdrive kipi ladspa lcms libcaca libnotify lv2 lzma mad matroska mdnsresponder-compat mmx mmxext mng modules mono moonlight mp3 mp4 mpeg mudflap multilib nautilus ncurses nemesi networking nls nntp nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma playlist plotutils png policykit ppds pppd qemu qt3support qt4 readline samba scheme sdl secure-delete semantic-desktop sensord session slang smp spell sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg system-sqlite tcl tcpd theora threads thumbnail tiff tk truetype udev udisks unicode unlock-notify upower usb v4l v4l2 vala vcd vdpau vim-syntax vorbis webkit wifi wmf wxwidgets x264 xcb xcomposite xft xinerama xinetd xml xnest xorg xscreensaver xulrunner xv xvid xvmc zlib zsh-completion" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="i386 i686 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON</code>
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-28 23:47:14 UTC
Either the current Summary, or just stabilise 3.6.0...
Comment 2 Matthew Emerson 2012-07-06 04:34:18 UTC
dev-php/phpunit3.5.13 works fine with dev-php/File_Iterator-1.2.6, which happened to be removed 09 Jun 2012 according to the ChangeLog.
Comment 3 Matthew Emerson 2012-07-06 04:38:21 UTC
Created attachment 317390 [details, diff]
Patch dev-php/phpunit-3.5.13 to RDEPEND on <dev-php/File_Iterator-1.3.0
Comment 4 Matthew Emerson 2012-07-06 04:44:42 UTC
Created attachment 317394 [details]
Proposed EBuild for dev-php/File_Iterator-1.2.6

If dev-php/phpunit-3.6.0 can't be stabilized for some reason, adding back the original dev-php/File_Iterator-1.2.6.ebuild (or the attached proposed ebuild) and having dev-php/phpunit-3.5.13 RDEPEND on it would allow phpunit to run as expected.
Comment 5 Chris Bandy 2012-10-14 15:29:54 UTC
This is actually a combination of two dependency issues:

1. PHPUnit 3.5.x depends on PHP_CodeCoverage < 1.1. This is known, but PHP 3.5 is EOL, so no upstream fix[1].
2. PHP_CodeCoverage 1.0.x depends on File_Iterator < 1.3. I submitted a patch upstream, it was accepted, but never released[2].

[1] https://github.com/sebastianbergmann/phpunit/pull/662
[2] https://github.com/sebastianbergmann/php-code-coverage/pull/99
Comment 6 Ole Markus With (RETIRED) gentoo-dev 2013-03-28 10:37:40 UTC
Future versions of phpunit will be distributed using the phar file so that we do not have to deal with this dependency nonsense anymore.

Find bump of phpunit in CVS.