Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285438 - app-portage/autounmask-0.27: modifies package.unmask on pretend if it was empty
Summary: app-portage/autounmask-0.27: modifies package.unmask on pretend if it was empty
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 398935
Blocks:
  Show dependency tree
 
Reported: 2009-09-18 12:38 UTC by Ivan Labáth
Modified: 2012-03-04 09:29 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 Ivan Labáth 2009-09-18 12:38:05 UTC
autounmask-0.27 doesn't restore /etc/portage/package.unmask if it was an empty file (if using pretend, on ^C etc.).

Reproducible: Always

Steps to Reproduce:
1. mv /etc/portage/package.unmask ~ && touch /etc/portage/package.unmask
2. # autounmask -p something that needs unmasking e.g. app-editors/gobby-0.4.91
3. wait a few seconds and ^C (to cut to the chase)

Actual Results:  
xxx ~ # autounmask -p app-editors/gobby-0.4.91

 autounmask version 0.27 (using PortageXS-0.02.09 and portage-2.1.6.13)

 * Using repositories:
 [...]

 * Using package.keywords file: /etc/portage/package.keywords/autounmask-gobby
 * Using package.unmask file: /etc/portage/package.unmask
 * Using package.use file: /etc/portage/package.use/autounmask-gobby

 * Unmasking app-editors/gobby-0.4.91 and its dependencies.. this might take a while..

^C * Aborting due to user interrupt!
 * Restoring files.
 * done!

xxx ~ # 

Exiting on signal 2

xxx ~ # cat /etc/portage/package.unmask 

# ---
# BEGIN: app-editors/gobby-0.4.91
# ---
xxx ~ # 


Expected Results:  
xxx ~ # autounmask -p app-editors/gobby-0.4.91

 autounmask version 0.27 (using PortageXS-0.02.09 and portage-2.1.6.13)

 * Using repositories:
 [...]

 * Using package.keywords file: /etc/portage/package.keywords/autounmask-gobby
 * Using package.unmask file: /etc/portage/package.unmask
 * Using package.use file: /etc/portage/package.use/autounmask-gobby

 * Unmasking app-editors/gobby-0.4.91 and its dependencies.. this might take a while..

^C * Aborting due to user interrupt!
 * Restoring files.
 * done!

xxx ~ # 

Exiting on signal 2

xxx ~ # cat /etc/portage/package.unmask 
xxx ~ # 


xxx ~ # emerge --ignore-default-opts --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Celeron-R-_M_CPU_440_@_1.86GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 11 Sep 2009 21:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/sbin/fsck.reiserfs /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--verbose"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en sk"
MAKEOPTS="-j2"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/haskell /usr/local/portage/layman/armagetron /usr/local/portage/layman/x11 /usr/local/portage"
SYNC="rsync://mirror.gentoo.sk/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa audiofile avi bash-completion battery berkdb bluetooth branding bzip2 cairo caps cdr cli cpufreq cracklib crypt ctype dbus dri dts dvd dvdr emboss encode esd evo exif expat fbcon ffmpeg fftw firefox flac fltk ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal hfs iconv idn imlib innodb iproute2 ipv6 isdnlog java jpeg jpeg2k kdehiddenvisibility kpathsea lcms libg++ libnotify libsamplerate libwww logrotate loop-aes mad matroska matrox memlimit mikmod mmap mmx mng motif mp3 mp4 mpeg mpi mudflap musepack ncurses nptl nptlonly ogg openal openexr opengl openmp pam pcre pdf perl pg-intdatetime plotutils png posix pppd python qt3support qt4 quicktime readline reflection samba sdl session sharedmem simplexml slang sndfile soap sockets socks5 sox spell spl sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads thunar tiff timidity tk tokenizer truetype truetype-fonts udev unicode usb vim-syntax vorbis wifi win32codecs wmf wxwindows x264 x86 xcb xcomposite xine xinerama xml xml2 xorg xrandr xsl xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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 rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sk" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2012-03-04 09:28:44 UTC
package no longer in tree