Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159515 - portage has problems with comments in package.mask
Summary: portage has problems with comments in package.mask
Status: RESOLVED DUPLICATE of bug 141747
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-30 15:28 UTC by Stephan Friedrichs
Modified: 2009-05-20 15:01 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 Stephan Friedrichs 2006-12-30 15:28:07 UTC
Hi,

since I installed sys-apps/portage-2.1.2_rc4-r3, I receive the following error message, whenever I run emerge or equery:

--- Invalid atom in /etc/portage/package.mask: =sys-libs/glibc-2.5 # won't compile

There is such a line in my package.mask. If I place the comment after the atom in an extra line, so that there only is either one comment or an atom per line (not both), it works just fine. So, obviously portage has problems parsing comments in the package.mask file?

Here's my
> emerge --info
--- Invalid atom in /etc/portage/package.mask: =sys-libs/glibc-2.5 # won't compile
Portage 2.1.2_rc4-r3 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r5, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.8
Last Sync: Sat, 30 Dec 2006 22:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i386-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 /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac alsa apm arts avahi berkdb bitmap-fonts bzip2 calendar cdda cdio cdr cli cracklib crypt css cups dbus dlloader doc dri dts dvd dvdr dvdread eds emboss encode ffmpeg firefox flac flash foomaticdb ftp gdbm gif gnome gnutls gpm gstreamer gtk gtk2 hal howl httpd iconv icq ieee1394 imlib ipv6 isdnlog jabber java jdk jpeg jpeg2k libg++ libnotify libwww live logrotate mad mikmod motif mp3 mpeg mysql ncurses nls nsplugin offensive ogg oggvorbis openal opengl oss pam pcre pdf perl png pppd python quicktime readline reflection sdl session spell spl ssl stream svga tcpd theora truetype truetype-fonts type1-fonts unicode usb vcd vim vlm vorbis win32codecs wxwindows x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

---------------------

Greetings
//Stephan Friedrichs
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-30 15:43:12 UTC
Your package.mask format is invalid, see man portage / package.mask

Format:
- comments begin with #
- one DEPEND atom per line
Example:
# mask out versions 1.0.4496 of the nvidia
# drivers and later
>=media-video/nvidia-kernel-1.0.4496
>=media-video/nvidia-glx-1.0.4496
Comment 2 Stephan Friedrichs 2006-12-30 16:04:47 UTC
Sorry, if I'm mistaken, but I did read this paragraph to check if it changed, but it was neither changed nor actually forbids comments after an atom, does it?

Besides, the comment in that place was alright with yesterdays version of portage. And IMHO a comment in that place is quite usefull as well...
Comment 3 Zac Medico gentoo-dev 2006-12-30 16:13:46 UTC
(In reply to comment #2)
> Besides, the comment in that place was alright with yesterdays version of
> portage.

I'm not sure why you observed that because the parser has never (in recent history) supported comments that don't start at the beginning of a line.
Comment 4 Stephan Friedrichs 2006-12-30 16:37:23 UTC
> 
> I'm not sure why you observed that because the parser has never (in recent
> history) supported comments that don't start at the beginning of a line.
> 

That's weird... But I'm sure, I didn't add the comment within the last 24 hours. I wrote it the day glibc-2.5 moved into ~x86 wich was in October, I think...

So as it's no bug, I make it a proposal: Why should the parser not support comments after an atom? ;)
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-12-31 08:29:28 UTC
Because it's used for (much) more than just package.mask and a # after an atom isn't always a comment.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-20 15:01:29 UTC
It's a duplicate.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-20 15:01:42 UTC

*** This bug has been marked as a duplicate of bug 141747 ***