Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324103 - after upgrading to dev-db/postgresql-base-8.4.2-r1 revdep-rebuild fails on php
Summary: after upgrading to dev-db/postgresql-base-8.4.2-r1 revdep-rebuild fails on php
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PHP Bugs
Depends on:
Reported: 2010-06-15 11:21 UTC by Oleg Gawriloff
Modified: 2010-06-16 06:54 UTC (History)
2 users (show)

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

emerge --info ouput (,3.84 KB, text/plain)
2010-06-15 11:21 UTC, Oleg Gawriloff

Note You need to log in before you can comment on or make changes to this bug.
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/ (requires
[ 100% ]
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/apache2/modules/ -> 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 ]


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:
 *, 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
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'

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.