Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How often do you bootstrap?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

How often do you bootstrap?
Never
47%
 47%  [ 41 ]
Once
34%
 34%  [ 30 ]
Every 3 Months
3%
 3%  [ 3 ]
Every 6 Months
1%
 1%  [ 1 ]
Every Year
1%
 1%  [ 1 ]
New Version in Toolchain
2%
 2%  [ 2 ]
New Major Version in Toolchain
10%
 10%  [ 9 ]
Total Votes : 87

Author Message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Sun Jan 20, 2008 5:10 pm    Post subject: How often do you bootstrap? Reply with quote

I usually bootstrap any time there is a new major version on a package in the toolchain. Does anyone else do this?
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Jan 20, 2008 5:13 pm    Post subject: Reply with quote

SLBMEH,

Just once at install time, since I still use stage 1
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Old School
Apprentice
Apprentice


Joined: 20 Nov 2004
Posts: 252
Location: West Bank of the Coast Fork

PostPosted: Sun Jan 20, 2008 5:17 pm    Post subject: Reply with quote

With a major version change.
_________________
www.otw20.com

The further a society drifts from truth, the more it will hate those who speak it.
George Orwell
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Jan 20, 2008 5:19 pm    Post subject: Reply with quote

The last time I used bootstrap.sh was sometime in 2004. I've only installed Gentoo once since then, and I used a stage 3 instead. I've never used it on an installed system either.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Sun Jan 20, 2008 5:28 pm    Post subject: Reply with quote

My first install was a stage 1, I had nothing but problems using stage 3. I've used stage 1 ever since. Do you think bootstrapping more often is more beneficial?
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
8086
n00b
n00b


Joined: 12 Dec 2007
Posts: 52

PostPosted: Sun Jan 20, 2008 5:47 pm    Post subject: Reply with quote

I used to perform stage1s when they were still officially supported; now I perform stage 3 installs and just `emerge -e system && emerge -e world` at some point after the first boot.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Sun Jan 20, 2008 6:34 pm    Post subject: Reply with quote

Really bootstrap (as in bootstrap.sh), I did ~3 times...

My first installed, which blew... (stage1 install)
My second installed, 1 week after the first (stage1 install)
and some when in summer 2004, when I got a new notebook (another stage1 install)

every since, I used stage3...

rebuilding my toolchain may happen after a "minor" glibc upgrade (i.e 2.6 to 2.7)- or when I am in the mood.
Back to top
View user's profile Send private message
sLumpia
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2006
Posts: 120
Location: troller land

PostPosted: Sun Jan 20, 2008 7:07 pm    Post subject: Reply with quote

once, my latest (and i hope my last) Gentoo install on this pc 8)
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Sun Jan 20, 2008 7:46 pm    Post subject: Reply with quote

Whenever I hopelessly break my computer and decide it's easier to reinstall Gentoo than to figure how the hell I broke it and then fix it.

Also known as about once a year... :oops:
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Sun Jan 20, 2008 9:37 pm    Post subject: Reply with quote

Ian wrote:
Whenever I hopelessly break my computer and decide it's easier to reinstall Gentoo than to figure how the hell I broke it and then fix it.

Also known as about once a year... :oops:


I tend to do that if it's been a long time since the last major update in the toolchain. :(
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 706
Location: Billings, MT, USA

PostPosted: Sun Jan 20, 2008 9:39 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Just once at install time, since I still use stage 1

'bout time I find someone that still does a Stage1. I seem to get a lecture everytime I mention it.

I do Stage1's on all my systems, even on my P-MMX 200's and my PII-350 through 450's.. Just takes awhile..
Back to top
View user's profile Send private message
warrens
Apprentice
Apprentice


Joined: 04 Jan 2005
Posts: 239
Location: Don't Tread On Me!

PostPosted: Sun Jan 20, 2008 10:15 pm    Post subject: Reply with quote

Simba7 wrote:
NeddySeagoon wrote:
Just once at install time, since I still use stage 1

'bout time I find someone that still does a Stage1. I seem to get a lecture everytime I mention it.

I do Stage1's on all my systems, even on my P-MMX 200's and my PII-350 through 450's.. Just takes awhile..

I also use Stage 1, but I use my own script based on LFS instead of bootstrap.sh. Since Stage 3 installation is the only officially supported method though all of a Stage 1 users catch a lot of flac, but what I find funny is that I never had any problems with things such as expat, while those with Stage 3 ran into problems.
_________________
The BIGGER the GOVERNMENT, the smaller the citizen.

DON'T TREAD ON ME!!!

My Bias #1
The best government is the government that governs least.
Back to top
View user's profile Send private message
hopspitfire
n00b
n00b


Joined: 20 Aug 2007
Posts: 9
Location: US

PostPosted: Wed Jan 23, 2008 4:05 am    Post subject: Reply with quote

I have my own script based on Fiordland's script and a guide @ www.xerq.net

