Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402743 - dev-lang/php-5.4.0_rc7: broken libpcre depend
Summary: dev-lang/php-5.4.0_rc7: broken libpcre depend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 18:35 UTC by Alexander Vershilov (RETIRED)
Modified: 2012-02-17 08:26 UTC (History)
1 user (show)

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


Attachments
emerge -uNDav @world list (emerge-info,408 bytes, text/plain)
2012-02-09 06:58 UTC, Alexander Vershilov (RETIRED)
Details
emerge @preserved-rebuild output (preserved-rebuild,4.67 KB, text/plain)
2012-02-09 06:59 UTC, Alexander Vershilov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Vershilov (RETIRED) gentoo-dev 2012-02-08 18:35:08 UTC
portage fails to update dev-libs/libpcre package (it installs old version in @preserved-rebuild phase).


emerge -1 dev-libs/libpcre
>>> Emerging (1 of 1) dev-libs/libpcre-8.30-r2
>>> Installing (1 of 1) dev-libs/libpcre-8.30-r2
!!! existing preserved libs:
>>> package: dev-libs/libpcre-8.30-r2
 *  - /lib64/libpcre.so.0
 *  - /lib64/libpcre.so.0.0.1
 *      used by /bin/grep (sys-apps/grep-2.10)
 *      used by /usr/bin/git (dev-vcs/git-1.7.8.4)
 *      used by /usr/bin/git-receive-pack (dev-vcs/git-1.7.8.4)
 *      used by 240 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries

There is some packages to update one of them is dev-libs/libpcre
>>> Emerging (1 of 17) dev-libs/libpcre-8.21
>>> Installing (1 of 17) dev-libs/libpcre-8.2

after that I've got:

# emerge -uNDav @world

[ebuild     U  ] dev-libs/libpcre-8.30-r2

Reproducible: Always

Steps to Reproduce:
1. emerge -1 dev-libs/libpcre-8.30-r2
2. emerge @preserved-rebuild
3. emerge -uNDav @world
Actual Results:  
[ebuild     U  ] dev-libs/libpcre-8.30-r2

Expected Results:  
libpcre should be updated

emerge info:

Portage 2.2.0_alpha85 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.2-gentoo x86_64)
=================================================================
System uname: Linux-3.2.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.1
Timestamp of tree: Wed, 08 Feb 2012 13:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
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.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo gentoo-haskell dev-zero science gamerlay-stable kork sunrise rainyday mgorny rion g-ctan java-overlay mellon x11 eatnumber1 iElectric Qnikst-local-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -msse4 -mavx -maes"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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 -pipe -march=native -mtune=native -mfpmath=sse -msse4 -mavx -maes"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j3"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -msse4 -mavx -maes"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="ru en"
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/haskell /var/lib/layman/dev-zero /var/lib/layman/science /var/lib/layman/gamerlay /var/lib/layman/kork /var/lib/layman/sunrise /var/lib/layman/rainyday /var/lib/layman/mgorny /var/lib/layman/rion /var/lib/g-ctan /var/lib/layman/java-overlay /var/lib/layman/mellon-overlay /var/lib/layman/x11 /var/lib/layman/eatnumber1 /var/lib/layman/iElectric /var/lib/layman/qnikst-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid xvmc zlib" 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" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" SANE_BACKENDS="canon epson" USERLAND="GNU" VIDEO_CARDS="intel nvidia i965" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeff Sweeney 2012-02-09 04:02:34 UTC
Also got a downgrade to libpcre-8.21 during rebuild. When running the command specified during the upgrade ("revdep-rebuild --library....") the rebuild tries to downgrade the version. Manually checked each of the items in the requested rebuild command and the only one which seems to trigger the downgrade is php (dev-lang/php-5.4.0_rc7). All the other items in the rebuild command (when run manually) do not trigger the downgrade.
Comment 2 SpanKY gentoo-dev 2012-02-09 04:49:14 UTC
post the full output of `emerge -uNDav @world` as an attachment
Comment 3 Alexander Vershilov (RETIRED) gentoo-dev 2012-02-09 06:58:24 UTC
Created attachment 301341 [details]
emerge -uNDav @world list
Comment 4 Alexander Vershilov (RETIRED) gentoo-dev 2012-02-09 06:59:18 UTC
Created attachment 301343 [details]
emerge @preserved-rebuild output
Comment 5 Alexander Vershilov (RETIRED) gentoo-dev 2012-02-09 07:01:32 UTC
(In reply to comment #1)
> Also got a downgrade to libpcre-8.21 during rebuild. When running the command
> specified during the upgrade ("revdep-rebuild --library....") the rebuild tries
> to downgrade the version. Manually checked each of the items in the requested
> rebuild command and the only one which seems to trigger the downgrade is php
> (dev-lang/php-5.4.0_rc7). All the other items in the rebuild command (when run
> manually) do not trigger the downgrade.

php-5.4.0_rc7 has next RDEPENDS:
 	>=dev-libs/libpcre-8.12[unicode]
	<dev-libs/libpcre-8.30[unicode]

maybe <dev-libs/libpcre-8.30 doesn't allow -r2 version?
Comment 6 SpanKY gentoo-dev 2012-02-09 16:26:37 UTC
(In reply to comment #5)

yes, not a bug in libpcre.  php is stupid.  nothing base-system can do.
Comment 7 Alexander Vershilov (RETIRED) gentoo-dev 2012-02-09 16:39:07 UTC
(In reply to comment #6)

is it really a php bug not a portage one? php has RDEPEND 
<dev-libs/libpcre-8.30[unicode] but portage tries to update libpcre to 8.30-r2 that violates php dependency.
Comment 8 Marco Napetti 2012-02-10 10:03:24 UTC
This problems was avoided by dev-lang/php-5.4.0_rc7 requiring explicitly <dev-libs/libpcre-8.30, now with dev-lang/php-5.4.0_rc7-r1 this requirement is missing and all the libpcre related packaes fails to build again.
Comment 9 Ole Markus With (RETIRED) gentoo-dev 2012-02-10 11:09:42 UTC
(In reply to comment #8)
> This problems was avoided by dev-lang/php-5.4.0_rc7 requiring explicitly
> <dev-libs/libpcre-8.30, now with dev-lang/php-5.4.0_rc7-r1 this requirement is
> missing and all the libpcre related packaes fails to build again.

The revbump contains a patch that makes PHP compile against libpcre-8.30, hence no more need for the blocker.
Comment 10 Aaron Pelton 2012-02-17 03:39:34 UTC
The upgrade/downgrade cycle continues AND has nasty side effects.

I'm afraid I'm guessing about what actually happened but what appeared to happen (as it continues to happen)

* my emerge -auDNv world caused php-5.4.0_rc8 to build which required as predecessor libpcre-8.21
* builds started failing because grep could no longer find libpcre.so.1
* manually linking libpcre.so.0 to .so.1 allowed me to rebuild/continue building
* adnaseum: next auDNv compiles 8.30-r2
* revdep-rebuild rebuilds php-5.4.0_rc8 AND libpcre-8.21
* goto adnaseum

in the php-5.4.0_rc8.ebuild DEPEND
   >=dev-libs/libpcre-8.12[unicode]
    <dev-libs/libpcre-8.30

changed to
   >=dev-libs/libpcre-8.12[unicode]
    <=dev-libs/libpcre-8.30-r2

PHP build completes.

emerge --info
------------------------------------------
Portage 2.1.10.46 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 17 Feb 2012 02:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
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.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo zugaina
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 PUEL googleearth dlj-1.1 skype-eula Oracle-BCLA-JavaSE"
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 /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/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 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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/zugaina"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gstreamer gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" 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 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Ole Markus With (RETIRED) gentoo-dev 2012-02-17 08:26:26 UTC
This was my fault for revbumping with a bogus depend string. Terribly sorry about that. Should be fixed now if you just resync.