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

Bug 324103

Summary: after upgrading to dev-db/postgresql-base-8.4.2-r1 revdep-rebuild fails on php
Product: Gentoo Linux Reporter: Oleg Gawriloff <barzog>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: VERIFIED FIXED    
Severity: major CC: pgsql-bugs, titanofold
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info ouput

Description Oleg Gawriloff 2010-06-15 11:21:17 UTC
After upgrading to dev-db/postgresql-base-8.4.2-r1 revdep-rebuild shows following:

barzog@falcon-cl2 ~ $ sudo revdep-rebuild
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 42% ]  *   broken /usr/lib64/apache2/modules/libphp5.so (requires libpq.so.4)
[ 100% ]
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/apache2/modules/libphp5.so -> dev-lang/php
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot   dev-lang/php:5
..........
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/php-5.2.13
 * php-5.2.13.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                    [ ok ]

--skipped--

checking Oracle OCI support for PDO... no
checking for ODBC v3 support for PDO... no
checking for PostgreSQL support for PDO... yes
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
 * ERROR: dev-lang/php-5.2.13 failed:
 *   configure failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4953:  Called src_compile_normal
 *   environment, line 5084:  Called php5_2-sapi_src_compile
 *   environment, line 3968:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed";
 *
 * If you need support, post the output of 'emerge --info =dev-lang/php-5.2.13',
 * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.2.13'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.13/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.13/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13'
sandbox:main  signal SIGQUIT already had a handler ...


>>> Failed to emerge dev-lang/php-5.2.13, Log file:

>>>  '/var/tmp/portage/dev-lang/php-5.2.13/temp/build.log'
 *
 * revdep-rebuild failed to emerge all packages.
 * you have the following choices:
 * - If emerge failed during the build, fix the problems and re-run revdep-rebuild.
 * - Use /etc/portage/package.keywords to unmask a newer version of the package.
 *   (and remove 5_order.rr to be evaluated again)
 * - Modify the above emerge command and run it manually.
 * - Compile or unmerge unsatisfied packages manually,
 *   remove temporary files, and try again.
 *   (you can edit package/ebuild list first)
 *
 * To remove temporary files, please run:
 * rm /var/cache/revdep-rebuild/*.rr


Reproducible: Always
Comment 1 Oleg Gawriloff 2010-06-15 11:21:47 UTC
Created attachment 235389 [details]
emerge --info ouput
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-06-15 12:08:11 UTC
I'll try to reproduce this today.. just to make sure:
a "find /usr/include -name 'libpq-fe.h'" doesn't output anything?
Comment 3 Oleg Gawriloff 2010-06-15 12:19:23 UTC
Nope.
barzog@falcon-cl2 ~ $ sudo find /usr/include -name 'libpq-fe.h'
barzog@falcon-cl2 ~ $

On servers which is not yet upgraded:
barzog@falcon-cl3 ~ $ sudo find /usr/include -name 'libpq-fe.h'
/usr/include/libpq-fe.h
/usr/include/postgresql/libpq-fe.h
/usr/include/postgresql/libpq-4/libpq-fe.h

barzog@falcon-cl3 ~ $ eix -I postgresql
[U] virtual/postgresql-base
     Available versions:
        (7.4)   7.4
        (8.0)   8.0
        (8.1)   8.1
        (8.2)   8.2
        (8.3)   8.3
        (8.4)   8.4
     Installed versions:  8.1(8.1)(17:49:24 16.02.2010)
     Description:         Virtual for PostgreSQL base (clients + libraries)
Comment 4 Aaron W. Swenson gentoo-dev 2010-06-15 20:17:51 UTC
This is fixed with >=dev-db/postgresql-base-8.4.4-r1.

The problem stems from <=dev-db/postgresql-base-8.4.3 not properly informing Portage that dev-db/libpq cannot be on the system at the same time.

The solution is to either
  eselect postgresql reset 8.4
  eselect postgresql set 8.4

Or reemerge dev-db/postgresql-base-8.4.2-r1 (Version 8.4.4-r{1,2} would be better).
Comment 5 Oleg Gawriloff 2010-06-16 06:54:26 UTC
After reemerge dev-db/postgresql-base-8.4.2-r1 revdep-rebuild works well. Thanks.