Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Protection of symlinks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Thu Jun 13, 2024 9:36 pm    Post subject: [SOLVED] Protection of symlinks Reply with quote

With each emerge world I get
Code:
* Messages for package sys-auth/elogind-252.9:
 *
 * Directory symlink(s) may need protection:
 *
 *      /lib/udev
 *
 * Use the UNINSTALL_IGNORE variable to exempt specific symlinks
 * from the following search (see the make.conf man page).
 *
 * Searching all installed packages for files installed via above symlink(s)...
 *
 * One or more symlinks to directories have been preserved in order to
 * ensure that files installed via these symlinks remain accessible. This
 * indicates that the mentioned symlink(s) may be obsolete remnants of an
 * old install, and it may be appropriate to replace a given symlink with
 * the directory that it points to.
 *
 *      /lib/udev

What action should I take?
[SOLVED] I followed stefantalpalaru's advice (below). [/SOLVED]


Last edited by cfgauss on Sun Oct 20, 2024 2:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1729
Location: Germany

PostPosted: Thu Jun 20, 2024 8:23 pm    Post subject: Reply with quote

Did you miss https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html or did it not complete and left something which should be changed?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Thu Jun 20, 2024 10:06 pm    Post subject: Reply with quote

Banana wrote:
Did you miss https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html or did it not complete and left something which should be changed?

I believe I've done this.
Code:
$ eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/23.0/split-usr/desktop/plasma
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1729
Location: Germany

PostPosted: Sat Jun 22, 2024 6:45 am    Post subject: Reply with quote

How does the result of ls -l / look?

Mine is:
Code:
lrwxrwxrwx   1 root root     7 Jan  7 10:29 bin -> usr/bin
drwxr-xr-x   2 root root  4096 Nov 28  2019 boot
drwxr-xr-x  16 root root  3860 Jun 22 08:17 dev
drwxr-xr-x  63 root root  4096 Jun 22 08:32 etc
drwxr-xr-x   3 root root  4096 Dec  1  2019 home
lrwxrwxrwx   1 root root     7 Jan  7 10:29 lib -> usr/lib
lrwxrwxrwx   1 root root     9 Jan  7 10:29 lib64 -> usr/lib64
drwxr-xr-x   3 root root  4096 Jun 16 14:28 media
drwxr-xr-x   3 root root  4096 Dec 14  2019 mnt
drwxr-xr-x   8 root root  4096 Apr 28 21:18 opt
dr-xr-xr-x 325 root root     0 Jun 22  2024 proc
drwx------   6 root root  4096 Jun 22 08:19 root
drwxr-xr-x  15 root root   580 Jun 22 08:19 run
lrwxrwxrwx   1 root root     7 Jan  7 10:29 sbin -> usr/bin
dr-xr-xr-x  11 root root     0 Jun 22 08:44 sys
drwxrwxrwt   9 root root 12288 Jun 22 08:39 tmp
drwxr-xr-x  11 root root  4096 Jan  7 10:29 usr
drwxr-xr-x  12 root root  4096 May  1 08:55 var

_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22648

PostPosted: Sat Jun 22, 2024 2:19 pm    Post subject: Reply with quote

Banana's output comes from a merged-usr system, so OP's split-usr system should look different.

OP: what is the output of namei -l /{,usr/}{bin,lib} /lib/udev?
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Sat Jun 22, 2024 5:36 pm    Post subject: Reply with quote

Hu wrote:
What is the output of namei -l /{,usr/}{bin,lib} /lib/udev?

Code:
f: /bin
drwxr-xr-x root root /
drwxr-xr-x root root bin
f: /lib
drwxr-xr-x root root /
drwxr-xr-x root root lib
f: /usr/bin
drwxr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root bin
f: /usr/lib
drwxr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root lib
f: /lib/udev
drwxr-xr-x root root /
drwxr-xr-x root root lib
lrwxrwxrwx root root udev -> ../usr/lib/udev
drwxr-xr-x root root   ..
drwxr-xr-x root root   usr
drwxr-xr-x root root   lib
drwxr-xr-x root root   udev
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Sat Jun 22, 2024 6:41 pm    Post subject: Reply with quote

cfgauss wrote:
Banana wrote:
Did you miss https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html or did it not complete and left something which should be changed?

I believe I've done this.
Code:
$ eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/23.0/split-usr/desktop/plasma


It's not just an eselect command, there's a whole procedure. If you did it you would remember, not just believe. It was just too big to miss it. Did you run the emptytree emerge?

Best Regards,
Georgi
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Sat Jun 22, 2024 7:02 pm    Post subject: Reply with quote

logrusx wrote:
cfgauss wrote:
Banana wrote:
Did you miss https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html or did it not complete and left something which should be changed?

I believe I've done this.
Code:
$ eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/23.0/split-usr/desktop/plasma

If you did it you would remember, not just believe. It was just too big to miss it. Did you run the emptytree emerge?

I remember this (long) procedure and ran emptytree as part of it.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Sat Jun 22, 2024 7:08 pm    Post subject: Reply with quote

cfgauss wrote:

I remember this (long) procedure and ran emptytree as part of it.


Did you run into problems?

Best Regards,
Georgi
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Sat Jun 22, 2024 7:10 pm    Post subject: Reply with quote

logrusx wrote:
cfgauss wrote:

I remember this (long) procedure and ran emptytree as part of it.

Did you run into problems?

This was a while back and my system ran smoothly until recently. At the moment I can't emerge world nor boot into KDE.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Sat Jun 22, 2024 7:46 pm    Post subject: Reply with quote

OK, maybe continue in your other thread until we fix your emerge world issue.

For the record: https://forums.gentoo.org/viewtopic-t-1169561.html

Best Regards,
Georgi
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Thu Jul 18, 2024 9:33 pm    Post subject: Reply with quote

logrusx wrote:
OK, maybe continue in your other thread until we fix your emerge world issue.

emerge world is fixed. Here's my latest symlink message:
Code:
Messages for package net-misc/networkmanager-1.46.0-r1:
 * One or more symlinks to directories have been preserved in order to
 * ensure that files installed via these symlinks remain accessible. This
 * indicates that the mentioned symlink(s) may be obsolete remnants of an
 * old install, and it may be appropriate to replace a given symlink with
 * the directory that it points to.
 *
 *      /lib/systemd
 *      /lib/udev

Should I change my profile to default/linux/amd64/23.0/desktop/plasma (stable)
to get rid of this error?
Back to top
View user's profile Send private message
stefantalpalaru
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2009
Posts: 77
Location: Italy

PostPosted: Sat Jul 20, 2024 10:42 pm    Post subject: Reply with quote

I silenced those silly warnings by adding this to "make.conf":

Code:
UNINSTALL_IGNORE="/lib/modules/* /lib/udev /lib/systemd"
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22648

PostPosted: Sun Jul 21, 2024 12:45 am    Post subject: Reply with quote

Why are these warnings silly? Is there an ebuild bug that is triggering this?
Back to top
View user's profile Send private message
niick
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2006
Posts: 94

PostPosted: Thu Oct 17, 2024 3:49 pm    Post subject: Reply with quote

Hello all. I have the same as issue as OP, did you solve it?

Should I just mask the warnings as above or is there a better way?
_________________
"Give me control of a nation's money and I care not who makes the laws."
Mayer Amschel Rothschild
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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