Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49126 - repoman doesn't enforce use.local.desc
Summary: repoman doesn't enforce use.local.desc
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-04-26 23:10 UTC by Mr. Bones. (RETIRED)
Modified: 2004-07-16 23:54 UTC (History)
0 users

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


Attachments
Checks only for package name when checking use.local.desc (repoman.patch,2.39 KB, patch)
2004-04-26 23:19 UTC, Jason Stubbs (RETIRED)
Details | Diff
Same but for 2.0.50-r6 (repoman.patch,2.30 KB, patch)
2004-04-27 01:20 UTC, Jason Stubbs (RETIRED)
Details | Diff
Fix for bug in previous patch (repoman.patch,2.31 KB, patch)
2004-04-27 18:57 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mr. Bones. (RETIRED) gentoo-dev 2004-04-26 23:10:53 UTC
if a use flag is listed in use.local.desc for any package, repoman will
accept it in IUSE for any ebuild, even if not specified in use.local.desc.
For example, the "monkey" use flag is listed in use.local.desc for app-cdr/k3b
but repoman will not complain when "monkey" is added to IUSE for any other
ebuild.

Reproducible: Always
Steps to Reproduce:
1. add use flag listed in use.local.desc for another package to IUSE for different package.
2. run repoman full

Actual Results:  
repoman didn't complain about invalid USE flag.

Expected Results:  
repoman should have complained about invalid USE flag.

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25)
=================================================================
System uname: 2.4.25 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.9
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i686 -O3 -pipe -Wall"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/app-defaults /etc/X11/rstart /etc/X11/serverconfig
/etc/X11/starthere /etc/X11/xdm /etc/bash_completion /etc/gconf /etc/pango
/etc/sound/events /etc/ssmtp /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d"
CXXFLAGS="-mcpu=i686 -O3 -pipe -Wall -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/msterret/gentoo-x86"
PORTDIR_OVERLAY="/home/msterret/src/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X apm arts avi berkdb cdr crypt cscope cups dvd encode esd foomaticdb
gdbm gif gnome gpm gtk gtk2 guile java jpeg libg++ libwww mad mikmod mmx mozilla
moznocompose moznoirc moznomail mpeg nas ncurses noreiserfs oggvorbis opengl oss
pam pdflib perl png ppds python quicktime readline sdl spell sse ssl tcpd tiff
truetype x86 xml2 xmms xv zlib"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-04-26 23:19:37 UTC
Created attachment 30131 [details, diff]
Checks only for package name when checking use.local.desc

Patch for for repoman from portage-2.0.51_pre7 but should apply to 2.0.50-r6.
Untested as my system seems to be partially broken at present :/

I've assumed that package names in use.local.desc cannot have versions or
operators.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-04-27 00:12:26 UTC
Doesn't seem to apply to -r6.  Can you try it again?  Maybe I messed something
up on my end.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-04-27 01:20:42 UTC
Created attachment 30134 [details, diff]
Same but for 2.0.50-r6
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-04-27 13:31:45 UTC
Hmmm, I don't think this patch works correctly.  It's complaining about
too many things.  For example, it claims that:

   games-arcade/tuxracer/tuxracer-0.61-r3.ebuild: stencil-buffer

is bad, but it's listed in use.local.desc.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2004-04-27 18:57:42 UTC
Created attachment 30204 [details, diff]
Fix for bug in previous patch

The 2.0.51_pre7 patch works. The variable names changed a little between the
versions and I used a wrong one for the 2.0.50-r6 patch.
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-16 12:14:19 UTC
just had this problem in pre13, could this be included in the next release? :)
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2004-07-16 23:54:29 UTC
Added the 1st patch to CVS. Will be in the next .51 release.