Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166511 - Problems with new behaviour of FEATURES="test" and USE="test"
Summary: Problems with new behaviour of FEATURES="test" and USE="test"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2007-02-12 15:11 UTC by Paolo Pedroni
Modified: 2007-02-12 19:35 UTC (History)
0 users

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 Paolo Pedroni 2007-02-12 15:11:41 UTC
Bug 142919 is undoubtedly a good idea, but there is a problem: FEATURES="test" is enabled globally (in /etc/make.conf) and cannot be disabled locally for known problematic packages (like, for example current stable binutils, which fails several tests on AMD64, or glibc). On the other hand, if I emerge a package with FEATURES="-test" then everytime I 'emerge -uN1Dav world' portage wants to re-emerge it with tests enabled (and it fails).
My proposal is threefold (is that an actual word, BTW): it would be nice if either FEATURES could be modified locally (with an /etc/portage/package.features, for example) or if having USE="-test" in /etc/portage/package.use would automatically disable FEATURES="test" for that package, or USE="test" could be filtered from emerge --newuse.

Another idea could be to take out the "test" USE_KEYWORD altogether, since it's now bound to the "test" FEATURES_KEYWORD.

Reproducible: Always

Steps to Reproduce:
1. emerge -uN1Dav world (it tries to emerge binutils and other packages known to fail their test)
2. FEATURES="-test" emerge -1av binutils glibc (it "works", packages are built and installed without testing, USE="test" is disabled)
3. emerge -uN1Dav world (USE="test" is enabled again and portage wants to re-emerge the packages emerged in step 2, failing in the process)
Actual Results:  
Impossibility to emerge packages known to fail tests.

Expected Results:  
Either give me the option to disable FEATURES="test" on a per-package base or (see comment #4 for bug 142919) filter USE="test" from emerge --newuse

# emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System release 1.12.8
Timestamp of tree: Mon, 12 Feb 2007 13:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="autoaddcvs autoconfig ccache collision-protect distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://gentoo.intergenia.de http://pandemonium.tiscali.de/pub/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acpi alsa amd64 ao arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cli cracklib crypt cups curl dbus dga dio dlloader dri dvd dvdr dvdread emboss emul-linux-x86 encode exif expat fam fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gd ggi gif glut gmp gnutls gphoto2 gpm gtk2 guile hal iconv idn ieee1394 imagemagick imlib isdnlog java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal lcms libcaca libg++ libsamplerate lm_sensors lua mad maildir matroska memlimit midi mikmod mime mmap mng motif mozilla mp3 mpeg mpi ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl oss pam pcre pdf perl png posix ppds pppd python qt3 quicktime readline recode reflection ruby samba sasl sdl session sharedmem shorten sndfile sockets sox speex spell spl ssl svg symlink sysvipc tcl tcltk tcpd test theora threads tidy tiff tk truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wmf wxwindows x264 xine xml xorg xosd xpm xv xvid yahoo zlib" ALSA_CARDS="intel-8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2007-02-12 19:35:08 UTC
package.use.mask is a solution that's currently supported.  It can be either in your main profile or /etc/portage/profile.  It's documented in `man portage`.