Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] baselayout-2.6: non-empty dir found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Thu May 31, 2018 11:24 am    Post subject: [solved] baselayout-2.6: non-empty dir found Reply with quote

Tried to install baselayout-2.6 and stumbled in this error:

Code:
 * Package:    sys-apps/baselayout-2.6
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux split-usr userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Converting /lib from a dir to a symlink
 * ERROR: sys-apps/baselayout-2.6::gentoo failed (setup phase):
 *   non-empty dir found where we needed a symlink: /lib


Of course /lib is a directory since the Multilib layout upgrade.

Selected profile is:
Code:
  [16]  default/linux/amd64/17.0/desktop (stable) *


Did I miss a step, when I switched the profile and did the multilib upgrade steps?


Last edited by musv on Thu May 31, 2018 4:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Thu May 31, 2018 12:31 pm    Post subject: Reply with quote

musv wrote:
Did I miss a step, when I switched the profile and did the multilib upgrade steps?

It looks like, SYMLINK_LIB=no layout (17.1 profiles)
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Thu May 31, 2018 1:45 pm    Post subject: Reply with quote

Strange:

I have 2 computers with multilib layout. Both use the same profile (17.0 desktop). I haven't set SYMLINK_LIB on any machine. The notebook works, the desktop machine not.

After setting SYMLINK_LIB=no in the make.conf of my desktop machine, compiling works.

Any explanation for this strange behaviour?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Thu May 31, 2018 2:55 pm    Post subject: Reply with quote

first, you should stop speaking about multilib layout, because both layouts qualify as this.

if you want speak about the one with symlink, dunno, try some <17.1 profile, or "base" one (some would say "old", but i'm against this, as it would balance against 17.1 that would be "new", where 17.1 is not "new" way, but a "testing")
and if you want speak about non symlink layout, just speak about 17.1

I try to point you to it, and your explanation is that 17.1 do set SYMLINK_LIB=no but you have shown use you are using [16] default/linux/amd64/17.0/desktop (stable) and of course a 17.0 profile is not a 17.1 profile.


To make the story short, and to describe what i have point to you: you are using a 17.0 profile, to use the non symlink layout, you should use a 17.1 profile.
If you cannot select that profile it is because it is mask (because it's only for tester), you can either unmask it and use it, or go back to use a 17.0.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Thu May 31, 2018 4:48 pm    Post subject: Reply with quote

Ok, thanks. Got it.

I'm using currently profile 17.0 and set:
Code:
SYMLINK_LIB=no

at the end of the make.conf. Everything works fine now.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Thu May 31, 2018 6:22 pm    Post subject: Reply with quote

musv wrote:
Ok, thanks. Got it.

I'm using currently profile 17.0 and set:
Code:
SYMLINK_LIB=no

at the end of the make.conf. Everything works fine now.

Sooner or later this will break things. I recommend to convert properly to profile 17.1 and switch to it. (Maybe you already converted, since otherwise it is hardly possible that /lib is a directory and not a symlink).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Jun 01, 2018 2:38 pm    Post subject: Reply with quote

mv wrote:
I recommend to convert properly to profile 17.1 and switch to it.

Or drop it, we have no real idea if this will survive testing.
But i agree with mv that you should make a real choice and use either 17.0 or 17.1 layout but with appropriate profile.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Jun 01, 2018 4:31 pm    Post subject: Reply with quote

krinn wrote:
Or drop it, we have no real idea if this will survive testing.

Developers have already been asked to switch to it. It was now more than 6 months in experimental status with practically no bugs reported (with essentially one exception which is obsolete meanwhile). I am rather sure that experimental status will be dropped, soon. Actually, I use it also since several months (since it helps to detect errors) and had not a single problem so far.

Anyway, this was not the reason for my suggestion: If musv already has no symlink and thus has apparently already converted his system, it is much easier to keep it than trying to switch back.
In contrast to switching to 17.1, there is no tool for switching back (only an emergency backroll if there should be serious problems during an initial testing). Of course, one could write such a tool, but I doubt that anybody will spend this time.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3254
Location: de

PostPosted: Sat Jun 02, 2018 6:08 am    Post subject: Reply with quote

Yes, I've already converted my lib directories some weeks ago. I wasn't just aware about the 17.1 profile.

Currently it works with 17.0 and SYMLINK_LIB=no. When 17.1 becomes stable, I'll change to 17.1 and will remove the SYMLINK_LIB variable.

Back to my start posting:
For some reason I had already put SYMLINK_LIB=no to my make.conf. That's why it worked.

Are there any other differences except the lib-directory between 17.0 and 17.1?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Sat Jun 02, 2018 7:09 am    Post subject: Reply with quote

musv wrote:
When 17.1 becomes stable, I'll change to 17.1 and will remove the SYMLINK_LIB variable.

No reason to wait for this: The only other change is that LIBDIR_x86 is "lib" in 17.1 while it is "lib32" in 17.0, i.e. lib32 is gone.
While it is disputable whether this second change was a good idea, any other setup is unsupported.
Things would break for you similar as for SYMLINK_LIB if you converted your system and do not change this variable. The breakage is less visible, since obviously only packages with ABI_X86=32 are involved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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