Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35906 - qpkg -I -v -i PACKAGE reports wrong USE flags
Summary: qpkg -I -v -i PACKAGE reports wrong USE flags
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 17:21 UTC by Elan Ruusamäe
Modified: 2011-10-30 22:18 UTC (History)
1 user (show)

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


Attachments
Patch to report USE flags correctly (qpkg.patch.4,399 bytes, patch)
2003-12-24 09:19 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elan Ruusamäe 2003-12-15 17:21:49 UTC
# qpkg -I -v -i gcc
sys-devel/gcc-3.2.3-r2 *
        The GNU Compiler Collection.  Includes C/C++ and java compilers [ http://www.gnu.org/software/gcc/gcc.html ]
Compiled with USE Flags: -static nls -bootstrap java -build


while i'm sure i built with '-nls' and '-java'

now looking at qpkg source, figured out it uses IUSE and USE files:
# cat /var/db/pkg/sys-devel/gcc-3.2.3-r2//USE
x86 oss arts avi cups encode gif imlib jpeg kde libg++ libwww motif mpeg ncurses oggvorbis opengl pdflib png qt quicktime sdl slang spell truetype X xml2 xmms xv zlib berkdb readline gpm pam ssl perl python acpi artswrappersuid fbcon maildir md5sum memlimit mmx mozilla -apm -crypt -gtk -foomaticdb -gnome -mad -mikmod -nls -svga -gdbm -tcpd -esd -java

# cat /var/db/pkg/sys-devel/gcc-3.2.3-r2//IUSE
static nls bootstrap java build

looking at qpkg source, then this assignment
 use=$(grep -o ${flag} ${pdir}/USE | tr -d '\n')

does matches '-nls' too (not only 'nls')!
# grep -o nls /var/db/pkg/sys-devel/gcc-3.2.3-r2//USE
nls

i'm using gentoolkit-0.1.36 and portage 2.0.49-15


Reproducible: Always
Steps to Reproduce:
1.cat /var/db/pkg/sys-devel/gcc-3.2.3-r2/USE
2.qpkg -I -v i gcc
3.compare ;)




# emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-test6)
=================================================================
System uname: 2.6.0-test6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs buildpkg distcc userpriv"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles http://ftp.uni-erlangen.
de/pub/mirrors/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j14"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss avi cups encode gif gtk2 jpeg libg++ libwww motif mpeg ncurses 
pdflib png quicktime spell truetype xml2 xmms xv zlib slang readline arts X sdl 
gpm pam ssl perl python imlib oggvorbis qt kde opengl acpi artswrappersuid fbcon 
maildir md5sum memlimit mmx mozilla -apm -crypt -gtk -foomaticdb -gnome -mad 
-mikmod -nls -svga -gdbm -tcpd -esd -java -berkdb javascript tiff svga sse aalib 
samba directfb"
Comment 1 Paul Varner (RETIRED) gentoo-dev 2003-12-24 09:19:22 UTC
Created attachment 22625 [details, diff]
Patch to report USE flags correctly
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-01-22 20:09:22 UTC
I can't reproduce that, also AFAIK there shouldn't be any -foo entries in the USE files as portage reduces them (if you have USE="foo -foo" portage reads it as USE="").
Comment 3 Elan Ruusamäe 2004-01-23 02:36:21 UTC
hi, looks yes, portage behaviour has changed, no more -FLAG entries in USE file.
thus it's reporting flags properly

# qpkg -I -v -i gcc-3
sys-devel/gcc-3.2.3-r3 *
        The GNU Compiler Collection.  Includes C/C++ and java compilers [ http://www.gnu.org/software/gcc/gcc.html ]
Compiled with USE Flags: -static -nls -bootstrap java -build


# cat /var/db/pkg/sys-devel/gcc-3*/USE
X aalib acpi arts artswrappersuid avi cups directfb encode fbcon gif gpm gtk gtk2 imlib javascript jpeg kde ldap libg++ libwww maildir md5sum memlimit mmx motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tiff truetype x86 xml2 xmms xv zlib

versions just in case:
# epm -q gentoolkit portage
gentoolkit-0.1.38
portage-2.0.49-r21
Comment 4 Elan Ruusamäe 2004-01-23 02:36:56 UTC
hi, looks yes, portage behaviour has changed, no more -FLAG entries in USE file.
thus it's reporting flags properly

# qpkg -I -v -i gcc-3
sys-devel/gcc-3.2.3-r3 *
        The GNU Compiler Collection.  Includes C/C++ and java compilers [ http://www.gnu.org/software/gcc/gcc.html ]
Compiled with USE Flags: -static -nls -bootstrap java -build


# cat /var/db/pkg/sys-devel/gcc-3*/USE
X aalib acpi arts artswrappersuid avi cups directfb encode fbcon gif gpm gtk gtk2 imlib javascript jpeg kde ldap libg++ libwww maildir md5sum memlimit mmx motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tiff truetype x86 xml2 xmms xv zlib

versions just in case:
# epm -q gentoolkit portage
gentoolkit-0.1.38
portage-2.0.49-r21
Comment 5 Elan Ruusamäe 2004-01-23 02:54:59 UTC
reopening the bug, because found another part which is not working

the grep -o does not match the proper flag:

while i have gcc compiled as
-static -nls -bootstrap -java -build

it shows:
Compiled with USE Flags: -static -nls -bootstrap java -build
because it matches 'javascript':


original code has:
# grep -o java /var/db/pkg/sys-devel/gcc-3.2.3-r3//USE
java

# grep -o .java. /var/db/pkg/sys-devel/gcc-3.2.3-r3//USE
javas

maybe should use this pattern instead:
# grep -o '\bjava\b' /var/db/pkg/sys-devel/gcc-3.2.3-r3//USE
# 
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 13:43:46 UTC
this tool is deprecated
Comment 7 Elan Ruusamäe 2004-08-21 16:19:41 UTC
deprecated by what? what should be used then instead? epm?
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 17:10:00 UTC
equery