Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 154107

Summary: baselayout-1.13.0_alpha5 fails during pkg_postinst with USE=bootstrap
Product: Gentoo Linux Reporter: Christian Heim (RETIRED) <phreak>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Don't create /proc

Description Christian Heim (RETIRED) gentoo-dev 2006-11-05 01:32:02 UTC
I tried to bootstrap a new stage3 today, and while running that baselayout-1.13.0_alpha5 failed within postinst.

 * Creating dev nodes
install -m 0755 -d "/var/tmp/portage/baselayout-1.13.0_alpha3/image/"/dev
ln -snf ../sbin/MAKEDEV "/var/tmp/portage/baselayout-1.13.0_alpha3/image/"/dev/MAKEDEV \
        ( curdir=`pwd` ; cd "/var/tmp/portage/baselayout-1.13.0_alpha3/image/"/dev ; \
                suffix= ; \
                case "x86" in \
                        arm*)    suffix=-arm ;; \
                        alpha)   suffix=-alpha ;; \
                        amd64)   suffix=-i386 ;; \
                        hppa)    suffix=-hppa ;; \
                        ia64)    suffix=-ia64 ;; \
                        m68k)    suffix=-m68k ;; \
                        mips*)   suffix=-mips ;; \
                        ppc*)    suffix=-powerpc ;; \
                        s390*)   suffix=-s390 ;; \
                        sh*)     suffix=-sh ;; \
                        sparc*)  suffix=-sparc ;; \
                        x86)     suffix=-i386 ;; \
                esac ; \
                $curdir/sbin/MAKEDEV generic$suffix ; \
                $curdir/sbin/MAKEDEV sg scd rtc hde hdf hdg hdh ; \
                $curdir/sbin/MAKEDEV input audio video ; \
        )
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `( curdir=`pwd` ; cd "/var/tmp/portage/baselayout-1.13.0_alpha3/image/"/dev ; \'
make: *** [dev-Linux] Error 2

!!! ERROR: sys-apps/baselayout-1.13.0_alpha3 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_preinst
  ebuild.sh, line 1038:   Called pkg_preinst
  baselayout-1.13.0_alpha3.ebuild, line 108:   Called die

!!! failed to create /dev nodes
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-11-05 03:23:05 UTC
Yeah, so post an error from alpha5.

That code is from alpha3, and the portage tempdir thinks it is too
Comment 2 Christian Heim (RETIRED) gentoo-dev 2006-11-05 04:01:40 UTC
Roy, you are absolutely right ... here's what is currently failing with _alpha5:

make: Entering directory `/var/tmp/portage/baselayout-1.13.0_alpha5/temp'
# Create base filesytem layout
for x in /boot /home /mnt /root /usr/local/bin /usr/local/sbin /usr/local/share/doc /usr/local/share/man /var/lock /var/run /dev /proc /sys ; do \
                install -m 0755 -d "/"$x || exit $? ; \
                touch "/"$x/.keep || exit $? ; \
        done
touch: cannot touch `//proc/.keep': No such file or directory
make: *** [layout] Error 1
make: Leaving directory `/var/tmp/portage/baselayout-1.13.0_alpha5/temp'
 
!!! ERROR: sys-apps/baselayout-1.13.0_alpha5 failed.
Call stack:
  ebuild.sh, line 1527:   Called pkg_postinst
  baselayout-1.13.0_alpha5.ebuild, line 146:   Called die
 
!!! failed to layout filesystem
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-11-05 05:08:41 UTC
Created attachment 101267 [details, diff]
Don't create /proc

See if this fixes
Comment 4 Christian Heim (RETIRED) gentoo-dev 2006-11-05 05:26:45 UTC
(In reply to comment #3)
> Created an attachment (id=101267) [edit]
> Don't create /proc
> 
> See if this fixes

Yup, that works.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-11-06 06:39:14 UTC
Fixed in -r1