Re: [gentoo-user] Re: howto recover gcc from another system
On Thu, 24 Feb 2011 19:59:36 -0600, Dale wrote: > I'm pretty sure I lost python once and buildsyspkg didn't > keep a binary copy around. Just try to emerge something without python > installed. :-( emerge paludis, it's an alternative package manager that doesn't use Python. You don't have to use it, just keep it on your system in case you ever break portage (again). -- Neil Bothwick When you go to court you are putting yourself in the hands of 12 people that were not smart enough to get out of jury duty. signature.asc Description: PGP signature
Re: [gentoo-user] Re: howto recover gcc from another system
Am Fri, 25 Feb 2011 01:29:29 + (UTC) schrieb James : > Dale gmail.com> writes: > > > > > Besides gcc, what is a good list > > > of critical software to use guickpkg > > > as to keep backup binaries? > > > > FEATURES="buildpkg sandbox fixpackages parallel-fetch --keep-going" > > I saw this (FEATURES="buildpkg") googling around. > > 1. What is a good list of software to use buildpkg on? > > 2. Once you decide those packages, where do you put > the list? AFAIK, there is no list that portage uses. However, maybe you could use quickpkg for this? You could script it, e.g. write the list yourself (it also accepts sets as input argument) and feed it to quickpkg periodically. Maybe that or something similar would work for you? > Surely I do not wish to use buildpkg on every installed > package, a few or maybe the entire @system. I have not > found the answer to [1] or [2]. You can restrict it to the system set by using buildsyspkg instead of buildpkg (see make.conf(5)). [...] HTH -- Marc Joliet signature.asc Description: PGP signature
Re: [gentoo-user] Re: howto recover gcc from another system
James wrote: Dale gmail.com> writes: Besides gcc, what is a good list of critical software to use guickpkg as to keep backup binaries? FEATURES="buildpkg sandbox fixpackages parallel-fetch --keep-going" I saw this (FEATURES="buildpkg") googling around. 1. What is a good list of software to use buildpkg on? 2. Once you decide those packages, where do you put the list? Surely I do not wish to use buildpkg on every installed package, a few or maybe the entire @system. I have not found the answer to [1] or [2]. This is muddy, because supposedly the "profile" is suppose to protect the key packages for --depclean ? [2] default/linux/amd64/10.0/desktop * So is gcc protected somehow by the "profile"? I think not.. Still googling but not find any clear answers, mostly cruft from years ago James Short version, man make.conf for more info. buildpkg, keeps a binary of EVERYTHING installed. Now buildsyspkg only keeps binaries for system packages. If you have plenty of disk space, I would use buildpkg. If you have a lappy or are short of disk space, then buildpkg would work. Just keep in mind that some packages may not get saved. After thinking about this, I'm pretty sure I lost python once and buildsyspkg didn't keep a binary copy around. Just try to emerge something without python installed. :-( There is no list for you to keep. Portage does that. That help? Dale :-) :-)
[gentoo-user] Re: howto recover gcc from another system
Dale gmail.com> writes: > > Besides gcc, what is a good list > > of critical software to use guickpkg > > as to keep backup binaries? > FEATURES="buildpkg sandbox fixpackages parallel-fetch --keep-going" I saw this (FEATURES="buildpkg") googling around. 1. What is a good list of software to use buildpkg on? 2. Once you decide those packages, where do you put the list? Surely I do not wish to use buildpkg on every installed package, a few or maybe the entire @system. I have not found the answer to [1] or [2]. This is muddy, because supposedly the "profile" is suppose to protect the key packages for --depclean ? [2] default/linux/amd64/10.0/desktop * So is gcc protected somehow by the "profile"? I think not.. Still googling but not find any clear answers, mostly cruft from years ago James
Re: [gentoo-user] Re: howto recover gcc from another system
James wrote: James tampabay.rr.com> writes: copy the gcc-*.tbz2 package from $PKGDIR on that to the broken system, then emerge -1k gcc. emergeing gcc now (thanks Neil!) One last question: so I've learned the hard way of the value of quickpkg. Besides gcc, what is a good list of critical software to use guickpkg as to keep backup binaries? James I have this set in my make.conf: FEATURES="buildpkg sandbox fixpackages parallel-fetch --keep-going" Yours may vary but the buildpkg part is what you need. There is also buildsyspkg but in the past, I had it to not keep some system packages. If you use either of those, man eclean. That will keep the cruft out. Dale :-) :-)
[gentoo-user] Re: howto recover gcc from another system
James tampabay.rr.com> writes: > > copy the gcc-*.tbz2 package from > > $PKGDIR on that to the broken system, > > then emerge -1k gcc. emergeing gcc now (thanks Neil!) One last question: so I've learned the hard way of the value of quickpkg. Besides gcc, what is a good list of critical software to use guickpkg as to keep backup binaries? James
Re: [gentoo-user] Re: howto recover gcc from another system
On Thu, 24 Feb 2011 21:29:50 + (UTC), James wrote: > > quickpkg gcc on the other system, > > copy the gcc-*.tbz2 package from > > $PKGDIR on that to the broken system, > > OK I ran 'quickpkg gcc' got this: > > ls /usr/portage/packages/sys-devel > gcc-4.1.2.tbz2 gcc-4.1.2.tbz2.28680 gcc-4.3.4.tbz2 gcc-4.4.4-r2.tbz2 > > now run scp ./*tbz2 ://usr/portage/packages/sys-devel You only need to copy the file for the version you want to install. > or somewhere in /usr/portage/sys-devel/gcc > > (where to copy which *tbz2 file(s) to? Copy to /usr/portage/packages/sys-devel, the same location as they are in on the good system. Unless you have redefined PKGDIR. > Ignore copying the 'gcc-4.1.2.tbz2.28680' file? Yes, it looks like a failed attempt to package an old version. -- Neil Bothwick Walking on water and writing software to specification is easy if they're frozen. signature.asc Description: PGP signature
[gentoo-user] Re: howto recover gcc from another system
Neil Bothwick digimed.co.uk> writes: > > GUIDANCE on that is most welcome. > quickpkg gcc on the other system, > copy the gcc-*.tbz2 package from > $PKGDIR on that to the broken system, OK I ran 'quickpkg gcc' got this: ls /usr/portage/packages/sys-devel gcc-4.1.2.tbz2 gcc-4.1.2.tbz2.28680 gcc-4.3.4.tbz2 gcc-4.4.4-r2.tbz2 now run scp ./*tbz2 ://usr/portage/packages/sys-devel or somewhere in /usr/portage/sys-devel/gcc (where to copy which *tbz2 file(s) to? Ignore copying the 'gcc-4.1.2.tbz2.28680' file? > copy the gcc-*.tbz2 package from > $PKGDIR on that to the broken system, > then emerge -1k gcc. Got this part
Re: [gentoo-user] Re: howto recover gcc from another system
james wrote: Dale gmail.com> writes: I lost the only copy of gcc on the system I would be glad to email you the binary from mine if it would help. Dale, I have several system to copy from (thanks anyway). Is that all I have to do, just copy over the binary? then rebuild gcc via the local ebuild package? (using the copied over binary) that's all? locate gcc (just a snippet) /usr/x86_64-pc-linux-gnu/gcc-bin /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4 /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/c++ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/cpp /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/g++ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gcc /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gccbug /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gcov /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gfortran So copy over /usr/x86_64-pc-linux-gnu/gcc-bin to the same location only? Copy over all of them? If I recall correctly, you put the binary in /usr/portage/packages/sys-devel/ and then emerge -Ka =sys-devel/gcc-4.4.4-r2 and it should just unpack and install gcc. I have done this before but I was using my own binary that portage made sure was put in the right place. This also assumes you are using the portage defaults as to the location of the portage directory and such. Mine looks like this: root@fireball / # emerge -Ka =sys-devel/gcc-4.4.4-r2 These are the packages that would be merged, in order: Calculating dependencies... done! [binary R] sys-devel/gcc-4.4.4-r2 Would you like to merge these packages? [Yes/No] Note it says binary? If it says something else, then there may be a problem. It's been a while but I think all that is right. Dale :-) :-)
[gentoo-user] Re: howto recover gcc from another system
Florian Philipp binarywings.net> writes: > > Since there is no gcc-bin to emerge (ha ha) > > I guess I'll have to copy over the binary of > > orsys-devel/gcc-4.4.4-r2 from another system. > > GUIDANCE on that is most welcome. > [...] OK, if this the first step, then I'm confused. /usr/bin has this: -rwxr-xr-x 1 root root 14512 Jan 14 2010 gcc lrwxrwxrwx 1 root root62 Nov 6 14:08 gcc-4.4.4 -> /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4/x86_64-pc-linux-gnu-gcc -rwxr-xr-x 1 root root 21709 Sep 22 2009 gcc-config -rwxr-xr-x 1 root root 14512 Jan 14 2010 x86_64-pc-linux-gnu-gcc lrwxrwxrwx 1 root root62 Nov 6 14:08 x86_64-pc-linux-gnu-gcc-4.4.4 -> /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4/x86_64-pc-linux-gnu-gcc So can I just rebuild the links, as it is fine in /usr/bin: file gcc gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped Or do I use quickpkg to fix it, since the binary is in place? (confused here so detail is appreciated!) I already downloaded gcc-4.4.4 but it will not build, so the symbolic link being used is broken? gcc-config -l * gcc-config: Active gcc profile is invalid! [1] x86_64-pc-linux-gnu-4.4.4 I understand that quickpkg can be used to protect gcc in the future, but, I think I need to use the /usr/bin binary to rebuild the links and then the entire (gcc) package from sources? confused, James
[gentoo-user] Re: howto recover gcc from another system
Florian Philipp binarywings.net> writes: > This should get you going: > http://www.gossamer-threads.com/lists/gentoo/user/168951?do=post_view_threaded#168951 ok, after reading I tried this: emerge --usepkg gcc which did not work. Can you be more specific on the syntax? It looks like this thread will prevent accidential deletion of gcc, in the future, but, I have not gleaned from the thread, nor from the emerge pages the correct (syntactically) version of how to use quickpkg to fix the problem. Do I first copy over the binary(ies) for gcc from another system? > Was your profile setting messed up? Maybe on an unmounted device? > AFAIK, the system set is defined by your profile. GCC is right in the > "base" file for every profile: > ${PORTDIR}/profiles/base/packages [2] default/linux/amd64/10.0/desktop * No unmounted device, just the internal ide drive in the laptop It was installed back in 2004 so there may be cruft in the laptop, since it's been dual boot Gentoo XP for a long time. it's not the first time I've run depclean on it though.
[gentoo-user] Re: howto recover gcc from another system
Dale gmail.com> writes: > > I lost the only copy of gcc on the system > I would be glad to email you the binary from mine if it would help. Dale, I have several system to copy from (thanks anyway). Is that all I have to do, just copy over the binary? then rebuild gcc via the local ebuild package? (using the copied over binary) that's all? locate gcc (just a snippet) /usr/x86_64-pc-linux-gnu/gcc-bin /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4 /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/c++ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/cpp /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/g++ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gcc /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gccbug /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gcov /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gfortran So copy over /usr/x86_64-pc-linux-gnu/gcc-bin to the same location only? Copy over all of them?