Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419795 - dev-lang/php-5.3.14_rc2 causes <dev-libs/libpcre-8.30 downgrade on unstable branch
Summary: dev-lang/php-5.3.14_rc2 causes <dev-libs/libpcre-8.30 downgrade on unstable b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 419925 (view as bug list)
Depends on:
Blocks: 414997
  Show dependency tree
 
Reported: 2012-06-05 18:13 UTC by Juergen Rose
Modified: 2012-06-06 15:43 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2012-06-05 18:13:13 UTC
This evening libpcre was downgraded from libpcre-8.30-r2 to libpcre-8.21 (by emerge -uvDN world?) Now "grep" is broken, which locks further 'emerge -uvDN world' and 'revdep-rebuild'.

I will try to generate a binary package of grep (without the pcre USE flag) at an other system and install this binary package at the affected computer.


Reproducible: Always




tiger ~ # emerge --info
Portage 2.1.10.64 (default/linux/x86/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.4.0 i686)
=================================================================
System uname: Linux-3.4.0-i686-Intel-R-_Pentium-R-_4_CPU_1.60GHz-with-gentoo-2.1
Timestamp of tree: Tue, 05 Jun 2012 16:30:01 +0000
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo science x11 dotnet java-overlay sunrise local x-cpan g-octave
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.3 cadsoft Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
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/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
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/science /var/lib/layman/x11 /var/lib/layman/dotnet /var/lib/layman/java-overlay /var/lib/layman/sunrise /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="R X Xaw3d a52 aac acl acpi admin afs alsa ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt css cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hwdb iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdrive kerberos kpathsea kqemu ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc live lm_sensors lua lzo mad mail maildir mapnik math matroska media-library mkl mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl schroedinger science sdl secure-delete semantic-desktop server session shout sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb userlocales utempter vaapi video virtualbox vorbis wav webdav webdav-serf webkit win32codecs wmf wxwidgets x264 x86 xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="via82xx" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid syslog" DVB_CARDS="tda10045 tda10046lifeview" 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="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="mga matrox vesa via openchrome" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Federico Cuello 2012-06-05 19:28:03 UTC
dev-libs/libpcre:3

  (dev-libs/libpcre-8.30-r2::gentoo, ebuild scheduled for merge) conflicts with
    <dev-libs/libpcre-8.30 required by (dev-lang/php-5.3.14_rc2::gentoo, ebuild scheduled for merge)
Comment 2 Juergen Rose 2012-06-05 20:11:39 UTC
Now I have the issue on the next computer. It seems that, net-analyzer/rrdcollect-0.2.9 wants to downgrade libpcre:

root@lynx:/root(2)# emerge -pvuNDt world

