Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-20 Thread Daniel Wagener
On Mon, 10 Sep 2012 14:44:33 -0500
Canek Peláez Valdés can...@gmail.com wrote:

 On Mon, Sep 10, 2012 at 2:36 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
  On Mon, 10 Sep 2012 12:53:41 -0400
  Andrey Moshbear andrey@gmail.com wrote:
 
  On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
  rea...@gmail.com wrote:
   On 10/09/12 19:12, Samuraiii wrote:
  
   Hello,
   because I broke me PC and I need to reinstall it I'm going ask what
   should I preserve to make install faster:
  
   So what *is* broken?  The hardware?  If you have a new PC, you
   simply need to transfer your Gentoo install to a new hard disk
   using rsync.
 
  He borked his /usr/include due to an improperly-written uninstall rule
  in a Makefile.
 
 
  if emerge -e world runs, it will fix that little oopsie
 
 No, it won't; if enough files from /usr/include are gone/borked, most
 packages will fail compilation. glibc alone has ~450 files under
 /usr/include; and basically everything depends on glibc.

hmm, my approach in that case would be to get /usr from a recent stage3 tarball 
and then running emerge -e world

but maybe there is a reason why nobody came up with that already :-/

-- 




Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-20 Thread Alan McKinnon
On Thu, 20 Sep 2012 07:44:13 +0200
Daniel Wagener st...@gmx.net wrote:

 On Mon, 10 Sep 2012 14:44:33 -0500
 Canek Peláez Valdés can...@gmail.com wrote:
 
  On Mon, Sep 10, 2012 at 2:36 PM, Alan McKinnon
  alan.mckin...@gmail.com wrote:
   On Mon, 10 Sep 2012 12:53:41 -0400
   Andrey Moshbear andrey@gmail.com wrote:
  
   On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
   rea...@gmail.com wrote:
On 10/09/12 19:12, Samuraiii wrote:
   
Hello,
because I broke me PC and I need to reinstall it I'm going
ask what should I preserve to make install faster:
   
So what *is* broken?  The hardware?  If you have a new PC, you
simply need to transfer your Gentoo install to a new hard disk
using rsync.
  
   He borked his /usr/include due to an improperly-written
   uninstall rule in a Makefile.
  
  
   if emerge -e world runs, it will fix that little oopsie
  
  No, it won't; if enough files from /usr/include are gone/borked,
  most packages will fail compilation. glibc alone has ~450 files
  under /usr/include; and basically everything depends on glibc.
 
 hmm, my approach in that case would be to get /usr from a recent
 stage3 tarball and then running emerge -e world
 
 but maybe there is a reason why nobody came up with that already :-/
 

But that would be too easy, no wonder no-one mentioned it :-)

It probably is the right thing to do though. You don;t actually know
every package that's affected, and no easy way to find out and no way
to find false negatives.

So the correct approach is to realize that a complete rebuild finishes
in a reasonable time, and then do it.


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-20 Thread William Kenworthy
On Thu, 2012-09-20 at 18:20 +0200, Alan McKinnon wrote:
 On Thu, 20 Sep 2012 07:44:13 +0200
 Daniel Wagener st...@gmx.net wrote:
 
  On Mon, 10 Sep 2012 14:44:33 -0500
  Canek Peláez Valdés can...@gmail.com wrote:
  
   On Mon, Sep 10, 2012 at 2:36 PM, Alan McKinnon
   alan.mckin...@gmail.com wrote:
On Mon, 10 Sep 2012 12:53:41 -0400
Andrey Moshbear andrey@gmail.com wrote:
   
On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
rea...@gmail.com wrote:
 On 10/09/12 19:12, Samuraiii wrote:

 Hello,
 because I broke me PC and I need to reinstall it I'm going
 ask what should I preserve to make install faster:

 So what *is* broken?  The hardware?  If you have a new PC, you
 simply need to transfer your Gentoo install to a new hard disk
 using rsync.
   
He borked his /usr/include due to an improperly-written
uninstall rule in a Makefile.
   
   
if emerge -e world runs, it will fix that little oopsie
   
   No, it won't; if enough files from /usr/include are gone/borked,
   most packages will fail compilation. glibc alone has ~450 files
   under /usr/include; and basically everything depends on glibc.
  
  hmm, my approach in that case would be to get /usr from a recent
  stage3 tarball and then running emerge -e world
  
  but maybe there is a reason why nobody came up with that already :-/
  
 
 But that would be too easy, no wonder no-one mentioned it :-)
 
 It probably is the right thing to do though. You don;t actually know
 every package that's affected, and no easy way to find out and no way
 to find false negatives.
 
...

equery check pkgname

BillK






Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Samuraiii

On 2012-09-10 20:28, Nikos Chantziaras wrote:
 On 10/09/12 19:53, Andrey Moshbear wrote:
 On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
 rea...@gmail.com wrote:
 On 10/09/12 19:12, Samuraiii wrote:

 Hello,
 because I broke me PC and I need to reinstall it I'm going ask what
 should I preserve to make install faster:

 So what *is* broken?  The hardware?  If you have a new PC, you
 simply need
 to transfer your Gentoo install to a new hard disk using rsync.

 He borked his /usr/include due to an improperly-written uninstall rule
 in a Makefile.

 Oh.  That's pretty easy to fix though.  Install a new Gentoo in a
 chroot, and then rsync its /usr/include into the real one.