I'll bootstrap every 3-6 months to keep in practice, even on random, deprecated machines at work when I have nothing better to do.
I'm a UNIX admin so I gotta keep up with this stuff.
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 812

PostPosted: Wed Jan 23, 2008 6:30 am    Post subject: Reply with quote

theres no real need to bootstrap GCC updates are few and far between, as you upgrade GCC and such eventually with enough time all your programs will be eventually upgraded with the new GCC, unless you really really need one of those new features its not really necessary at all
_________________
“Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”

― Plato
Back to top
View user's profile Send private message
bbee
n00b
n00b


Joined: 16 Jun 2007
Posts: 26

PostPosted: Wed Jan 23, 2008 10:18 pm    Post subject: Reply with quote

I don't see why you would ever need to bootstrap more than once (and even then only if you're doing a stage 1 install).
Code:
$ genlop -l | head -n 3
 * sys-apps/portage

     Thu Apr  3 03:36:19 2003 >>> sys-apps/portage-2.0.47-r10

This is one of the reasons I use gentoo, zero reinstalls. I've uprgaded the MB 2 times, and I did an in-place arch change (to move to x86_64) two years ago. Even while doing the arch change I didn't run bootstrap.sh, just emerge -e world after grabbing a binary toolchain from somewhere (two reboots total). My PVR/mythtv box is from March '04, same story (except it's still on i686).
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Jan 23, 2008 10:48 pm    Post subject: Reply with quote

Do you mean actually bootstrapping the system, or just recompiling the toolchain, then all other packages? I put down never since I always start from a stage3. I have however recompiled my toolchain and entire system a handful of times over the years.

This actually brings up a point I was curious about recently. If I upgrade a major toolchain component (gcc, glibc, etc...) am I always required to recompile my entire system? I'm asking because I usually don't do this (except with really big changes). I never really noticed any problems, but I'm wondering if there are hidden consequences.
Back to top
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Thu Jan 24, 2008 3:52 am    Post subject: Reply with quote

mikegpitt wrote:
Do you mean actually bootstrapping the system, or just recompiling the toolchain, then all other packages? I put down never since I always start from a stage3. I have however recompiled my toolchain and entire system a handful of times over the years.

This actually brings up a point I was curious about recently. If I upgrade a major toolchain component (gcc, glibc, etc...) am I always required to recompile my entire system? I'm asking because I usually don't do this (except with really big changes). I never really noticed any problems, but I'm wondering if there are hidden consequences.


Sometimes there are consequences, as in some program won't work, so if it is hidden from you, it really isn't a consequence.
Usually in the upgrade guides, they tell you, you can do such and such, and you should be alright, or you can emerge -e world and you will definitely be alright.

I usually follow the minimum, considering that if I do have a problem, I can always do the emerge -e world.
_________________
jim
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Thu Jan 24, 2008 4:24 am    Post subject: Reply with quote

mikegpitt wrote:
Do you mean actually bootstrapping the system, or just recompiling the toolchain, then all other packages? I put down never since I always start from a stage3. I have however recompiled my toolchain and entire system a handful of times over the years.

This actually brings up a point I was curious about recently. If I upgrade a major toolchain component (gcc, glibc, etc...) am I always required to recompile my entire system? I'm asking because I usually don't do this (except with really big changes). I never really noticed any problems, but I'm wondering if there are hidden consequences.


As in the bootstrap.sh that was done in the now unsupported stage1 install. I now use two custom scripts since it's unsupported either way. The first does a bootstrap builds some of my key applications, then rebuilds all of my servers one by one prompting for configuration changes which allows me to make sure it's running properly before going to the next step. This is used on my development environment. And the second does the same but instead of doing the last part individually it rsyncs my virtual configurations from the development environment, as they have now been updated and tested. This one is used on my production servers.
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
kicker69101
n00b
n00b


Joined: 18 Apr 2003
Posts: 62

PostPosted: Thu Jan 24, 2008 9:11 am    Post subject: Reply with quote

I haven't touch bootstrap.sh for years. Oh man that brings back the days. The booze, the drugs, and no women! jk ;)

As per rebuilding my whole system (ie emerge -e system && emerge -e world), I do that after glibc or gcc get updated. Other then that I just use revdep-rebuild.
_________________
if forum != "OTW":
post_count++;

and yes the world is going to end!
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Thu Jan 24, 2008 5:21 pm    Post subject: Reply with quote

I haven't run bootstrap since my last stage1 install a few years ago. What would be the advantage of running bootstrap anyway? I'm not sure I understand what bootstrapping really does.
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Thu Jan 24, 2008 7:37 pm    Post subject: Reply with quote

ryker wrote:
I haven't run bootstrap since my last stage1 install a few years ago. What would be the advantage of running bootstrap anyway? I'm not sure I understand what bootstrapping really does.


It builds your toolchain. I use it to eliminate the need to emerge -e system twice or emerge -e system && emerge -e world. I update my system then I bootstrap then rebuild world. It saves a little bit of time.
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Fri Jan 25, 2008 7:39 am    Post subject: Reply with quote

