Bug 27089

Summary: filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links with missing leading /
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: filesystem-2.1.9-34.mga8.src.rpm CVE:
Status comment:

Description Bit Twister 2020-08-12 12:29:32 CEST
Description of problem: mga8 dev0

filesystem created dangling links

# symlinks -r / | grep dangling

dangling: /usr/lib/debug/sbin -> usr/sbin
dangling: /usr/lib/debug/lib -> usr/lib
dangling: /usr/lib/debug/lib64 -> usr/lib64
dangling: /usr/lib/debug/bin -> usr/bin


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. clean alpha install and check for any dangling links
2. symlinks -r / | grep dangling
2. update all packages and check for new dangling links
3. symlinks -r / | grep dangling
Comment 1 Dave Hodgins 2020-08-12 14:18:40 CEST
As discussed on the dev ml ...
[dave@x8v ~]$ rpm -q --scripts filesystem |grep symlink
--# If we are running in pretrans in a fresh root, there is no /usr and symlinks.
--# so, let's create the toplevel symlinks here and the directories they point to.
posix.symlink("usr/bin", "/bin")
posix.symlink("usr/sbin", "/sbin")
posix.symlink("usr/lib", "/lib")
posix.symlink("usr/bin", "/usr/lib/debug/bin")
posix.symlink("usr/lib", "/usr/lib/debug/lib")
posix.symlink("usr/lib64", "/usr/lib/debug/lib64")
posix.symlink("usr/sbin", "/usr/lib/debug/sbin")
posix.symlink("usr/lib64", "/lib64")
posix.symlink("../run", "/var/run")
posix.symlink("../run/lock", "/var/lock")
[dave@x8v ~]$ rpm -q -i filesystem |grep ^Source
Source RPM  : filesystem-2.1.9-34.mga8.src.rpm
 
So it's the filesystem package that creates the dangling symlink.

The faulty "usr/..." was added in
http://svnweb.mageia.org/packages/cauldron/filesystem/current/SPECS/filesystem.spec?r1=1587163&r2=1587162&pathrev=1587163
so assigning to ovitters.

CC: (none) => davidwhodgins
Assignee: bugsquad => olav

Comment 2 Olav Vitters 2020-08-12 14:37:36 CEST
That change wasn't me!
Comment 3 Dave Hodgins 2020-08-12 14:54:37 CEST
Sorry, misread the svnweb page. Reassigning.

Assignee: olav => ngompa13

Comment 4 Dave Hodgins 2021-01-13 00:22:19 CET
*** Bug 28071 has been marked as a duplicate of this bug. ***
Bit Twister 2021-01-13 03:38:45 CET

Summary: filesystem created dangling links => filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links

Dave Hodgins 2021-01-13 14:30:12 CET

Summary: filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links => filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links with missing leading /