The whole problem lies in that the gcc in configure phase is looking for
*/usr/local/include* and not for /usr/include...
I'm not able to find where and what has changed...

-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15751 (from 2012-09-11 06:00:06) is included in header of
html.


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Neil Bothwick
On Tue, 11 Sep 2012 10:27:35 +0200, Samuraiii wrote:

 The whole problem lies in that the gcc in configure phase is looking for
 */usr/local/include* and not for /usr/include...
 I'm not able to find where and what has changed...

env | grep usr/local

or the brute force approach

grep -r usr/local /etc


-- 
Neil Bothwick

If bankers can count, how come they have eight windows and only four
tellers?


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-11 Thread Samuraiii

On 2012-09-11 11:42, Neil Bothwick wrote:
 On Tue, 11 Sep 2012 10:27:35 +0200, Samuraiii wrote:

 The whole problem lies in that the gcc in configure phase is looking for
 */usr/local/include* and not for /usr/include...
 I'm not able to find where and what has changed...
 env | grep usr/local

 or the brute force approach

 grep -r usr/local /etc



I didn't find anything suspicious...
That's the problem:
*env | grep usr/local*
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm


*grep -r usr/local /etc (shortened version - no config-archive, php, *~
files and alike)*

/etc/csh.env:setenv MANPATH
'/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/'
/etc/csh.env:setenv XDG_DATA_DIRS
'/usr/local/share:/usr/share:/usr/share/gdm'
/etc/ld.so.conf:/usr/local/lib64
/etc/ld.so.conf:/usr/local/lib32
/etc/ld.so.conf:/usr/local/lib
/etc/prelink.conf:-h /usr/local/lib64/
/etc/prelink.conf:-h /usr/local/lib32/
/etc/prelink.conf:-h /usr/local/lib/
/etc/X11/xinit/xinitrc.d/15-xdg-data-gnome:export
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
/etc/env.d/00basic:MANPATH=/usr/local/share/man:/usr/share/man
/etc/env.d/00basic:LDPATH='/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/lib:/usr/lib:/usr/local/lib'
/etc/env.d/30xdg-data-local:XDG_DATA_DIRS=/usr/local/share
/etc/make.conf:#PORTDIR_OVERLAY=/usr/local/portage
/etc/security/pam_env.conf:#PATH   
DEFAULT=${HOME}/bin:/usr/local/bin:/bin\
/etc/security/pam_env.conf:#:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
/etc/profile.env:export
MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.4/man/'
/etc/profile.env:export
XDG_DATA_DIRS='/usr/local/share:/usr/share:/usr/share/gdm'
/etc/aide/aide.conf:/usr/local/bin Binlib
/etc/aide/aide.conf:/usr/local/sbin Binlib
/etc/aide/aide.conf:/usr/local/lib Binlib
/etc/aide/aide.conf:/usr/local/man ManPages
/etc/aide/aide.conf:/usr/local/src L
/etc/aide/aide.conf:/usr/local/include L
/etc/profile:   
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
/etc/profile:PATH=/usr/local/bin:/usr/bin:/bin:${PATH}
/etc/preload.conf:exeprefix =
!/usr/sbin/;!/usr/local/sbin/;/usr/;/opt/;/usr/libexec/;!/
/etc/zsh/zprofile:   
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
/etc/zsh/zprofile:PATH=/usr/local/bin:/usr/bin:/bin:${PATH}




