I have built a system from Stage1 to Stage2 (bootstrapping). I enabled USE selinux in /etc/make.conf . Now "emerge system" is failing on sys-apps/selinux-small-2003011510-r2. First, it couldn't find distfiles/policy.tgz on the default set of mirrors. After I added a few, it found it on www.coker.com.au , but gives the error: !!! policy.tgz: message digests do not match! !!! policy.tgz is corrupt or incomplete. >>> our recorded digest: [...] >>> your file's digest: [...] >>> Please delete /usr/portage/distfiles/policy.tgz and refetch. I have done this several times. Also, trying a proposed solution from the Forums, I tried: # cd /usr/portage/distfiles # ebuild policy.tgz digest This yields the error: !!! doebuild: policy.tgz does not appear to be an ebuild file. Reproducible: Always Steps to Reproduce: 1. Start from Stage1 2. cd /usr/portage 3. scripts/bootstrap.sh 4. Add "selinux" to USE in /etc/make.conf 5. emerge system Actual Results: It breaks on sys-apps/selinux-small-2003011510-r2 as described above. Expected Results: Ummmm, should have built selinux-small and moved on. :^) Can't cut&paste as it's on a brand-new installation. Probably the applicable variables are: GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" USE="x86 3dnow apm crypt cups gpm libg++ libwww mmx ncurses pam slang spell svga tcpd xml2 zlib gdbm berkdb readline ssl python acl acpi -arts -avi cdr curl -encode -gif -gnome -gtk icc -imlib -ipv6 -java -jpeg -kde mbox -mikmod -motif -mpeg -nls oav -oggvorbis -opengl -oss pcmcia -pdflib perl -png -qt -quicktime -sdl selinux sse -truetype -X -xmms -xv"
fixed digest, issue will be taken care of with selinux-base-policy