Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge hangs while unpacking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Fri Feb 28, 2003 8:05 am    Post subject: emerge hangs while unpacking Reply with quote

Hi everybody,
computer: ibook2 running Gentoo PPC 1.2
Yesterday I upgraded portage to portage-2.0.47-r7, I finished etc-update (updating make.globals along the way), and I ran regenworld (which apparently was necessary)
Now I cannot emerge any ebuild, it just sits there doing nothing (using no CPU time) while it says it's Unpacking the source
Code:
$ emerge -u wireless-tools
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/wireless-tools-24 to /
>>> md5 ;-) wireless_tools.24.tar.gz
>>> Unpacking source...
>>> Unpacking wireless_tools.24.tar.gz to /var/tmp/portage/wireless-tools-24/work

And it does this with all packages.

emerge info gives me:
Code:
Portage 2.0.47-r7 (default-ppc-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7)
=================================================================
System uname: 2.4.20-rc4-ben0 ppc
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="oss dvd xv libwww nls mitshm qt kde ppc gnome-libs gdbm berkdb slang readline bonobo java guile mysql postgres X sdl tcpd esd oggvorbis gnome gtk motif opengl mozilla gtkhtml tcltk imlib ncurses gif jpeg png tiff ssl pam crypt socks5 truetype freetype xml xml2 pdflib perl python samba gpm dga"
COMPILER=""
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
ACCEPT_KEYWORDS="ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox buildpkg ccache userpriv usersandbox"

Has anybody got any idea what's going on here ?

Thanks and greetings,

Jan.
Back to top
View user's profile Send private message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Fri Feb 28, 2003 3:15 pm    Post subject: Reply with quote

I have nailed it down to the function unpack() in /usr/sbin/ebuild.sh
when I change the code:
Code:
gz|Z|z)
    if [ "${y}" == "tar" ]; then
        tar xz --no-same-owner -f ${DISTDIR}/${x} || die "$myfail"
    else
        gzip -dc ${DISTDIR}/${x} > ${x%.*} || die "$myfail"
    fi
    ;;
to
Code:
gz|Z|z)
    if [ "${y}" == "tar" ]; then
        echo "===> Starting !!"
        tar xz --no-same-owner -f ${DISTDIR}/${x} || die "$myfail"
        echo "===> Done !!"
    else
        gzip -dc ${DISTDIR}/${x} > ${x%.*} || die "$myfail"
    fi
    ;;

I get:
Code:
$ emerge -u wireless-tools
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/wireless-tools-24 to /
>>> md5 ;-) wireless_tools.24.tar.gz
>>> Unpacking source...
>>> Unpacking /usr/portage/distfiles/wireless_tools.24.tar.gz to
/var/tmp/portage/wireless-tools-24/work
===> Starting !!

And that's it. I am completely lost at this one.
Meanwhile "ps axf" gives me (among other things) (line are a bit shortened):
Code:
1372 tty2 S 0:00 login -- root
1373 tty2 S 0:00  \_ -bash
1719 tty2 S 0:01      \_ python2.2 /usr/bin/emerge -u wireless-tools
1759 tty2 S 0:00          \_ [wireless-tools-24] sandbox /usr/sbin/ebuild.sh unpack
1760 tty2 S 0:00              \_ /bin/bash /usr/sbin/ebuild.sh unpack
1766 tty2 S 0:00                  \_ /bin/bash /usr/sbin/ebuild.sh unpack
1779 tty2 S 0:00                  |   \_ tar xz --no-same-owner -f /usr/portage/distfiles/wireless_tools.24.tar.gz
1780 tty2 S 0:00                  |       \_ gzip -d
1767 tty2 S 0:00                  \_ tee -a /var/log/emerge/999-wireless-tools-24.log
So tar and and gzip are just hanging there. These executables haven't changed since 24 Dec.
Also if I try "tar xz --no-same-owner -f /usr/portage/distfiles/wireless_tools.24.tar.gz" manually it works without a problem.
Anybody any idea? (please)

Greetings,

Jan.


Last edited by BlueShift on Fri Feb 28, 2003 11:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Fri Feb 28, 2003 3:22 pm    Post subject: Reply with quote

I did a few searches on https://bugs.gentoo.org to see if I could find anything about this, but didn't turn anything up.
You might want to file one, and post a link here.
It seems like you've diagnosed quite a few symptoms.
If anyone can reproduce this, post here.

Also, if you are posting here be sure to manually enter returns.
The code segments above will not wrap.
This is simply something that phpBB doesn't do well.
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Feb 28, 2003 3:37 pm    Post subject: Reply with quote

I haven't run into this on x86. I wouldn't think that matters since the tar command seems to be where its hanging. Have you tried an emerge sync?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Fri Feb 28, 2003 6:16 pm    Post subject: Reply with quote

OK, removing "sandbox" and "usersandbox" from the FEATURES in make.conf made it work. Should I cross-post it to the PPC forum (what's the nice way of cross-posting BTW (if there is such a thing))

running 'emerge sync' made no difference, but in any case that would not touch any binaries or scripts right?

I'll submit a bug report now.

Greetings,

Jan.
Back to top
View user's profile Send private message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Fri Feb 28, 2003 6:59 pm    Post subject: Reply with quote

bug submitted
https://bugs.gentoo.org/show_bug.cgi?id=16575

Jan.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum