Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145814 - "eselect env" generates /etc/profile.csh with bad setenv syntax.
Summary: "eselect env" generates /etc/profile.csh with bad setenv syntax.
Status: RESOLVED DUPLICATE of bug 136111
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Other
: High normal
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-01 00:42 UTC by Jim Burwell
Modified: 2006-09-02 16:58 UTC (History)
0 users

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


Attachments
Patch which should fix this script (env.eselect.patch,446 bytes, patch)
2006-09-01 01:23 UTC, Jim Burwell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Burwell 2006-09-01 00:42:54 UTC
"eselect env" generates /etc/profile.csh with bad setenv syntax.  Setenv does not use an "=" after the variable name.  This causes Tcsh (and I'm presuming Csh) to choke with a syntax error.  Example line:
    setenv PAGER='/usr/bin/less'
Should be:
    setenv PAGER '/usr/bin/less'

emerge --info:

Gentoo Base System version 1.12.4
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gent
oo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) processor
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled
]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-tbird -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shu
tdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/shar
e/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dv
ips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/con
fig/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/
terminfo"
CXXFLAGS="-Os -march=athlon-tbird -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sa
ndbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirr
ors.easynews.com/linux/gentoo/ http://gentoo.llarian.net/ http://gentoo.chem.wis
c.edu/gentoo/ http://gentoo.arcticnetwork.ca/"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d
istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gts.jsbc.cc/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl acpi aim alsa apache2 apm arts asf audiofile avi bash-completion bcmath berkdb bitmap-fonts blas bluetooth bonobo bzip2 cdpar
anoia cdr clamav cli cpdflib crypt cscope cups curl dba dga directfb dlloader do
c dri dts dv dvb dvdr dvdread eds emboss encode esd est ethereal exif fam fbcon 
ffmpeg fftw flac foomaticdb fortran gd gdbm gif gmp gnome gphoto2 gpm gstreamer 
gtk gtk2 gtkhtml hal howl idn imagemagick imap imlib ipv6 isdnlog java javascrip
t joystick jpeg kde kdeenablefinal lapack lcms libcaca libg++ libwww lm_sensors 
mad maildir matroska mhash mikmod mime mmap mmx mng motif mozilla mp3 mpeg multi
user mysql ncurses nls nptl nsplugin nvidia offensive ogg openal opengl oss pam 
pcre pda pdflib pear perl php png pppd python qt qt3 qt4 quicktime readline real
 reflection samba sdl seamonkey search server session shorten sndfile snmp socks
5 sox speex spell spl ssl svg svga szip tcltk tcpd tetex theora tidy tiff truety
pe truetype-fonts type1-fonts udev usb v4l vcd vhosts vorbis wifi win32codecs wi
nbind wmf xface xine xml xmms xorg xpm xtended xv xvid zlib elibc_glibc input_de
vices_keyboard input_devices_mouse kernel_linux linguas_en_US userland_GNU video
_cards_fbdev video_cards_neomagic video_cards_nv video_cards_nvidia video_cards_
vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTA
GE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jim Burwell 2006-09-01 01:23:51 UTC
Created attachment 95623 [details, diff]
Patch which should fix this script

My humble fix submission.
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2006-09-02 16:58:35 UTC

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