Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Reinstall + switch to KDE (http://www.linux-archive.org/gentoo-user/702400-reinstall-switch-kde.html)

Nikos Chantziaras 09-10-2012 04:43 PM

Reinstall + switch to KDE
 
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.

Andrey Moshbear 09-10-2012 04:53 PM

Reinstall + switch to KDE
 
On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras <realnc@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.

Volker Armin Hemmann 09-10-2012 05:46 PM

Reinstall + switch to KDE
 
Am Montag, 10. September 2012, 12:53:41 schrieb Andrey Moshbear:
> On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras <realnc@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

Nikos Chantziaras 09-10-2012 06:28 PM

Reinstall + switch to KDE
 
On 10/09/12 19:53, Andrey Moshbear wrote:

On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras <realnc@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.

Alan McKinnon 09-10-2012 07:36 PM

Reinstall + switch to KDE
 
On Mon, 10 Sep 2012 12:53:41 -0400
Andrey Moshbear <andrey.vul@gmail.com> wrote:

> On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
> <realnc@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.mckinnon@gmail.com

Canek Peláez Valdés 09-10-2012 07:44 PM

Reinstall + switch to KDE
 
On Mon, Sep 10, 2012 at 2:36 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Mon, 10 Sep 2012 12:53:41 -0400
> Andrey Moshbear <andrey.vul@gmail.com> wrote:
>
>> On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
>> <realnc@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

Frank Steinmetzger 09-10-2012 11:45 PM

Reinstall + switch to KDE
 
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.vul@gmail.com> wrote:
>
> > On Mon, Sep 10, 2012 at 12:43 PM, Nikos Chantziaras
> > <realnc@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.

Samuraiii 09-11-2012 08:27 AM

Reinstall + switch to KDE
 
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 <realnc@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.dojo@gmail.com

GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)

Full copy
of public timestamp block
signatures id-15751 (from 2012-09-11 06:00:06) is included in
header of html.

Neil Bothwick 09-11-2012 09:42 AM

Reinstall + switch to KDE
 
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?

Samuraiii 09-11-2012 11:56 AM

Reinstall + switch to KDE
 
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.dojo@gmail.com

GnuPG key ID: 0x80C752EA
(obtainable on http://pgp.mit.edu)

Full copy
of public timestamp block
signatures id-15752 (from 2012-09-11 09:00:08) is included in
header of html.


All times are GMT. The time now is 05:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.