Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41287 - missing /etc/make.profile/make.defaults in stage1-x86-selinux-20040207.tar.bz2
Summary: missing /etc/make.profile/make.defaults in stage1-x86-selinux-20040207.tar.bz2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 12:50 UTC by Patrick Lang
Modified: 2004-02-14 19:10 UTC (History)
0 users

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 Patrick Lang 2004-02-11 12:50:06 UTC
I downloaded and extracted stage1-x86-selinux-20040207.tar.bz2 to /mnt/gentoo as instructed.  I get errors when I run env-update and emerge sync that prevent installation from continuing.

Reproducible: Always
Steps to Reproduce:
1. Install per the guide at http://www.gentoo.org/proj/en/hardened/selinux/selinux-x86-install.xml through step 8.
2. mount the proc and selinux filesystems per step 8 of the install guide, copy resolv.conf as instructed, then chroot
3. run env-update, you will get an error (see actual results)
4. the error suggests running emerge sync to fix it.  This is the next step suggested in install guide step #8 as well.  Run emerge sync, it will cause the same error.

Actual Results:  
livecd gentoo # md5sum stage1-x86-selinux-20040207.tar.bz2.tar
a4b4977f47ab2c4ffe17220af304ef7e  stage1-x86-selinux-20040207.tar.bz2.tar
livecd gentoo # rm stage1-x86-selinux-20040207.tar.bz2.tar
livecd gentoo # ls
bin   dev  home  lost+found  opt   root  selinux  tmp  var
boot  etc  lib   mnt         proc  sbin  sys      usr
livecd gentoo # mount -t proc proc /mnt/gentoo/proc
livecd gentoo # mount -t selinuxfs none /mnt/gentoo/selinux
livecd gentoo # cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
livecd gentoo # chroot /mnt/gentoo/ /bin/bash
livecd / # env-update
!!! Parse error in /etc/make.profile/make.defaults. Never modify this file.
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)
livecd / # source /etc/profile
livecd / # emerge sync
!!! Parse error in /etc/make.profile/make.defaults. Never modify this file.
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)


Expected Results:  
I expected to have sync'ed the portage tree so that I could continue my stage1
install of Hardened Gentoo.

I verified the md5sum against the one on the ftp.  It matched.

/etc/make.profile is linked to ../usr/portage/profiles/selinux-x86-1.4

../usr/portage does not exist!
Comment 1 Patrick Lang 2004-02-11 13:03:07 UTC
I get the same results with stage2.  The md5sum matched as well.
Comment 2 Patrick Lang 2004-02-11 13:16:40 UTC
The stage3 tarball is incomplete:
./usr/lib/perl5/5.8.2/i386-linux/auto/Encode/TW/TW.bs
./usr/lib/perl5/5.8.2/i386-linux/auto/Encode/TW/TW.so

bzip2: Data integrity error when decompressing.
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

It matches the md5sum on the mirror.
Comment 3 Patrick Lang 2004-02-11 13:17:31 UTC
/usr/portage does not exist in the part of stage3 that did extract however.
Comment 4 Chris PeBenito (RETIRED) gentoo-dev 2004-02-11 18:30:04 UTC
This actually came up as a bug in portage during stage building.  Until I put a fixed set of stages on the mirrors, you can work around it bydoing:

mkdir -p /usr/portage/profiles/selinux-x86-1.4/
touch /usr/portage/profiles/selinux-x86-1.4/make.defaults
Comment 5 Chris PeBenito (RETIRED) gentoo-dev 2004-02-14 19:10:32 UTC
20040211 stages on the mirrors with the updated portage to fix this