Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434470 - * WARNING: The FEATURES variable contains one or more values that should be disabled under normal circumstances: keepwork
Summary: * WARNING: The FEATURES variable contains one or more values that should be d...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-09 15:19 UTC by renesanso
Modified: 2012-09-09 19:40 UTC (History)
0 users

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


Attachments
/etc/make.conf (make.conf,2.70 KB, text/plain)
2012-09-09 15:21 UTC, renesanso
Details
emerge xen-tools errors log copypaste (xen-errors.log,137.35 KB, text/plain)
2012-09-09 15:21 UTC, renesanso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description renesanso 2012-09-09 15:19:19 UTC
I use hardened portage brunch and ~amd64. I use portage 2.2.0_alpha124.

Compiling app-emulation/xen-tools (and libvirt, and some other packages) failed when /var/tmp/portage/app-emulation/xen-tools-4.1.2-r3 (or directory for some other packages) exists and have files. 

When I do "rm -rf /var/tmp/portage/app-emulation/xen-tools-4.1.2-r3" (and "rm -rf /var/tmp/portage/*" for solve problem global) all compiles ok, but when I recompile apps, I have not any benefit, because this cache was deleted. Mostly packages compiles without cleaning cache.

What I do wrong?

Reproducible: Always

Steps to Reproduce:
1. use hardened (?) and amd64
2. use portage 2.2.0_alpha124
3. set make.conf
4. emerge app-emulation/xen-tools
5. check /var/tmp/portage/app-emulation/xen-tools-4.1.2-r3 to be exist and have files
6. emerge app-emulation/xen-tools
7. have error
8. rm -rf /var/tmp/portage/app-emulation/xen-tools-4.1.2-r3
9. emerge app-emulation/xen-tools
10. all compiles ok



# emerge --info
FEATURES variable contains unknown value(s): preserved-rebuild
Portage 2.2.0_alpha124 (hardened/linux/amd64, gcc-4.5.4, glibc-2.15-r2, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
Timestamp of tree: Sun, 09 Sep 2012 14:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles keepwork metadata-transfer news parallel-fetch preserve-libs preserved-rebuild sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --timeout=30"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="acl acpi alsa amd64 bash-completion berkdb btrfs bzip2 cli cracklib crypt cups cxx dhcp dmraid dri en encode examples faac fat ffmpeg flac ftp fuse gdbm gnutls gpm gzip hardened hfs iconv imagemagick irda jfs jit jpeg jpeg2k justify lame latex libmpeg2 libproxy libv4l libv4l2 lm_sensors lzma lzo maildir mailwrapper mbox md5sum mdadm midi mjpeg mmx mmxext modules mp3 mpeg mudflap multilib mysql ncurses nls nptl ntfs ogg openmp optimization pam pax_kernel pcmcia pcre pic png postproc pppd rar raw readline realtime reiser4 reiserfs ru session source sqlite sse sse2 ssl symlink tcpd test-programs threads tools unicode unrar urandom usb utf8 v4l v4l2 wifi x264 xattr xfs xml xvid zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy_connect proxy_ftp proxy_http" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa fbdev sisusb dummy intel radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 renesanso 2012-09-09 15:21:17 UTC
Created attachment 323316 [details]
/etc/make.conf
Comment 2 renesanso 2012-09-09 15:21:48 UTC
Created attachment 323318 [details]
emerge xen-tools errors log copypaste
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-09 16:11:35 UTC
 * WARNING: The FEATURES variable contains one or more values that
 * should be disabled under normal circumstances: keepwork
Comment 4 renesanso 2012-09-09 17:09:54 UTC
(In reply to comment #3)
>  * WARNING: The FEATURES variable contains one or more values that
>  * should be disabled under normal circumstances: keepwork

And what? This option must prevent stopping when some errors occurred.
Comment 5 Zac Medico gentoo-dev 2012-09-09 17:21:43 UTC
(In reply to comment #0)
> When I do "rm -rf /var/tmp/portage/app-emulation/xen-tools-4.1.2-r3" (and
> "rm -rf /var/tmp/portage/*" for solve problem global) all compiles ok, but
> when I recompile apps, I have not any benefit, because this cache was
> deleted. Mostly packages compiles without cleaning cache.

With FEATURES=keepwork, it doesn't recompile anything. It only runs the src_install phase again with the previously compiled files.

If you really want a cache, then ccache is is more appropriate. I wouldn't recommend it though, because it's error-prone.
Comment 6 renesanso 2012-09-09 19:31:29 UTC
(In reply to comment #5)
> (In reply to comment #0)
> > When I do "rm -rf /var/tmp/portage/app-emulation/xen-tools-4.1.2-r3" (and
> > "rm -rf /var/tmp/portage/*" for solve problem global) all compiles ok, but
> > when I recompile apps, I have not any benefit, because this cache was
> > deleted. Mostly packages compiles without cleaning cache.
> 
> With FEATURES=keepwork, it doesn't recompile anything. It only runs the
> src_install phase again with the previously compiled files.
> 
> If you really want a cache, then ccache is is more appropriate. I wouldn't
> recommend it though, because it's error-prone.

Oh, thanks. I really don't understand right what this option do. In what cases ccache may be error-prone (example: if update some application, or eaven for recompile the same)? Maybe there is some solutions to make using ccache safe? 

And (most interesting) it may be only errors during compilation with ccache, or I can have segfault or other errors in runtime, but all will compile normaly?
Comment 7 Zac Medico gentoo-dev 2012-09-09 19:40:35 UTC
(In reply to comment #6)
> Oh, thanks. I really don't understand right what this option do.

keepwork? If the corresponding documentation in `man make.conf` isn't enough for you, then you shouldn't be using it. I'd like to remove the feature because it's easy for people to hurt themselves with it, but I don't because it may still be useful for people who understand it.

> In what
> cases ccache may be error-prone (example: if update some application, or
> eaven for recompile the same)? Maybe there is some solutions to make using
> ccache safe? 
>
> And (most interesting) it may be only errors during compilation with ccache,
> or I can have segfault or other errors in runtime, but all will compile
> normaly?

I don't use ccache, so I'm not really familiar with all of its failure modes. It's a third-party application, so you should check the documentation that comes with it.