Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 101047
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: teidakankan@gmail.com
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 101047 depends on: Show dependency tree
Bug 101047 blocks: 101282
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-08-01 17:42 0000
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 From teidakankan@gmail.com 2005-08-01 18:46:35 0000 -------
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 From Matteo Settenvini 2005-08-01 21:32:41 0000 -------
Yes, I'm experiencing this too. Also for me, sourcing /etc/profile fixes it
temporarily.

------- Comment #3 From teidakankan@gmail.com 2005-08-01 22:31:38 0000 -------
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 From Jouni Rinne 2005-08-02 04:04:30 0000 -------
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 From SpanKY 2005-08-02 06:42:15 0000 -------
do you guys `su` or `su -` ?

------- Comment #6 From teidakankan@gmail.com 2005-08-02 09:30:58 0000 -------
`su` here

------- Comment #7 From SpanKY 2005-08-02 10:32:32 0000 -------
`su` does not change your environment

the proper method is `su -` ... see if that works

------- Comment #8 From Alexander Minges 2005-08-02 13:08:39 0000 -------
"su -" fixes the problem for me.

------- Comment #9 From teidakankan@gmail.com 2005-08-02 13:43:09 0000 -------
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 From Ian Hubbertz 2005-08-03 02:00:24 0000 -------
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 From Martin Schlemmer (RETIRED) 2005-08-03 11:58:34 0000 -------
Checked with upstream, adding SUPATH and PATH back for pam enabled builds is
OK.
 Fixed in -r1.

------- Comment #12 From Max Powers 2005-08-03 21:23:04 0000 -------
Now SU segfaults.

------- Comment #13 From SpanKY 2005-08-03 21:47:56 0000 -------
yeah, see Bug 101282

------- Comment #14 From Ramon Casha 2005-08-06 06:39:30 0000 -------
*** Bug 101519 has been marked as a duplicate of this bug. ***

------- Comment #15 From SpanKY 2005-08-07 14:56:33 0000 -------
*** Bug 101632 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug