Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout-2.3 emerge failure [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 4:00 pm    Post subject: baselayout-2.3 emerge failure [solved] Reply with quote

John R. Graham wrote:
pakk,

baselayout isn't fully "fixed" until you can successfully emerge it. Try
Code:
emerge -1vq baselayout
to see if you can do that. @world update only after that.

- John


right

Code:
* Converting /usr/lib from a dir to a symlink
 * ERROR: sys-apps/baselayout-2.3::gentoo failed (setup phase):
 *   non-empty dir found where we needed a symlink: /usr/lib


Split from gcc setup [SOLVED] as this was really a good demarcation for a new topic. — JRG


Last edited by pakk on Sun Jan 15, 2017 12:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Fri Jan 13, 2017 4:07 pm    Post subject: Reply with quote

move everything in /usr/lib to /usr/lib64 then remove /usr/lib and let baselayout create a symlink

and that will probably fix the global problem of broken apps
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Fri Jan 13, 2017 4:46 pm    Post subject: Reply with quote

pakk,

Read
Code:
cp --help
you are missing a option.
cp works on files. If you want it to copy directories too, you need to tell it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 4:49 pm    Post subject: Reply with quote

xaviermiller wrote:
move everything in /usr/lib to /usr/lib64 then remove /usr/lib and let baselayout create a symlink

and that will probably fix the global problem of broken apps


now i lost emerge and all
Quote:
emerge -lvq baselayout
bash: /usr/bin/emerge: Aucun fichier ou dossier de ce type


fortunately I made a backup of /lib
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jan 13, 2017 5:33 pm    Post subject: Reply with quote

You may need to run ldconfig after you rename the directory. Anyhow, all these problems would be much easier to fix if we knew what was done to mess it up like this.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 7:18 pm    Post subject: Reply with quote

Code:
# cp /usr/lib/* /usr/lib64/
# rm -r /lib
# emerge -lvq baselayout
bash: /usr/bin/emerge: Aucun fichier ou dossier de ce type
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8718
Location: ~Brussels - Belgique

PostPosted: Fri Jan 13, 2017 7:22 pm    Post subject: Reply with quote

Create the lib symlink to lib64
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Fri Jan 13, 2017 7:40 pm    Post subject: Reply with quote

pakk

Code:
# cp /usr/lib/* /usr/lib64/
# rm -r /lib


I really hope you didn't do that.
/usr/lib/ contains directories that will not be copied by that cp command. You need cp -a or cp -r to copy directories.

Did you intend to operate on /lib or /usr/lib?
They are not the same place.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 8:11 pm    Post subject: Reply with quote

NeddySeagoon wrote:
pakk

Code:
# cp /usr/lib/* /usr/lib64/
# rm -r /lib


I really hope you didn't do that.
/usr/lib/ contains directories that will not be copied by that cp command. You need cp -a or cp -r to copy directories.

Did you intend to operate on /lib or /usr/lib?
They are not the same place.


i read back, in fact he told me to move, so i did, then remove usr/lib/.

how to make a symlink if /usr/lib is removed ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Fri Jan 13, 2017 8:23 pm    Post subject: Reply with quote

pakk,

These details are important. mv would have worked.
Code:
ln -s <real_path> <symbolic_path>


For /usr/lib its
Code:
cd /usr
ln -s lib64 lib


Code:
ls -l
will include.
Code:
lib -> lib64

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 10:08 pm    Post subject: Reply with quote

it's dead, now I dont have wifi driver anymore.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 10:42 pm    Post subject: Reply with quote

and now is back....i havent changed anything....
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Fri Jan 13, 2017 11:04 pm    Post subject: Reply with quote

baselayout is installed.

last step.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sat Jan 14, 2017 11:03 am    Post subject: Reply with quote

pakk,

Now you can do
Code:
emerge -e @world --keep-going
and fix any failures once emerge stops.
If there were failures, it will leave a list on the screen.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Sat Jan 14, 2017 11:49 am    Post subject: Reply with quote

NeddySeagoon wrote:
pakk,

Now you can do
Code:
emerge -e @world --keep-going
and fix any failures once emerge stops.
If there were failures, it will leave a list on the screen.


what is the diff between @system and @world ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sat Jan 14, 2017 12:00 pm    Post subject: Reply with quote

pakk,

@world is everything in /var/lib/portage/world and all of the dependences too.
It will include @system as a result.
You can look at /var/lib/portage/world if you want to but you must not edit it.

You can see the difference for yourself. Compare the outputs of
Code:
emerge -ep @system

and
Code:
emerge -ep @world


Neither of those commands will install anything.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Sat Jan 14, 2017 12:15 pm    Post subject: Reply with quote

ok thanks.

at the end of compilation, is there a log that lists failures ?

and after fixing all, do I have to run:

Code:
# dispatch-conf
# revdep-rebuild -i
# eclean-dist -id
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sat Jan 14, 2017 12:43 pm    Post subject: Reply with quote

pakk,

The list of failures, if there are any, will be on screen.
Code:
dispatch-conf
Yes.

Code:
revdep-rebuild
is old. Its been replaced with
Code:
emerge @preserved-rebuild

Portage will tell you if you need to run that but its in place of revdep-rebuild.
Older versions of portage used to leave your system broken until revdep-rebuild completed. Newer versions keep the old code around, so everything still works and asks you to run emerge @preserved-rebuild to tidy up and remove the old code. revdep-rebuild is not incorrect.

eclean-dist will remove all the source tarballs you no longer need. Thats a good thing but not essential.

There is another command too.
Code:
emerge --depclean -p
Over time, abandoned dependencies (orphaned packages) build up on your system.
This command will remove them, (without the -p). However, it may want to remove things that you want to keep so study the list before you run it.

There are one or two things to be aware of. Only the latest versions are kept.
So, if you have a newer gcc than the one you are using, your active gcc will be removed. The fix for that is gcc-config but you have used that command before.
The same is true of your kernel sources.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Sun Jan 15, 2017 11:15 am    Post subject: Reply with quote

NeddySeagoon wrote:
pakk,

The list of failures, if there are any, will be on screen.


yes but I use gentoo in CLI mode without desktop, and then without terminal with scroll, so I can't see all messages.

Compilation is over now and I just see 2 messages.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Jan 15, 2017 11:44 am    Post subject: Reply with quote

pakk,

You can scroll up with Shift+PageUp and down with Shift+PageDown

What are the messages?
The messages that matter are right at the end of the output.

I would expect something about files in /etc need to be updated and about emerge @preserved-rebuild
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Sun Jan 15, 2017 12:30 pm    Post subject: Reply with quote

NeddySeagoon wrote:
pakk,

You can scroll up with Shift+PageUp and down with Shift+PageDown

What are the messages?
The messages that matter are right at the end of the output.

I would expect something about files in /etc need to be updated and about emerge @preserved-rebuild

thanks for tips but shift + pgUP has no effect.
messages say: run fix_thing.sh if you use an old version of gcc; install libtxn if you want to have a better render with 8w3d something.
actually no failures.
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Sun Jan 15, 2017 12:40 pm    Post subject: Reply with quote

now im gonna reboot my system. solved
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 15, 2017 1:18 pm    Post subject: Reply with quote

I noticed in your other thread you have no -march set in CFLAGS. This is suboptimal, you may want to set it to native and rebuild.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pakk
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2016
Posts: 143

PostPosted: Sun Jan 15, 2017 1:23 pm    Post subject: Reply with quote

Jaglover wrote:
I noticed in your other thread you have no -march set in CFLAGS. This is suboptimal, you may want to set it to native and rebuild.


I have to study deeply CFLAGS, thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Jan 15, 2017 6:33 pm    Post subject: Reply with quote

pakk,

You will spend longer rebuilding than the time you will save after the rebuild.
If you change your CFLAGS, the changes will take effect with updates.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum