Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164678 - equery depends does not use the portage tree to calculate dependencies
Summary: equery depends does not use the portage tree to calculate dependencies
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2007-01-31 09:12 UTC by vicaya
Modified: 2007-04-11 05:03 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 vicaya 2007-01-31 09:12:03 UTC
emerge --depclean wants to remove needed package (dev-php5/jargon in this case) in 2.1.1-r2 (stable) and 2.1.2-r5 (~amd64):

$ equery d dev-php5/jargon
[ Searching for packages depending on dev-php5/jargon... ]
dev-php5/creole-1.1.0
$ equery d dev-php5/creole
[ Searching for packages depending on dev-php5/creole... ]
dev-php5/propel-runtime-1.2.0
dev-php5/jargon-1.1.0
$ equery d dev-php5/propel-runtime
[ Searching for packages depending on dev-php5/propel-runtime... ]
dev-php5/propel-1.2.0
$ grep propel /var/lib/portage/world
dev-php5/propel

Note: 
1. none of the packages is in package.provided -- I don't have one.
2. none of the mentioned packages use USE flags.
3. Both dev-php5/jargon and dev-php5/propel have RDEPEND on dev-php5/creole.
4. I use metadata_overlay (unset metadata-transfer in FEATURES) to cut down sync time. I don't see why it should affect the portage behavior, as equery finds all the dependencies just fine.
Comment 1 Zac Medico gentoo-dev 2007-01-31 09:18:31 UTC
equery is known to be buggy for that type of query.  Please attach output from portage-2.1.2-r5 for `emerge --debug --pretend --depclean`.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-31 09:25:52 UTC
dev-php5/propel doesn't depend on dev-php5/jargon at all... neither does dev-php5/creole -> equery d produces nonsense.

# emerge -pv dev-php5/propel

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-libs/t1lib-5.0.2  USE="X -doc" 1,658 kB 
[ebuild  NS   ] dev-db/sqlite-2.8.16-r4  USE="-doc nls -tcl" 959 kB 
[ebuild  N    ] net-libs/c-client-2004g  USE="pam ssl" 2,195 kB 
[ebuild  N    ] app-admin/php-toolkit-1.0-r2  0 kB 
[ebuild  N    ] dev-lang/php-5.1.6-r8  USE="-adabas -apache -apache2 -bcmath berkdb -birdstep bzip2 -calendar -cdb -cgi -cjk cli -concurrentmodphp crypt -ctype curl curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob exif -fastbuild -fdftk -filepro -firebird flatfile -force-cgi-redirect -frontbase -ftp gd -gd-external gdbm gmp -hardenedphp -hash -hyperwave-api iconv imap -informix inifile -interbase -iodbc ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql -mysql -mysqli ncurses nls -oci8 -oci8-instant-client -odbc -pcntl pcre -pdo -pdo-external -pic -posix -postgres -qdbm readline -recode reflection -sapdb -sasl session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid spell spl sqlite ssl -sybase -sybase-ct -sysvipc threads -tidy -tokenizer truetype unicode -vm-goto -vm-switch -wddx xml -xmlreader xmlrpc -xmlwriter xpm -xsl -yaz zip zlib" 6,329 kB 
[ebuild  N    ] dev-php5/pecl-zip-1.7.5  56 kB 
[ebuild  N    ] dev-php/PEAR-PEAR-1.4.11  326 kB 
[ebuild  N    ] dev-php5/phing-2.2.0  371 kB 
[ebuild  N    ] dev-php5/creole-1.1.0  91 kB 
[ebuild  N    ] dev-php5/propel-generator-1.2.0  212 kB 
[ebuild  N    ] dev-php5/propel-runtime-1.2.0  45 kB 
[ebuild  N    ] dev-php5/propel-1.2.0  0 kB 

