| View previous topic :: View next topic |
| Author |
Message |
Randy Kahle n00b

Joined: 10 Jan 2003 Posts: 22 Location: Tucson, AZ
|
Posted: Fri Jan 17, 2003 3:38 am Post subject: Recompile the whole system? |
|
|
| 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 |
|
 |
drakonite l33t


Joined: 02 Nov 2002 Posts: 768 Location: Lincoln, NE
|
Posted: Fri Jan 17, 2003 4:01 am Post subject: |
|
|
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 |
|
 |
BlackBart Apprentice


Joined: 07 Oct 2002 Posts: 252
|
Posted: Fri Jan 17, 2003 4:34 am Post subject: |
|
|
| checkout rmerge2 (allows resuming) |
|
| Back to top |
|
 |
Randy Kahle n00b

Joined: 10 Jan 2003 Posts: 22 Location: Tucson, AZ
|
Posted: Fri Jan 17, 2003 12:05 pm Post subject: kernel tainted message |
|
|
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 |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 16029 Location: Colorado
|
Posted: Fri Jan 17, 2003 5:09 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ lolgov. 'cause where we're going, you don't have civil liberties.
In Loving Memory
1787 - 2008 |
|
| Back to top |
|
 |
zhenlin Veteran

Joined: 09 Nov 2002 Posts: 1361
|
Posted: Sat Jan 18, 2003 4:05 am Post subject: |
|
|
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 |
|
 |
aja l33t


Joined: 26 Aug 2002 Posts: 705 Location: Edmonton, Canada
|
Posted: Sat Jan 18, 2003 5:52 am Post subject: |
|
|
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 |
|
 |
zhenlin Veteran

Joined: 09 Nov 2002 Posts: 1361
|
Posted: Sun Jan 19, 2003 3:14 am Post subject: |
|
|
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 |
|
 |
ClippyHater Apprentice


Joined: 06 Nov 2002 Posts: 247 Location: Wisconsin
|
Posted: Sun Feb 16, 2003 12:35 am Post subject: |
|
|
| 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 |
|
 |
|