Well, my Thursday went to shit in a hurry - how was everyone else's?taipan67 wrote:...I want to try two different ideas; The first is a Stage1/3 on a 2005.1-athlon-xp tarball (which i've heard might be buggy), upgrading 'gcc' to 3.4.3.20050110, which should definitely need the 'gcc-config' run. As i prefer not to modify my CFLAGS during such installs, i should be able to just use the script, without an initial manual-emerge to allow for tweaking...
The second idea i want to test is as above, but on a Jackass! 2005.0-athlon-xp tarball, to find out if updating switches it over to the 2005.1 profile. This alternative would already have the required gcc-version in situ, but the toolchain will still get rebuilt to modify glibc's locales. This will therefore test the gcc-config part of the script in a situation where no adjustment is needed.
I'll check back before i start (in the morning), in case anyone spots any howling errors in my grand-plan that i've been too blinkered to notice...
Code: Select all
emwrap -ets && emwrap -etsCode: Select all
# Skip entire 'gcc-config' section if only fetching sources:
if [ ! -n "$fetch_flag" ] ; then
......
fi #<--End of the 'fetchonly' exclusion-check.
Code: Select all
# /usr/local/bin/emwrap -pDNus
--pretend (p)
--deep (D)
--newuse (N)
--update (u)
--system (s)
Building a list of EMERGE WORLD packages...
Building a list of EMERGE SYSTEM packages...
Building a list of (emptytree) TOOL CHAIN packages...
A Tool Chain config-file or portage update was found.
'emerge'ing these packages will only occur with a TC build:
binutils-config-1.8-r5
No primary Tool Chain updates are available.
1 of 0 SYSTEM packages:
system_list.txt
These are the packages that I would merge, in order:
Calculating dependencies
emerge: there are no ebuilds to satisfy "=system_list.txt".
Warning: emwrap: system_list.txt failed to build. 'emerge' exited code: 0.
NO SYSTEM or WORLD packages were 'emerge'd.
Packages that failed to 'emerge':
system_list.txt
Done!Code: Select all
# /usr/local/bin/emwrap -pDNuts
--pretend (p)
--deep (D)
--newuse (N)
--update (u)
--toolchain (t)
--system (s)
Building a list of EMERGE WORLD packages...
Building a list of EMERGE SYSTEM packages...
Building a list of (emptytree) TOOL CHAIN packages...
A Tool Chain config-file or portage update was found.
'emerge'ing these packages will only occur with a TC build:
binutils-config-1.8-r5
No primary Tool Chain updates are available.
NO TOOL CHAIN packages were 'emerge'd.
1 of 0 SYSTEM packages:
system_list.txt
These are the packages that I would merge, in order:
Calculating dependencies
emerge: there are no ebuilds to satisfy "=system_list.txt".
Warning: emwrap: system_list.txt failed to build. 'emerge' exited code: 0.
NO SYSTEM or WORLD packages were 'emerge'd.
Packages that failed to 'emerge':
system_list.txt
Done!This one cropped up before, on this post.sfp-a7x wrote:I ran into a bug in emwrap v4.2...
Code: Select all
emerge sync 2>&1 && emwrap.sh -wuD 2>&1Ah, I glossed over that previous posting a long time ago so I didn't realize it was the same bug. Sorry for the duplicate. However, it's not an upgrade to portage -- it's an upgrade to binutils-config (1.8-r4 to 1.8-r5). I imagine updating binutils-config by itself first would make the problem go away. Perhaps this bug only shows up when there are updates to the toolchain packages that don't require a rebuild of the whole toolchain?taipan67 wrote:This one cropped up before, on this post.sfp-a7x wrote:I ran into a bug in emwrap v4.2...
The solution was to manually emerge the update for 'portage' first, by the look of things...
I do see it when I do the --pretend. Also I remember seeing it flash by during the actual emerge. I can confirm in a few more hours as I'm updating two more machines using emwrap and I'm capturing the emerge output. Will let you know when that is done.maguire wrote: Also, please let me know if the gcc re-build (where gcc-config is automatically run) works. As far as I know, that aspect remains untested.
Yes, distcc should be disabled during TC updates as it can create weird problems if the machines have different versions of gcc (the Gentoo distcc doc talks about this, too).sam_i_am wrote: On another note, at work, I have these two machines (my desktop and a server) which use distcc to help each other on emerges. After reading all these stuff about TC updates, I have a feeling that distcc should be disabled for TC updates.
For this update (which includes gcc-3.4.4-r1, and linux-headers) I've disabled distcc on both machines to be on the safe side. What do you'll think?
Sam
Heh heh. I can certainly relate to that (and damn proud tooPseud wrote: 6. Feel damn kicked about the gazillion complies your machines did over the past few days/weeks
Code: Select all
... end of gcc merge ...
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* Regenerating GNU info directory index...
* Processed 6 info files.
BEFORE selecting new GCC:
[1] i686-pc-linux-gnu-3.4.4 *
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
**********************************************************************
I'm going to execute: # gcc-config i686-pc-linux-gnu-3.4.4
**********************************************************************
Kill me NOW, or forever hold your peace!
(sleeping for 15 seconds...)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
(continuing...)
* Switching to i686-pc-linux-gnu-3.4.4 compiler ... [ ok ]
AFTER selecting new GCC:
[1] i686-pc-linux-gnu-3.4.4 *
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
5 of 7 TOOL CHAIN packages:
...[snipped rest of emerge output]

Code: Select all
#gcc-config i686-pc-linux-gnu-3.4.4
i686-pc-linux-gnu-3.4.4-nopie
i686-pc-linux-gnu-3.4.4-nopiessp
i686-pc-linux-gnu-3.4.4-nossp Code: Select all
#emwrap.sh -twp
...
Calculating dependencies
!!! The short ebuild name "=binutils" is ambiguous. Please specify
!!! one of the following fully-qualified ebuild names instead:
sys-devel/binutils
cross-i686-pc-linux-gnu/binutils
binutils failed to build. Stoping script.
Then how does emwrap.sh behaves if i have two such progs installed and listed in the world file (supposing thesehielvc wrote:There are several progs in the portage tree that have the same name but different category.
As i mentioned cross-i686-pc-linux-gnu was installed by crossdev as a cross compilerhielvc wrote:Yours though isnt in my portage tree "cross-i686-pc-linux-gnu "
Of course i could merge it that way, but it would be nice if emwrap.sh could take care of this case.hielvc wrote:you would noramlly emerge these by " emerge =cross-i686-pc-linux-gnu/binutils " or "emerge =sys-devel/binutils "
Code: Select all
# emwrap -pvuD system tool
--pretend (p)
--verbose (v)
--update (u)
--deep (D)
--system
--toolchain
Building a list of EMERGE WORLD packages...
Building a list of EMERGE SYSTEM packages...
Building a list of (emptytree) TOOL CHAIN packages...
No primary Tool Chain updates are available.
NO TOOL CHAIN packages were 'emerge'd.
1 of 0 SYSTEM packages:
system_list.txt
These are the packages that I would merge, in order:
Calculating dependencies
emerge: there are no ebuilds to satisfy "=system_list.txt".
Warning: emwrap: system_list.txt failed to build. 'emerge' exited code: 0.
NO SYSTEM or WORLD packages were 'emerge'd.
Packages that failed to 'emerge':
system_list.txtCode: Select all
emerge -ep $(eix -I -c -n|awk '{print $2;}'|grep -v ^[0-9])
This doesn't exactly work atm...hielvc wrote: To get the current version of my script emwrap.sh