Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recompile the whole system?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Randy Kahle
n00b
n00b


Joined: 10 Jan 2003
Posts: 22
Location: Tucson, AZ

PostPosted: Fri Jan 17, 2003 3:38 am    Post subject: Recompile the whole system? Reply with quote

If I have a complete, fully installed and running system and then I want to go back, change the global optimization flags and re-compile *everything*, what steps do I need to follow?
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Fri Jan 17, 2003 4:01 am    Post subject: Reply with quote

After you change your settings in make.conf run the following command:
Code:

emerge --emptytree world

Then go rent 3 or 4 good video games because it's going to be a long wait...
Back to top
View user's profile Send private message
BlackBart
Apprentice
Apprentice


Joined: 07 Oct 2002
Posts: 252

PostPosted: Fri Jan 17, 2003 4:34 am    Post subject: Reply with quote

checkout rmerge2 (allows resuming)
Back to top
View user's profile Send private message
Randy Kahle
n00b
n00b


Joined: 10 Jan 2003
Posts: 22
Location: Tucson, AZ

PostPosted: Fri Jan 17, 2003 12:05 pm    Post subject: kernel tainted message Reply with quote

I took the step you described (emerge --emptytree world) and after twelve hours of work, it stopped and logged messages in /tmp/sandbox-rp-pppoe-3.5-25044.log which contains:

open_wr: /proce/sys/kernel/tainted

six times.

I did recompile the kernel.

Did I do something wrong with the kernel?

What do the meesages mean?

How do I proceed?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Jan 17, 2003 5:09 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Sat Jan 18, 2003 4:05 am    Post subject: Reply with quote

I have a script that will emerge all packages in the file ./packages individually.

Setup:

Copy this shell script to ~/world-rebuild/rebuild
Code:

#!/bin/bash
echo '================================================================================' >> log
echo `date`': Cleaning /var/tmp/portage:' >> log
rm -rf /var/tmp/portage/* 2>&1 >> log
echo `date`': Cleaned /var/tmp/portage' >> log

if [ $1 ]
then
    echo "renicing myself to $1"
    renice $1 $$
fi

for pkg in `cat packages`
do
    if ([ ! -f db/${pkg}/.done ] || [ ! -f /var/db/pkg/${pkg}/CONTENTS ])
    then
   echo -en "\aemerge of =${pkg} in 5 "
        sleep 1
        echo -n "4 "
        sleep 1
        echo -n "3 "
   sleep 1
   echo -n "2 "
   sleep 1
   echo -n "1 "
   sleep 1
   echo "now!"
        (echo `date`": Emerging =${pkg}." >> log && 
         emerge =${pkg} &&
         mkdir -p db/${pkg} &&
         touch db/${pkg}/.done &&
         echo `date`": Package =${pkg} emerged!" >> log) ||
        (echo `date`": Could not emerge package =${pkg}!" >> log &&
         echo ${pkg} >> failed)
        echo "emerge of =${pkg} completed."
    fi
done

Then, make the file ~/world-rebuild/packages, like this:
Code:

cd /var/db/pkg
find * -type d -mindepth 1 > ~/world-rebuild/packages

Run the script as root like so:
Code:

cd ~/world-rebuild/
./rebuild
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Sat Jan 18, 2003 5:52 am    Post subject: Reply with quote

Not sure if this is so, but a cursory glance at that script implies that it will individually emerge every package that is currently installed on your system - including those that were installed as dependencies.

Wouldn't that have the effect of moving all packages into world and the consequent annoyances with emerge -u?
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Sun Jan 19, 2003 3:14 am    Post subject: Reply with quote

Precisely. That is exactly what I like, having everything put into the world file. I just finished rebuilding my entire system with -Os instead of -O3. A few things failed, I'm still trying to figure out what is wrong with prelink.

Of course, you could back up the world file before starting.
Back to top
View user's profile Send private message
ClippyHater
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 247
Location: Wisconsin

PostPosted: Sun Feb 16, 2003 12:35 am    Post subject: Reply with quote

zhenlin, did you ever discover what was wrong with prelink? I just installed Gentoo RC2 with -march=Pentium4 -Os -pipe, and prelink doesn't emerge for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
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