i bootstrapped 15 times so far.

12 failures when learning gentoo. and then 3 times, mostly when i messed up my system, or when i was changing a pc.

nowadays there are more tools to keep it tidy so i guess i will boostrap again when i decide to switch to 64bit system.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Jan 25, 2008 8:55 am    Post subject: Reply with quote

SLBMEH wrote:
ryker wrote:
I haven't run bootstrap since my last stage1 install a few years ago. What would be the advantage of running bootstrap anyway? I'm not sure I understand what bootstrapping really does.


It builds your toolchain. I use it to eliminate the need to emerge -e system twice or emerge -e system && emerge -e world. I update my system then I bootstrap then rebuild world. It saves a little bit of time.


Gcc bootstraps itself when it is built unless you explicitly pass it the --disable-bootstrap parameter (which the ebuild does not). Look the beginning of Section 0.1 of the official docs for gnu gcc: http://gcc.gnu.org/install/build.html

More concretely, gcc uses a 3-stage fashion bootstrap mechanism. It is built once with the system compiler, then it rebuilds itself with itself. And finally, it builds itself with the itself that was built by itself (understood? :P ). Also, know that, the output of gcc (the object code it will create) is completely independent of any external factor. It just depends on the version of gcc and the flags you pass to it. So, really, gcc-4.1 will always output the same object code for the same source code, regardless the compiler you used to compile it.

Gcc autorecompiles itself with itself and again, and that's not a gentoo thing, but a gcc thing that is made by design.

Then, you build glibc, and that's all and your toolchain is up to date. If you are really worried about that, you can recompile the whole world once with the new glibc and compiler, but I find it kind of useless to do so, unless needed for some reason (for example, ABIs breaking due to glibc or libstdc++-v3 doing funky things as it always does).

The time you are investing on this stuff is much more than any performance gain that you think you are going to get by recompiling your world twice. And you don't even need to use bootstrap.sh (though, to tell the truth, I only used that script once from stage1, and don't remember how much stuff does it build). Anyway, if you think that it is worth the trouble, no one can stop you from doing so.

There is an infinite count of threads like this trying to re-discover America, when the truth is really simple: don't waste your time. Google a bit and search the forums and you will find plenty of them, just one as a sample:

http://www.mail-archive.com/gentoo-user%40lists.gentoo.org/msg36367.html
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Fri Jan 25, 2008 4:26 pm    Post subject: Reply with quote

I was curious what bootstrap.sh actually builds. bootstrap.sh has a --pretend optoin, which shows what it will do. Here's the output on my x86_64 system for anyone else who is curious.
Code:

  [[ (1/3) Configuring environment ]]
 * GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
 * PORTDIR="/usr/portage"
 * DISTDIR="/usr/portage/distfiles"
 * PKGDIR="/usr/portage/packages"
 * PORTAGE_TMPDIR="/var/tmp"
 * CFLAGS="-march=nocona -O2 -fomit-frame-pointer -mfpmath=sse -pipe"
 * CHOST="x86_64-pc-linux-gnu"
 * CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -mfpmath=sse -pipe"
 * MAKEOPTS="-j5"
 * ACCEPT_KEYWORDS="amd64"
 * FEATURES="buildpkg ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
 * STAGE1_USE="nptl nptlonly unicode"
-------------------------------------------------------------------------------
  [[ (2/3) Updating portage ]]

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/sandbox-1.2.18.1-r2 [1.2.17]
[ebuild     U ] sys-apps/portage-2.1.3.19 [2.1.3.9] USE="build*"
-------------------------------------------------------------------------------
  [[ (3/3) Emerging packages ]]

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-libs/libxml2-2.6.30-r1  USE="-debug -doc -ipv6 -python -readline -test"
[ebuild     U ] sys-kernel/linux-headers-2.6.23-r2 [2.6.21]
[ebuild   R   ] sys-apps/texinfo-4.8-r5
[ebuild     U ] sys-devel/binutils-2.18-r1 [2.17-r1]
[ebuild   R   ] sys-devel/gcc-4.1.2  USE="bootstrap* -fortran* -mudflap*"
[ebuild     U ] sys-libs/glibc-2.6.1 [2.5-r4] USE="-gd% -vanilla%"
[ebuild     U ] sys-apps/baselayout-1.12.10-r5 [1.12.9-r2] USE="bootstrap*"
[ebuild   R   ] sys-libs/zlib-1.2.3-r1
[ebuild     U ] sys-devel/gettext-0.17 [0.16.1-r1] USE="-acl% -openmp%"
-------------------------------------------------------------------------------


So it looks like it does build things a little different. Some of the use flags, cflags and environment variables are changed for bootstrapping. I assume these are changed to ensure a sane build process?
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Fri Jan 25, 2008 6:04 pm    Post subject: Reply with quote

ryker,

Partly and partly to break circular dependancies and when you are bootstrapping, you don't want to suck in anything you don't need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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