
Code: Select all
# emerge os-headers glibc binutils gccCode: Select all
emerge -e systemCode: Select all
emerge os-headers gcc glibc binutilsIf I bootstrap my system this way, should I put USE="-* build bootstrap" before the emerge commands?rac wrote:I also became a bit disillusioned with bootstrap.sh when it refused to allow me to build without USE=multilib, so I used this:I run this twice to lock down my toolchain, making sure it was all built with itself, and then go for the emerge -e world.Code: Select all
# emerge os-headers glibc binutils gcc
Yes, you have to install portage before emerging system.Primera wrote:Such as...do you have to install the portage snapshot from the livecd before?Code: Select all
emerge -e system
Like rac said, if you aren't satisfied with the stage3's bootstrap job, then you would run that emerge command twice before running the emerge -e system.Primera wrote:How doesfit into all this?Code: Select all
emerge os-headers gcc glibc binutils
Modify your USE flags in /etc/make.conf before emergeing system and if you're going to re-bootstrap, do it before then too (I think, someone correct me if I'm wrong). Same goes for syncing portage.Primera wrote:When would we change USE settings and such, as well as when would we do an emerge sync?
No need. Since you are starting from a stage3ball, you don't need to avail yourself of the trickery involved with those USE. They are designed to inform ebuilds that they must tread carefully, crippling themselves if necessary, to function in the limited environment of a stage1ball.If I bootstrap my system this way, should I put USE="-* build bootstrap" before the emerge commands?
Code: Select all
emerge os-headers glibc portage binutils gccCode: Select all
emerge glibc binutils gccCode: Select all
(w/ CFLAGS="-O0 -march=<arch> -pipe)
emerge -v linux26-headers binutils glibc gcc
(change CFLAGS="-O2 -march=<arch> -fomit-frame-pointers -fetc... -pipe)
emerge -v linux26-headers binutils glibc gccNo. You could use -O0 for the first pass if you want, assuming that all those packages will actually build with that flag, which I haven't checked. gcc must generate the same code regardless of what flags itself was built with, otherwise it will fail its internal consistency checks. I would say that any change in how binutils behaves depending on CFLAGS would likewise be a binutils bug.dirtyepic wrote:does it have to be build _with_ an optimized toolchain to acheive that?
From pg21kimchi_sgCode: Select all
env-update && source /etc/profile && emerge -C linux-headers && emerge linux26-headers && emerge --nodeps --oneshot gcc-config && emerge --oneshot glibc binutils gcc && gcc-config 2 && env-update && . /etc.profile && emerge -e system && emerge syslog-ng xinetd grub hotplug coldplug vixie-cron reiserfsprogs reiser4progs sysfsutils udev dhcpcd && emerge --nodeps acpid ntp && rc-update add syslog-ng default && rc-update add net.eth0 default && rc-update add vixie-cron default && rc-update add xinetd default && rc-update add sshd default && rc-update add coldplug default && rc-update add hotplug default && rc-update acpid default
there are two things that i still don't understand about this proposed one-liner. maybe i'm missing something, or maybe i'm seeing something that nobody else is seeing. maybe this isn't evident because we're used to thinking about this in the context of a Stage 1 tarball, but with a Stage 3 tarball the context is different.hielvc wrote:The latest one liner from Installing Gentoo - The Developers Method - Stage1 and NPTL modified for a stage3 installFrom pg21kimchi_sgCode: Select all
env-update && source /etc/profile && emerge -C linux-headers && emerge linux26-headers && emerge --nodeps --oneshot gcc-config && emerge --oneshot glibc binutils gcc portage && emerge -e system && emerge syslog-ng xinetd grub hotplug coldplug vixie-cron reiserfsprogs reiser4progs sysfsutils udev dhcpcd && emerge --nodeps acpid ntp && rc-update add syslog-ng default && rc-update add net.eth0 default && rc-update add vixie-cron default && rc-update add xinetd default && rc-update add sshd default && rc-update add coldplug default && rc-update add hotplug default && rc-update acpid default
- You don't necessarily get the same versionslogon wrote:Well one question came up in my mind and I can't find the answer myself. You say, there are some packages that are not in the /var/db/pkg list when doing stage1. But aren't they not in the list, so that portage doesn't complain when compiling the same version again? And where is the problem, if the same version gets compiled it should produce the same files, which overwrite the other ones, and then are listed in the package list. Or did i get something wrong here?