Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108699 - fcron requires $EDITOR setting in environment, but cannot get it with sudo
Summary: fcron requires $EDITOR setting in environment, but cannot get it with sudo
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Aaron Walker (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-10 01:54 UTC by John Myers
Modified: 2005-10-27 16:54 UTC (History)
0 users

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


Attachments
patch to sys-process/fcron-3.0.0 (fcron.patch,752 bytes, patch)
2005-10-11 12:01 UTC, John Myers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Myers 2005-10-10 01:54:37 UTC
when I try to upgrade fcron, it dies with a message saying I need to set 
$EDITOR. This is a problem because I do in fact have $EDITOR set 
to /usr/bin/emacs in /etc/rc.conf. (and I've verified the setting in my 
environment) I think this might have something to do with environment 
whitelisting. I haven't tried putting EDITOR in make.conf yet, though that 
would be a less-than-optimal workaround anyway. 

Reproducible: Always
Steps to Reproduce:
1. emerge fcron 
 
Actual Results:  
emerge dies with error about $EDITOR 

Expected Results:  
emerge completes successfully, using $EDITOR from environment or /etc/rc.conf 

electronerd@sheila /usr/src/linux-2.6.13-gentoo $ sudo emerge fcron 
Calculating dependencies ...done! 
>>> emerge (1 of 1) sys-process/fcron-3.0.0 to / 
>>> md5 files   ;-) fcron-2.0.2.ebuild 
>>> md5 files   ;-) fcron-2.9.5.1.ebuild 
>>> md5 files   ;-) fcron-2.9.7.ebuild 
>>> md5 files   ;-) fcron-3.0.0.ebuild 
>>> md5 files   ;-) files/fcron.rc6 
>>> md5 files   ;-) files/crontab 
>>> md5 files   ;-) files/digest-fcron-2.0.2 
>>> md5 files   ;-) files/digest-fcron-2.9.5.1 
>>> md5 files   ;-) files/fcron-2.0.0-configure.diff 
>>> md5 files   ;-) files/fcron-2.9.5.1-fix-mail-output.diff 
>>> md5 files   ;-) files/digest-fcron-2.9.7 
>>> md5 files   ;-) files/digest-fcron-3.0.0 
>>> md5 src_uri ;-) fcron-3.0.0.src.tar.gz 
 * Attempting to deduce absolute path of 
 
!!! ERROR: sys-process/fcron-3.0.0 failed. 
!!! Function pkg_setup, Line 28, Exitcode 1 
!!! Please set the EDITOR env variable to the path of a valid executable. 
!!! If you need support, post the topmost build error, NOT this status message. 
 
electronerd@sheila /usr/src/linux-2.6.13-gentoo $ 
electronerd@sheila /usr/src/linux-2.6.13-gentoo $ echo $EDITOR 
/usr/bin/emacs 
 
 
Portage 2.0.53_rc4 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r3 x86_64) 
================================================================= 
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3400+ 
Gentoo Base System version 1.12.0_pre8 
distcc[10639] (dcc_set_trace_from_env) ERROR: failed to open 
logfile /var/log/distcc: Permission denied [disabled] 
ccache version 2.4 [enabled] 
dev-lang/python:     2.3.5, 2.4.2 
sys-apps/sandbox:    1.2.13 
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-r1 
sys-devel/binutils:  2.16.91.0.3 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=athlon64 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-march=athlon64 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict userpriv 
usersandbox" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://sarge.electronerdia.net/gentoo-portage" 
USE="amd64 X a52 aac aalib acl acpi aim alsa ared aredmem arts artworkextra 
audiofile avi bash-completion berkdb bitmap-fonts bl bonobo bzip2 bzlib cairo 
caps cddb cdparanoia cdr clanJavaScript clanVoice cli crypt css cups curl 
curlwrappers dba dbm dga directfb doc dpms dts dv dvb dvd dvdr dvdread 
dynagraph ecc edl eds elf emacs emboss encode erandom esd ethereal exif expat 
fam fame fbcon ffmpeg flac font-server foomaticdb fpx ftp gcj gd gdbm ggi gif 
glibc-omitfp glitz glut gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal 
howl icq ieee1394 imagemagick imap imlib inifile insecure-savers ipv6 jabber 
jack jack-tmpfs java javascript jikes joystick jp2 jpeg jpeg2k junit kde 
kdeenablefinal kerberos ladcca lcms ldap libcaca libwww lirc lm_sensors lzo lzw 
lzw-tiff mad maildir makecheck matroska mikmod mime mjpeg mng motif mozcalendar 
mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg musepack musicbrainz mysql mythtv 
nas ncurses net network no-old-linux nptl nptlonly nsplugin nvidia offensive 
ofx ogg oggvorbis ooo-kde openal openexr opengl oscar pam pcntl pcre pdflib 
pear perl php physfs pic plotutils png posix povray ppds python qt quicktime 
quotes readline real rpm rrdtool samba sasl sblive sdk sdl sensord session 
slang smux sndfile snmp soap sockets softmmu speex spell spl sql ssl 
stencil-buffer subversion svg sysfs sysvipc tcltk tcpd tetex tga theora tidy 
tiff tokenizer transcode truetype truetype-fonts type1-fonts unicode usb 
userlocales v4l v4l2 videos visualization vorbis wmf wmv wxwindows xanim xface 
xine xml xml2 xmms xosd xpm xprint xrandr xscreensaver xsl xv xvid xvmc yahoo 
yv12 zeroconf zlib userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-10-10 02:40:11 UTC
This has nothing to do with portage. sudo is what is clearing EDITOR from the 
env. 
Comment 2 John Myers 2005-10-10 11:37:11 UTC
(In reply to comment #1)  
> This has nothing to do with portage. sudo is what is clearing EDITOR from the   
> env.   
  
Oops. Sorry about that. I forgot sudo clears $EDITOR. Does that make this bug 
INVALID? 
Comment 3 John Myers 2005-10-11 12:01:26 UTC
Created attachment 70392 [details, diff]
patch to sys-process/fcron-3.0.0

here's a patch to the fcron ebuild making the relationship between sudo and
unset EDITOR more clear
Comment 4 Aaron Walker (RETIRED) gentoo-dev 2005-10-27 16:54:36 UTC
Marking invalid but am patching the ebuild with John's patch.  Thanks John.