Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101047 - shadow-4.0.11.1 has broken SUPATH when using pam
Summary: shadow-4.0.11.1 has broken SUPATH when using pam
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 101519 101632 (view as bug list)
Depends on:
Blocks: 101282
  Show dependency tree
 
Reported: 2005-08-01 17:42 UTC by teidakankan
Modified: 2005-08-07 14:56 UTC (History)
3 users (show)

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 teidakankan 2005-08-01 17:42:04 UTC
After upgrding to pam-login-4.0.11-r1 and shadow-4.0.11.1 emerge function fails
after su'ing to root.  Emerge works OK when run from "source /etc/profile". 
Downgrading to shadow-4.0.7-r4 fixes problem.

Same problem on two x86 boxes.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




gstreamerroot@thor: /home/family
hist:2 cmnd:2 jobs:0 # emerge dbus
Calculating dependencies  ...done!
>>> emerge (1 of 1) sys-apps/dbus-0.23.4-r1 to /
>>> md5 files   ;-) dbus-0.23.4-r1.ebuild
>>> md5 files   ;-) dbus-0.23.2.ebuild
>>> md5 files   ;-) dbus-0.23.4.ebuild
>>> md5 files   ;-) dbus-0.23-r3.ebuild
>>> md5 files   ;-) dbus-0.23.2-r1.ebuild
>>> md5 files   ;-) files/dbus-0.23.2-abi_api.patch
>>> md5 files   ;-) files/dbus
>>> md5 files   ;-) files/dbus-0.23-qt.patch
>>> md5 files   ;-) files/30-dbus
>>> md5 files   ;-) files/digest-dbus-0.23.2
>>> md5 files   ;-) files/digest-dbus-0.23.4
>>> md5 files   ;-) files/dbus-0.23-pyexecdir.patch
>>> md5 files   ;-) files/dbus-0.23-dbus_session_connect.patch
>>> md5 files   ;-) files/digest-dbus-0.23-r3
>>> md5 files   ;-) files/dbus-0.23.2-version_fix.patch
>>> md5 files   ;-) files/dbus-0.23.2-python_api.patch
>>> md5 files   ;-) files/digest-dbus-0.23.2-r1
>>> md5 files   ;-) files/digest-dbus-0.23.4-r1
>>> md5 files   ;-) files/dbus-0.23-fd_set.patch
>>> md5 src_uri ;-) dbus-0.23.4.tar.gz
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3200, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1912, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2721, in doebuild
   
retval=spawnebuild("install",actionmap,mysettings,debug,alwaysdep=1,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 2304, in spawnebuild
   
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 2304, in spawnebuild
   
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 2304, in spawnebuild
   
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 2304, in spawnebuild
   
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 2320, in spawnebuild
    droppriv=actionmap[mydo]["args"][1],logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 1603, in spawn
    return portage_exec.spawn_bash(mystring,env=env,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 48, in spawn_bash
    return spawn(args,env=env,opt_name=opt_name,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 83, in spawn
   
mypid.extend(spawn(('tee','-i','-a',logfile),returnpid=True,fd_pipes={0:pr,1:1,2:2}))
TypeError: iteration over non-sequence



# emerge info

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r7 i686)
=================================================================
System uname: 2.6.12-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.12.0_pre3
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.11
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer -momit-leaf-frame-pointer"
CHOST="i686-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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer -momit-leaf-frame-pointer"
DISTDIR="/packages"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://ftp.gentoo.or.kr/ "
LINGUAS="en ja"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 X a52 aalib acpi alsa anthy apm arts audiofile avi berkdb bitmap-fonts
bluetooth bmp cdparanoia cdr cjk crypt cups curl dbus divx4linux dvd dvdread
emboss encode esd ethereal exif fam fame ffmpeg firefox flac font-server
foomaticdb fortran gd gdbm gif gphoto2 gpm gtk gtk2 guile hal imagemagick imlib
ipv6 java jikes jpeg junit kde kdepim ldap libcaca libg++ libwww live
logitech-mouse mad mailwrapper mikmod mjpeg mmx mmxext mng motif mozilla mp3
mpeg mplayer nas ncurses network nls nonfsv4 nptl nptlonly nsplugin ogg
oggvorbis openal opengl oss pam pcmcia pda pdflib perl png postgres python qt
quicktime readline real rtc samba scanner sdl slang slp smime speex spell sse
sse2 ssl svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode
usb v4l v4l2 vidix vorbis wifi win32codecs xine xml xml2 xprint xscreensaver xv
xvid zlib linguas_en linguas_ja userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 teidakankan 2005-08-01 18:46:35 UTC
Switching back to the older version of shadow may have fixed the emerge problem,
but I'm having others.  I can only run programs in /usr/sbin and /usr/local/sbin
as root by including the complete path.  Programs run fine (i.e. just the
command only) after running "source /etc/profile".  I've decided to reinstall
shadow-4.0.11.1 and run "source /etc/profile" until this gets strightened out.
Comment 2 Matteo Settenvini 2005-08-01 21:32:41 UTC
Yes, I'm experiencing this too. Also for me, sourcing /etc/profile fixes it
temporarily.
Comment 3 teidakankan 2005-08-01 22:31:38 UTC
If I reinstall "both" the x86 released versions of pam-login and shadow then
everything works fine/normal when su'ing to root.  
Comment 4 Jouni Rinne 2005-08-02 04:04:30 UTC
Same problem here, after running 'emerge -uDN world' today the root's PATH was
messed up; it was reset to /usr/local/bin:/usr/bin:/bin. I solved this by
reverting to the previously installed versions of pam-login (3.17) and shadow
(4.0.7-r4). I also downgraded baselayout to 1.11.13, but I don't know whether it
affected anything (probably not :) )
Comment 5 SpanKY gentoo-dev 2005-08-02 06:42:15 UTC
do you guys `su` or `su -` ?
Comment 6 teidakankan 2005-08-02 09:30:58 UTC
`su` here
Comment 7 SpanKY gentoo-dev 2005-08-02 10:32:32 UTC
`su` does not change your environment

the proper method is `su -` ... see if that works
Comment 8 Alexander Minges 2005-08-02 13:08:39 UTC
"su -" fixes the problem for me.
Comment 9 teidakankan 2005-08-02 13:43:09 UTC
Ok... "su -" makes everything better.  After 4 years of doing it "wrong" I guess
I finally got caught.  Seems like I would have picked up on that somewhere,
sometime.  If they would only put man pages in pill form.  Sorry to bother you
guys.  Thanks!
Comment 10 Ian Hubbertz 2005-08-03 02:00:24 UTC
This seems to affect also some init-scripts.

For me, network initialisation does not work since yesterday. (dhcp works,
static network configuration not).
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-03 11:58:34 UTC
Checked with upstream, adding SUPATH and PATH back for pam enabled builds is OK.
 Fixed in -r1.
Comment 12 Max Powers 2005-08-03 21:23:04 UTC
Now SU segfaults.
Comment 13 SpanKY gentoo-dev 2005-08-03 21:47:56 UTC
yeah, see Bug 101282
Comment 14 Ramon Casha 2005-08-06 06:39:30 UTC
*** Bug 101519 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2005-08-07 14:56:33 UTC
*** Bug 101632 has been marked as a duplicate of this bug. ***