Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119876 - gentoolkit-0.2.2_pre2 - equery depgraph and depends fail
Summary: gentoolkit-0.2.2_pre2 - equery depgraph and depends fail
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2006-01-21 16:59 UTC by Henrique Ferreiro
Modified: 2008-02-21 17:15 UTC (History)
1 user (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 Henrique Ferreiro 2006-01-21 16:59:56 UTC
$ equery depgraph libdvb
* dependency graph for media-libs/libdvb-0.5.5.1-r1
`-- media-libs/libdvb-0.5.5.1-r1
 `-- sys-kernel/linux-headers-2.6.11-r3
  `-- sys-devel/patch-2.5.9-r1 [ !bootstrap ]
[ media-libs/libdvb-0.5.5.1-r1 stats: packages (3), max depth (2) ]

$ equery depends linuxtv-dvb-headers
[ Searching for packages depending on linuxtv-dvb-headers... ]
.

but libdvb-0.5.5-r1.ebuild
...
RDEPEND="media-tv/linuxtv-dvb-headers"
...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-21 17:17:12 UTC
Reopen with gentoolkit version and emerge --info...
Comment 2 Henrique Ferreiro 2006-01-22 01:57:41 UTC
gentoolkit-0.2.2_pre2

Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-suspend2 i686)
=================================================================
System uname: 2.6.15-suspend2 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy ccache collision-protect digest distlocks fixpackages sandbox sfperms strict test"
GENTOO_MIRRORS=" ftp://ftp.belnet.be/mirrors/rsync.gentoo.org/gentoo"
LANG="gl_ES.UTF-8"
LC_ALL="gl_ES.UTF-8"
LINGUAS="gl es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-gentopia /usr/local/portage-bmg /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa audiofile avahi avi bash-completion bzip2 cairo cdr cscope cups dbus dvd dvdr eds emboss encode esd exif expat fam firefox flac foomaticdb fortran gdbm gif glut gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib jpeg junit lcms libg++ libwww mad mikmod mmx mmxext mng mp3 mpeg ncurses nfs nls nptl ogg oggvorbis opengl pcre pic png quicktime readline samba scanner sse sse2 ssl svg tcltk test tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xml xml2 xv xvid yaz zlib elibc_glibc kernel_linux linguas_gl linguas_es userland_GNU"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 3 Henrique Ferreiro 2006-02-06 13:52:38 UTC
The same happens with ant and ant-tasks.
Comment 4 Henrique Ferreiro 2006-03-23 15:36:09 UTC
Now it works in the case of libdvb and linuxtv-dvb-headers.
But with ant it has a strange behaviour:

localhost ~ # equery depends ant-core-1.6.5*
[ Searching for packages depending on ant-core-1.6.5*... ]
dev-java/ant-1.6.5
dev-java/ant-tasks-1.6.5

localhost ~ # equery depends ant-core-1.6.5
[ Searching for packages depending on ant-core-1.6.5... ]
dev-java/log4j-1.2.13
localhost ~ # 

localhost ~ # equery depends ant-core
[ Searching for packages depending on ant-core... ]
dev-util/eclipse-sdk-3.1.2
dev-java/log4j-1.2.13
dev-java/jdbc-mysql-3.1.12
dev-java/junit-3.8.1-r1
localhost ~ #

And the same behaviour with ant-taks.
I think this is related to bug #114432.

Depgraph on ant matches ant-core and ant-tasks.
Comment 5 Henrique Ferreiro 2006-03-25 07:33:30 UTC
I took a look at the code and found the bug:

When equery is checking the ant's dependencies it calls gentoolkit.split_package_name('ant-core-1.6.5*') but this function returns ant-core-1.6.5* as the package name with the version field empty. This happens because the function ververify from /usr/lib/portage/pym/portage_versions.py (l.7) uses the next regex:

ver_regexp = re.compile("^(cvs\\.)?(\\d+)((\\.\\d+)*)([a-z]?)((_(pre|p|beta|alpha|rc)\\d*)*)(-r(\\d+))?$")

and it does not consider version numbers finishing in '*'.
Comment 6 GNUtoo 2006-04-14 16:57:25 UTC
same proble with dev-libs/nss
Comment 7 Paul Varner (RETIRED) gentoo-dev 2007-01-02 15:01:07 UTC
Fix for the depends command is in subversion rev 333.  I will fix the depgraph command next.

Example output:
equery depends =ant-core-1.6.5*
[ Searching for packages depending on =ant-core-1.6.5*... ]
dev-java/bcprov-1.31-r2 (dev-java/ant-core)
dev-java/commons-cli-1.0-r5 (>=dev-java/ant-core-1.6.2)
dev-java/commons-lang-2.0-r2 (>=dev-java/ant-core-1.4)
dev-java/commons-logging-1.1-r2 (dev-java/ant-core)
dev-java/eclipse-ecj-3.2 (dev-java/ant-core)
dev-java/log4j-1.2.14-r1 (>=dev-java/ant-core-1.6.5)
dev-java/swt-3.2.1 (dev-java/ant-core)
net-p2p/azureus-2.5.0.0-r3 (>=dev-java/ant-core-1.6.2)

Comment 8 Paul Varner (RETIRED) gentoo-dev 2008-02-21 17:15:00 UTC
This is defintely fixed in gentoolkit-0.2.4_rc2