Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142157 - !!! Invalid token (not "=") /usr/NX - Exception: ParseError: Invalid token (not '='): /etc/env.d/50nxpaths: line 7 in /etc/env.d/50nxpaths - quoation marks " missing
Summary: !!! Invalid token (not "=") /usr/NX - Exception: ParseError: Invalid token (n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo NX Server project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 00:29 UTC by Alexander Skwar
Modified: 2006-11-13 00:44 UTC (History)
3 users (show)

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


Attachments
50nxpaths (50nxpaths,120 bytes, text/plain)
2006-07-30 00:30 UTC, Alexander Skwar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2006-07-30 00:29:48 UTC
I was emerging net-misc/nxclient-base-2.0.0-r1 (see Bug #142130) and this failed:

>>> /usr/NX/lib/libXcomp.so -> libXcomp.so.2.0.0
!!! Invalid token (not "=") /usr/NX
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3961, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3956, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 3496, in action_build
    mergetask.merge(pkglist, favorites, mtimedb)
  File "/usr/bin/emerge", line 1943, in merge
    prev_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 3099, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 6244, in merge
    cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 5924, in treewalk
    target_root=self.settings["ROOT"], prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 496, in env_update
    myconfig = getconfig(file_path)
  File "/usr/lib/portage/pym/portage_util.py", line 277, in getconfig
    raise e.__class__, str(e)+" in "+mycfg
Exception: ParseError: Invalid token (not '='): /etc/env.d/50nxpaths: line 7 in /etc/env.d/50nxpaths


Line 7 of 50nxpaths reads:

SEARCH_DIRS_MASK=/usr/NX

Is there simply a line break missing at the end of the file? 

I get the following error, when I run "env-update":

askwar@hetzner ~ $ sudo env-update
!!! Invalid token (not "=") /usr/NX
Traceback (most recent call last):
  File "/usr/sbin/env-update", line 28, in ?
    portage.env_update(makelinks)
  File "/usr/lib/portage/pym/portage.py", line 496, in env_update
    myconfig = getconfig(file_path)
  File "/usr/lib/portage/pym/portage_util.py", line 277, in getconfig
    raise e.__class__, str(e)+" in "+mycfg
Exception: ParseError: Invalid token (not '='): /etc/env.d/50nxpaths: line 7 in /etc/env.d/50nxpaths

Ah!

It seems to be, that there are "" missing in the file. I'll attach a 50nxpaths file, which doesn't cause this error.




askwar@hetzner ~ $ emerge --info
Portage 2.1.1_pre3-r5 (hardened/x86/2.6, gcc-3.4.6/hardened, glibc-2.3.6-r3, 2.6.16-hardened-r11.03.no-modules i686)
=================================================================
System uname: 2.6.16-hardened-r11.03.no-modules i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/share/X11/xkb /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="        http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/    http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/     ftp://gentoo.itdnet.net/gentoo/         http://ftp.gentoo.or.kr/        http://distfiles.gentoo.org/ "
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/Gentoo/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="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc /Gentoo/Portage/local-tree/overlays/nx/nx/testing /Gentoo/Portage/local-tree/overlays/gentoo-de"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip acl apache2 async bash-completion berkdb bzip2 cap caps ccache checkpath chroot cracklib crypt cyrus dcc discard-path dlloader ecc erandom exif extensions firefox glep glibc-omitfp hardened hardenedphp hpn iconv idea idled idn imagemagick imap imlib imlib2 jikes jpeg kdeenablefinal linuxthreads-tls logrotate lynxkeymap maildir mime mmap mmx mmxext mode-owner moznoirc mozsvg multislot nls no-old-linux noaudio nocd nodrm nolvm1 nopop3d offensive pam pam-mysql pcre pdf php pic png posix postfix prelude pyzor razor readline recode reiserfs sasl sendfile server sftplogging sguil sharedmem sse ssl static svg sysvipc szip tcpd threads tiff tokenizer tools unicode userlocales utf8 vhosts vim-pager x86 xfs xinetd xorg zlib elibc_glibc input_devices_void kernel_linux linguas_de userland_GNU video_cards_dummy video_cards_none"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Skwar 2006-07-30 00:30:53 UTC
Created attachment 93048 [details]
50nxpaths

/etc/env.d/50nxpaths with " (quotation marks).
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2006-07-30 02:12:09 UTC
Re-assigning bug; this is a bug in the NX packages, not w/ Portage ;-)
Comment 3 Zac Medico gentoo-dev 2006-07-30 18:55:33 UTC
In svn r4050 I've fixed it so that portage will show an error message but will continue to process the remaining /etc/env.d/* files.
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2006-11-13 00:44:09 UTC
Hi,

Please remove /etc/env.d/50nxpaths, and then upgrade to the latest nxclient-2.1, which is now in Portage.

Best regards,
Stu