--
 # emerge -pv dev-php5/creole

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-libs/t1lib-5.0.2  USE="X -doc" 1,658 kB 
[ebuild  NS   ] dev-db/sqlite-2.8.16-r4  USE="-doc nls -tcl" 959 kB 
[ebuild  N    ] net-libs/c-client-2004g  USE="pam ssl" 2,195 kB 
[ebuild  N    ] app-admin/php-toolkit-1.0-r2  0 kB 
[ebuild  N    ] dev-lang/php-5.1.6-r8  USE="-adabas -apache -apache2 -bcmath berkdb -birdstep bzip2 -calendar -cdb -cgi -cjk cli -concurrentmodphp crypt -ctype curl curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob exif -fastbuild -fdftk -filepro -firebird flatfile -force-cgi-redirect -frontbase -ftp gd -gd-external gdbm gmp -hardenedphp -hash -hyperwave-api iconv imap -informix inifile -interbase -iodbc ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql -mysql -mysqli ncurses nls -oci8 -oci8-instant-client -odbc -pcntl pcre -pdo -pdo-external -pic -posix -postgres -qdbm readline -recode reflection -sapdb -sasl session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid spell spl sqlite ssl -sybase -sybase-ct -sysvipc threads -tidy -tokenizer truetype unicode -vm-goto -vm-switch -wddx xml -xmlreader xmlrpc -xmlwriter xpm -xsl -yaz zip zlib" 6,329 kB 
[ebuild  N    ] dev-php5/pecl-zip-1.7.5  56 kB 
[ebuild  N    ] dev-php/PEAR-PEAR-1.4.11  326 kB 
[ebuild  N    ] dev-php5/creole-1.1.0  91 kB 

Try w/ latest ~arch gentoolkit; the results you've posted are bogus.

Comment 3 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-01-31 09:38:36 UTC
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/creole/creole-1.1.0.ebuild?r1=1.1&r2=1.2

equery uses the ebuild in /var/db/pkg. portage/emerge uses the ebuild in the live tree ($PORTDIR). creole no longer depends on jargon in the live tree. If you need jargon add it to your world file.
Comment 4 vicaya 2007-01-31 09:47:53 UTC
Well, this is the output of the new equery (gentoolkit-0.2.3_pre3)

$ equery d dev-php5/jargon
[ Searching for packages depending on dev-php5/jargon... ]
dev-php5/creole-1.1.0 (>=dev-php5/jargon-1.1.0)

I can confirm dev-php5/jargon is not listed/mentioned as a dependency in emerge -dp --depclean for portage 2.1.2-r5 (I prefer not to post the output if possible)

I'm sure dev-php5/jargon was pulled down as a dependency when emerging propel, this is the relevant part of the genlop output:

     Thu Sep 28 10:30:31 2006 >>> dev-php/PEAR-PEAR-1.4.11
     Thu Sep 28 10:34:02 2006 >>> dev-php5/phing-2.2.0
     Thu Sep 28 10:34:15 2006 >>> dev-php5/propel-generator-1.2.0
     Thu Sep 28 10:34:27 2006 >>> dev-php5/jargon-1.1.0
     Thu Sep 28 10:34:39 2006 >>> dev-php5/creole-1.1.0
     Thu Sep 28 10:34:51 2006 >>> dev-php5/propel-runtime-1.2.0
     Thu Sep 28 10:35:00 2006 >>> dev-php5/propel-1.2.0

Comment 5 vicaya 2007-01-31 09:49:51 UTC
comment #3 makes sense. Thanks.
Comment 6 Zac Medico gentoo-dev 2007-03-17 22:00:49 UTC
*** Bug 171280 has been marked as a duplicate of this bug. ***
Comment 7 Paul Varner (RETIRED) gentoo-dev 2007-03-29 22:17:50 UTC
$ svn commit -m "Change package.get_???_deps() methods to try the portage tree first, since emerge always uses the portage tree for dependencies. (Bug #164678)"
Sending        trunk/ChangeLog
Sending        trunk/src/gentoolkit/package.py
Transmitting file data ..
Committed revision 368.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2007-04-11 05:03:54 UTC
Released in gentoolkit-0.2.4_pre4