-- 
Samuraiii
e-mail: samurai.no.d...@gmail.com mailto:samurai.no.d...@gmail.com
GnuPG key ID: 0x80C752EA
http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EAop=vindexfingerprint=onexact=on
(obtainable on http://pgp.mit.edu)
Full copy of public timestamp block http://publictimestamp.org
signatures id-15752 (from 2012-09-11 09:00:08) is included in header of
html.


signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Nikos Chantziaras

On 10/09/12 19:12, Samuraiii wrote:

Hello,
because I broke me PC and I need to reinstall it I'm going ask what
should I preserve to make install faster:

1. I presume that /home can be left intact.
2. I plan to backup /etc and after reinstall I'm going to diff
/etc.old with /etc to see what changed and to keep my previous changes
in config.(not to forget to change make.conf according to switch to KDE)
3. Also I'm going to keep kernel .config and /boot intact.
4. World file will be also backed-up and during reinstall I'm going to
strip it of unnecessary Gnome packages to switch to KDE.

Did I missed something? Should I take care of something else?


From your problem description, you don't seem to need to install from 
scratch.  You say your /home isn't broken, your /etc isn't broken, your 
/boot isn't broken, your world file isn't broken.


So what *is* broken?  The hardware?  If you have a new PC, you simply 
need to transfer your Gentoo install to a new hard disk using rsync.





Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Andrey Moshbear
On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras rea...@gmail.com wrote:
 On 10/09/12 19:12, Samuraiii wrote:

 Hello,
 because I broke me PC and I need to reinstall it I'm going ask what
 should I preserve to make install faster:

 So what *is* broken?  The hardware?  If you have a new PC, you simply need
 to transfer your Gentoo install to a new hard disk using rsync.

He borked his /usr/include due to an improperly-written uninstall rule
in a Makefile.



Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Volker Armin Hemmann
Am Montag, 10. September 2012, 12:53:41 schrieb Andrey Moshbear:
 On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras rea...@gmail.com 
wrote:
  On 10/09/12 19:12, Samuraiii wrote:
  Hello,
  because I broke me PC and I need to reinstall it I'm going ask what
  
  should I preserve to make install faster:
  So what *is* broken?  The hardware?  If you have a new PC, you simply need
  to transfer your Gentoo install to a new hard disk using rsync.
 
 He borked his /usr/include due to an improperly-written uninstall rule
 in a Makefile.

if he learnt from that episode he now creates packages so he can easily repair 
any damage to his system.

buildpkg FTW!

-- 
#163933



[gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Nikos Chantziaras

On 10/09/12 19:53, Andrey Moshbear wrote:

On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras rea...@gmail.com wrote:

On 10/09/12 19:12, Samuraiii wrote:


Hello,
because I broke me PC and I need to reinstall it I'm going ask what
should I preserve to make install faster:


So what *is* broken?  The hardware?  If you have a new PC, you simply need
to transfer your Gentoo install to a new hard disk using rsync.


He borked his /usr/include due to an improperly-written uninstall rule
in a Makefile.


Oh.  That's pretty easy to fix though.  Install a new Gentoo in a 
chroot, and then rsync its /usr/include into the real one.





Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Alan McKinnon
On Mon, 10 Sep 2012 12:53:41 -0400
Andrey Moshbear andrey@gmail.com wrote:

 On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
 rea...@gmail.com wrote:
  On 10/09/12 19:12, Samuraiii wrote:
 
  Hello,
  because I broke me PC and I need to reinstall it I'm going ask what
  should I preserve to make install faster:
 
  So what *is* broken?  The hardware?  If you have a new PC, you
  simply need to transfer your Gentoo install to a new hard disk
  using rsync.
 
 He borked his /usr/include due to an improperly-written uninstall rule
 in a Makefile.
 

if emerge -e world runs, it will fix that little oopsie

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Canek Peláez Valdés
On Mon, Sep 10, 2012 at 2:36 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Mon, 10 Sep 2012 12:53:41 -0400
 Andrey Moshbear andrey@gmail.com wrote:

 On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
 rea...@gmail.com wrote:
  On 10/09/12 19:12, Samuraiii wrote:
 
  Hello,
  because I broke me PC and I need to reinstall it I'm going ask what
  should I preserve to make install faster:
 
  So what *is* broken?  The hardware?  If you have a new PC, you
  simply need to transfer your Gentoo install to a new hard disk
  using rsync.

 He borked his /usr/include due to an improperly-written uninstall rule
 in a Makefile.


 if emerge -e world runs, it will fix that little oopsie

No, it won't; if enough files from /usr/include are gone/borked, most
packages will fail compilation. glibc alone has ~450 files under
/usr/include; and basically everything depends on glibc.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: Reinstall + switch to KDE

2012-09-10 Thread Frank Steinmetzger
On Mon, Sep 10, 2012 at 09:36:25PM +0200, Alan McKinnon wrote:
 On Mon, 10 Sep 2012 12:53:41 -0400
 Andrey Moshbear andrey@gmail.com wrote:
 
  On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
  rea...@gmail.com wrote:
   On 10/09/12 19:12, Samuraiii wrote:
  
   Hello,
   because I broke me PC and I need to reinstall it I'm going ask what
   should I preserve to make install faster:
  
   So what *is* broken?  The hardware?  If you have a new PC, you
   simply need to transfer your Gentoo install to a new hard disk
   using rsync.
  
  He borked his /usr/include due to an improperly-written uninstall rule
  in a Makefile.

What about a script that looks for all installed packages, looks at what they
installed into /usr/include, and extracts those files from the sources?

Just some basic thoughts:

Get all file lists for installed packages:
find /var/db/pkg/ -type f -name CONTENTS

# extract package name and version from path of the file, e.g.
/var/db/pkg/kde-base/kdelibs-4.9.1/CONTENT
would yield name = kde-base/kdelibs, version = 4.9.1

Find out the source archive file from the ebuild (there's probably a nice
python way for this. As a last resort, some one-liner like
emerge -pvfO =$name-$version|sed -n '1s_.*/\(.*\) .*_\1_gp'
which gets the filename of the first URL that emerge spits out.

Now extract all those files from the source archive whose path starts with
/usr/include in the CONTENTS file.
-- 
Gruß | Greetings | Qapla'
Please do not share anything from, with or about me with any Facebook service.

The situation is hopeless, but not serious.


signature.asc
Description: Digital signature