These are the packages that would be merged, in reverse order:
...
[nomerge       ] net-analyzer/rrdcollect-0.2.9  USE="pcre -exec -librrd" 
[ebuild     UD ]  dev-libs/libpcre-8.21 [8.30-r2] USE="bzip2 cxx jit readline recursion-limit (unicode) zlib -static-libs (-pcre16%)" 1,147 kB
...
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 03:04:37 UTC
(In reply to comment #2)
> Now I have the issue on the next computer. It seems that,
> net-analyzer/rrdcollect-0.2.9 wants to downgrade libpcre:
> 
> root@lynx:/root(2)# emerge -pvuNDt world
> 
> These are the packages that would be merged, in reverse order:
> ...
> [nomerge       ] net-analyzer/rrdcollect-0.2.9  USE="pcre -exec -librrd" 
> [ebuild     UD ]  dev-libs/libpcre-8.21 [8.30-r2] USE="bzip2 cxx jit
> readline recursion-limit (unicode) zlib -static-libs (-pcre16%)" 1,147 kB

No, it doesn't. It simply {R}DEPENDs on dev-libs/libpcre.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 03:07:14 UTC
And you ought to be able to simply `emerge -v1 sys-apps/grep'.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 03:11:02 UTC
@Juergen: Please figure out which installed packages really caused the downgrade.

@Federico: Please file a new bug report.
Comment 6 Andrey 2012-06-06 07:34:42 UTC
Same here.
Grep and revdep-rebuild is broken after downgrade libpcre.
I fix it by emerging libpcre from old package.
Comment 7 Juergen Rose 2012-06-06 08:21:38 UTC
OK, I was wrong with my first guess (Comment 2). I think, Frederico is right (Comment 1):

root@tiger:/root(8)# grep -C3 libpcre /usr/portage_tiger/dev-lang/php/php-5.3.14_rc2.ebuild

DEPEND="!dev-lang/php:5
        >=app-admin/eselect-php-0.6.2
        >=dev-libs/libpcre-8.12[unicode]
        <dev-libs/libpcre-8.30
        apache2? ( www-servers/apache[threads=] )
        berkdb? ( =sys-libs/db-4* )
        bzip2? ( app-arch/bzip2 )

At least if I mask =php-5.3.14_rc2, the issue disappears:

root@tiger:/root(10)# grep php /etc/portage/package.mask
=dev-lang/php-5.3.14_rc2
Comment 8 László Szalma 2012-06-06 11:43:03 UTC
ln -s /lib/libpcre.so.0 /lib/libpcre.so.1
emerge grep
rm /lib/libpcre.so.1

fixed the problem (I confirm the first post) grep (and emerge, revdep-rebuild) works.

I have dev-libs/libpcre-8.21 installed (8.30-r2 upgrade not allowed because <dev-libs/libpcre-8.30 required by (dev-lang/php-5.3.14_rc2::gentoo, ebuild scheduled for merge)
Comment 9 Rafał Mużyło 2012-06-06 11:46:29 UTC
There's one more issue here, perhaps related to the broken version of gentoolkit (gentoolkit-0.3.0.4-r4 didn't detect grep as depending on libpcre for some reason, gentoolkit-0.3.0.6-r2 did).
Namely, grep on tinderbox is broken - it still links to libpcre.so.0, while tinderbox already has libpcre.so.1.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 11:49:26 UTC
Well, @Federico has obviously unmasked dev-lang/php-5.3.14_rc2, whereas stable =dev-lang/php-5.3.13 has a proper dependency on whatever the latest stable dev-libs/libpcre happens to be, so the latter (stable + stable) wouldn't cause the downgrade, and neither would unstable + unstable.

So either this bug report is invalid, because we don't support mixing stable + unstable, or it is about revdep-rebuild needing packages that need revdep-rebuild.
Comment 11 Federico Cuello 2012-06-06 14:24:25 UTC
(In reply to comment #10)
> Well, @Federico has obviously unmasked dev-lang/php-5.3.14_rc2, whereas
> stable =dev-lang/php-5.3.13 has a proper dependency on whatever the latest
> stable dev-libs/libpcre happens to be, so the latter (stable + stable)
> wouldn't cause the downgrade, and neither would unstable + unstable.

I'm on ~amd64, but didn't unmask dev-lang/php-5.3.14_rc2.

Theres is a version bump from yesterday: 

  05 Jun 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.14_rc2.ebuild:
  Added 5.3.13 RC 2 for testing

The thing is that the new version has an extra dep on <dev-libs/libpcre-8.30.

Relevant chunk:
--- /usr/portage/dev-lang/php/php-5.3.13.ebuild
+++ /usr/portage/dev-lang/php/php-5.3.14_rc2.ebuild
@@ -117,6 +116,7 @@
 DEPEND="!dev-lang/php:5
        >=app-admin/eselect-php-0.6.2
        >=dev-libs/libpcre-8.12[unicode]
+       <dev-libs/libpcre-8.30
        apache2? ( www-servers/apache[threads=] )
        berkdb? ( =sys-libs/db-4* )
        bzip2? ( app-arch/bzip2 )


Latest stable dev-libs/libpcre is 8.30-r2. So php shouldn't depend on a version lower than current stable. That's a bug in php-5.3.14_rc2.ebuild

But I think there might be something broken here as well, as downgrading libpcre breaks the system and perphaps libpcre.so.* should be protected until revdep-rebuild has been run.

> 
> So either this bug report is invalid, because we don't support mixing stable
> + unstable, or it is about revdep-rebuild needing packages that need
> revdep-rebuild.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 14:56:12 UTC

*** This bug has been marked as a duplicate of bug 419925 ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 14:57:42 UTC
*** Bug 419925 has been marked as a duplicate of this bug. ***
Comment 14 Ole Markus With (RETIRED) gentoo-dev 2012-06-06 15:43:21 UTC
Forcing the downgrade was bogus. Removing the dependency. Thanks for reporting this bug.