Bug 878863 - %exclude does not remove corresponding debuginfo symlinks
Summary: %exclude does not remove corresponding debuginfo symlinks
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 883823 1015516 1482698 1563892 1593693 1667757 1924066 1986382 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-21 12:39 UTC by Honza Horak
Modified: 2021-08-10 15:31 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-02-05 14:57:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Example of using %exclude for binary file (1.83 KB, application/octet-stream)
2012-11-21 12:40 UTC, Honza Horak
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpm issues 1622 0 None open %exclude does not scope to debuginfo symlinks 2021-04-08 07:57:38 UTC

Description Honza Horak 2012-11-21 12:39:44 UTC
Description of problem:
Let's see e.g. itext-2.1.7-13.el7 and corresponding -debuginfo package itext-debuginfo-2.1.7-13.el7.

There is /usr/lib/debug/.build-id/2b/fcdb3c66516cd4203fd53fbb37314a75274e68 included in the latter one but it is a dangling symlink (pointing to a non-existing file).

I was wondering how this is possible and it seems this is happening when we use %exclude directive for binary files in the spec. The link is created during "debug info extraction" phase and then the binary is not included into rpm.

Version-Release number of selected component (if applicable):
rpm-4.9.1.3-7.el7.x86_64

How reproducible:
every-time

Steps to Reproduce:
1. Spec file includes binary file, which is installed
2. Binary file is not included into rpm: %exclude is used
3. See the dangling symlink in -debuginfo package
  
Actual results:
Dangling symlink is found in -debuginfo package

Expected results:
No dangling symlink is created

Additional info:
I believe this can be fixed by unlinking all links created during debug info extraction and pointing to files excluded from rpm.

I'm attaching an example SRPM, you can build it and see the resulted links at
/usr/lib/debug/.build-id/XX/XXXXXXXXXXXX

Comment 1 Honza Horak 2012-11-21 12:40:43 UTC
Created attachment 649195 [details]
Example of using %exclude for binary file

Comment 2 Panu Matilainen 2012-11-21 13:01:08 UTC
Debuginfo generation operates on the disk contents and knows exactly nothing about specs. Changing that would require fundamentally changing the way debuginfo is generated, which might happen eventually but not in rhel-7.

As a general rule, dont leave files that wont be packaged at all in the build root. The primary use of %exclude is sub-packages, eg

---
%install
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
install foo bar zoo zip zap zup ${RPM_BUILD_ROOT}%{_bindir}

%files
%{_bindir}/*
%exclude %{_bindir}/foo

%files foo
%{_bindir}/foo
---

Comment 3 Honza Horak 2012-11-21 13:11:01 UTC
(In reply to comment #2)
> Debuginfo generation operates on the disk contents and knows exactly nothing
> about specs. Changing that would require fundamentally changing the way
> debuginfo is generated, which might happen eventually but not in rhel-7.

I was thinking about the opposite way, i.e. erase links for files that are being excluded (which means during "processing files" phase).

> As a general rule, dont leave files that wont be packaged at all in the
> build root. The primary use of %exclude is sub-packages, eg

Understood and agreed.

Comment 4 Panu Matilainen 2012-11-21 14:01:14 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Debuginfo generation operates on the disk contents and knows exactly nothing
> > about specs. Changing that would require fundamentally changing the way
> > debuginfo is generated, which might happen eventually but not in rhel-7.
> 
> I was thinking about the opposite way, i.e. erase links for files that are
> being excluded (which means during "processing files" phase).

Rpm doesn't know whether an excluded file belongs to some other sub-package until it has processed file-lists of all the packages being created by a spec, including -debuginfo which is "just another sub-package" as far as rpm is concerned. And at that point its simply too late to start removing things from already created headers.

Comment 5 Honza Horak 2012-11-21 14:27:06 UTC
Ah, OK. So feel free to close this if you want.

Comment 6 Panu Matilainen 2012-11-23 08:21:34 UTC
Well, the behavior is not exactly right so it is a bug of sorts, its just not something I see getting fixed in rhel-7. Perhaps this should be just moved to Fedora rawhide so it wont get closed by nack-bots and forgotten.

Comment 7 Honza Horak 2012-11-23 08:41:19 UTC
(In reply to comment #6)
> Well, the behavior is not exactly right so it is a bug of sorts, its just
> not something I see getting fixed in rhel-7. Perhaps this should be just
> moved to Fedora rawhide so it wont get closed by nack-bots and forgotten.

Ok, let's move this to Fedora.

Comment 8 Petr Pisar 2012-12-05 11:49:14 UTC
*** Bug 883823 has been marked as a duplicate of this bug. ***

Comment 9 Fedora End Of Life 2013-04-03 16:58:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 10 Panu Matilainen 2013-10-07 05:25:37 UTC
Moving (back) to rawhide as something to consider at some point in future...

Comment 11 Panu Matilainen 2013-10-07 05:26:49 UTC
*** Bug 1015516 has been marked as a duplicate of this bug. ***

Comment 12 Mark Wielaard 2018-04-20 01:45:10 UTC
*** Bug 1563892 has been marked as a duplicate of this bug. ***

Comment 13 John Dodson 2018-04-20 02:22:13 UTC
I'm amazed! This dangling symlink problem has surely not been there since 2012

where I only noticed this recently... Duplicate of this bug: 1563892

So is this a new incarnation of an old bug?

Comment 14 John Dodson 2018-04-20 21:55:11 UTC
FC27: Sat Apr 21 07:53:58 AEST 2018

/usr/lib/.build-id/06/e3c3e24e1be0a80967a12e2b021d72312d3bf1: broken symbolic link to ../../../../usr/lib64/libavdevice.so.57.6.100
ffmpeg-libs-3.3.7-1.fc27.x86_64

/usr/lib/.build-id/49/698ed5d29a893c7bfa5add4d67ef7a2f9e5c01: broken symbolic link to ../../../../usr/lib64/libgfdb.so.0.0.1
glusterfs-libs-3.12.8-1.fc27.x86_64

/usr/lib/.build-id/a2/cb13e3bcd47c207782d1491ccb66cebae5a007: broken symbolic link to ../../../../usr/lib64/glusterfs/3.12.8/rpc-transport/rdma.so
glusterfs-3.12.8-1.fc27.x86_64

/usr/lib/.build-id/ba/cfd7a62c0943c5ad794d1d39b655bfa90f9fa1: broken symbolic link to ../../../../usr/lib64/tumbler-1/plugins/tumbler-gst-thumbnailer.so
tumbler-0.2.1-1.fc27.x86_64

/usr/lib/.build-id/d2/dbb694c4b8517beb79bb9d78d2383998845fb1: broken symbolic link to ../../../../usr/lib64/tumbler-1/plugins/tumbler-raw-thumbnailer.so
tumbler-0.2.1-1.fc27.x86_64

Comment 15 John Dodson 2018-04-21 22:10:59 UTC
Today...


/usr/lib/.build-id/71/e78d8bcf15a9475517284ffd6816c7739245ea: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/TW/TW.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8e/0a01b747871e6d13cad6848893a6e32ad702f0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/SHA/SHA.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/25/949a92d595f26d48243847bd48e082f75ccb0a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Data/Dumper/Dumper.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8c/6b52d954650e281465037df59ac4c2aeef7757: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Encode.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f9/c71da48251242813840f37ce0fc410a2296407: broken symbolic link to ../../../../usr/lib64/perl5/auto/IPC/SysV/SysV.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b2/ffba1a4d54d83ca65d0065f392f80eb04b4d2a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Zlib/Zlib.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/92/ebf0cf0b0baa7ddad6ccb8c0fb134840782934: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/MD5/MD5.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f0/ad94b4c7630536bcfb2253851c4fcc7a1dff66: broken symbolic link to ../../../../usr/lib64/perl5/auto/Filter/Util/Call/Call.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/d0/270ab33813c8a94f523e285ad9c7026d41d23b: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Byte/Byte.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b7/47bc708f6ff01b9bed64dc6736a5fea202adf0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Bzip2/Bzip2.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/27/1eeb79f8213724273db73f0548d6e0fc562896: broken symbolic link to ../../../../usr/lib64/perl5/auto/DB_File/DB_File.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ad/9969eb72f6deafb370dda406a8f8d610d2cfd3: broken symbolic link to ../../../../usr/lib64/perl5/auto/Storable/Storable.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/1a/1537a9fd41808a0d49cc02210a4b59aaadaf58: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/CN/CN.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/1a/b5bc089bc23a198d559f3005cec20546b0a3f2: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Symbol/Symbol.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8f/3dd85d312a38778f8b85d2fbb7bca061a89c97: broken symbolic link to ../../../../usr/lib64/perl5/auto/Math/BigInt/FastCalc/FastCalc.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/6b/b2b24b0ba967ac7daec5bf666bb3d875bad02d: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/EBCDIC/EBCDIC.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/e9/79e330cb0054e7074e95d2a5d5b4cd690e52be: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Normalize/Normalize.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/95/44dd7a769f9e446dcf9c38d89f48ccc4faa195: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Collate/Collate.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/c8/66f376869a84813613c8b6f8a5e5c28f8ad245: broken symbolic link to ../../../../usr/lib64/perl5/auto/Cwd/Cwd.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/d1/515cb5183a43a239112c0c9291716cd02265ff: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/shared/shared.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b3/0f57e227315793eb730572d721e0347283dfda: broken symbolic link to ../../../../usr/lib64/perl5/auto/Socket/Socket.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/90/506a027344c3ba65c706c86fd106e8ca626a39: broken symbolic link to ../../../../usr/lib64/perl5/auto/Sys/Syslog/Syslog.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/17/5f0affb583b2e3e07fcdc08d3f107ef2720dbe: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/KR/KR.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/cc/e375a3dfd4c01a91ceb6fac05c240c40ea1ff9: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/threads.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/cf/9a2fe31b58574260cd57aeafb6fb631b8d3ed1: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/JP/JP.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ff/24da7a8bbb61d070dae152276cfa4e0d487be3: broken symbolic link to ../../../../usr/lib64/perl5/auto/MIME/Base64/Base64.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/3b/c08b55f8fc413ce89e8c5ab1afaef97ba47ed0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Unicode/Unicode.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/93/5b9c83f34a10bc8c099b1166c26e9cc9f62878: broken symbolic link to ../../../../usr/lib64/perl5/auto/List/Util/Util.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ef/e22f3d4b1a3766d8ed9800c088e5a0070d5aae: broken symbolic link to ../../../../usr/lib64/perl5/auto/Time/HiRes/HiRes.so
perl-interpreter-5.26.2-404.fc27.x86_64

Comment 16 John Dodson 2018-04-21 22:13:41 UTC
and on another machine...
/usr/lib/.build-id/b2/ffba1a4d54d83ca65d0065f392f80eb04b4d2a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Zlib/Zlib.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/92/ebf0cf0b0baa7ddad6ccb8c0fb134840782934: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/MD5/MD5.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b3/0f57e227315793eb730572d721e0347283dfda: broken symbolic link to ../../../../usr/lib64/perl5/auto/Socket/Socket.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/cc/e375a3dfd4c01a91ceb6fac05c240c40ea1ff9: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/threads.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/6b/b2b24b0ba967ac7daec5bf666bb3d875bad02d: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/EBCDIC/EBCDIC.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ef/e22f3d4b1a3766d8ed9800c088e5a0070d5aae: broken symbolic link to ../../../../usr/lib64/perl5/auto/Time/HiRes/HiRes.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/e9/79e330cb0054e7074e95d2a5d5b4cd690e52be: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Normalize/Normalize.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8f/3dd85d312a38778f8b85d2fbb7bca061a89c97: broken symbolic link to ../../../../usr/lib64/perl5/auto/Math/BigInt/FastCalc/FastCalc.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/17/5f0affb583b2e3e07fcdc08d3f107ef2720dbe: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/KR/KR.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/c8/66f376869a84813613c8b6f8a5e5c28f8ad245: broken symbolic link to ../../../../usr/lib64/perl5/auto/Cwd/Cwd.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8e/0a01b747871e6d13cad6848893a6e32ad702f0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/SHA/SHA.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/90/506a027344c3ba65c706c86fd106e8ca626a39: broken symbolic link to ../../../../usr/lib64/perl5/auto/Sys/Syslog/Syslog.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/71/e78d8bcf15a9475517284ffd6816c7739245ea: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/TW/TW.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8c/6b52d954650e281465037df59ac4c2aeef7757: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Encode.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/27/1eeb79f8213724273db73f0548d6e0fc562896: broken symbolic link to ../../../../usr/lib64/perl5/auto/DB_File/DB_File.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ad/9969eb72f6deafb370dda406a8f8d610d2cfd3: broken symbolic link to ../../../../usr/lib64/perl5/auto/Storable/Storable.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/25/949a92d595f26d48243847bd48e082f75ccb0a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Data/Dumper/Dumper.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/d1/515cb5183a43a239112c0c9291716cd02265ff: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/shared/shared.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/95/44dd7a769f9e446dcf9c38d89f48ccc4faa195: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Collate/Collate.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/3b/c08b55f8fc413ce89e8c5ab1afaef97ba47ed0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Unicode/Unicode.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/93/5b9c83f34a10bc8c099b1166c26e9cc9f62878: broken symbolic link to ../../../../usr/lib64/perl5/auto/List/Util/Util.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/d0/270ab33813c8a94f523e285ad9c7026d41d23b: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Byte/Byte.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/1a/1537a9fd41808a0d49cc02210a4b59aaadaf58: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/CN/CN.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/1a/b5bc089bc23a198d559f3005cec20546b0a3f2: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Symbol/Symbol.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f9/c71da48251242813840f37ce0fc410a2296407: broken symbolic link to ../../../../usr/lib64/perl5/auto/IPC/SysV/SysV.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b7/47bc708f6ff01b9bed64dc6736a5fea202adf0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Bzip2/Bzip2.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f0/ad94b4c7630536bcfb2253851c4fcc7a1dff66: broken symbolic link to ../../../../usr/lib64/perl5/auto/Filter/Util/Call/Call.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ff/24da7a8bbb61d070dae152276cfa4e0d487be3: broken symbolic link to ../../../../usr/lib64/perl5/auto/MIME/Base64/Base64.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/cf/9a2fe31b58574260cd57aeafb6fb631b8d3ed1: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/JP/JP.so
perl-interpreter-5.26.2-404.fc27.x86_64


and another...
/usr/lib/.build-id/b7/47bc708f6ff01b9bed64dc6736a5fea202adf0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Bzip2/Bzip2.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/c8/66f376869a84813613c8b6f8a5e5c28f8ad245: broken symbolic link to ../../../../usr/lib64/perl5/auto/Cwd/Cwd.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ad/9969eb72f6deafb370dda406a8f8d610d2cfd3: broken symbolic link to ../../../../usr/lib64/perl5/auto/Storable/Storable.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/d1/515cb5183a43a239112c0c9291716cd02265ff: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/shared/shared.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8e/0a01b747871e6d13cad6848893a6e32ad702f0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/SHA/SHA.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/cc/e375a3dfd4c01a91ceb6fac05c240c40ea1ff9: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/threads.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/90/506a027344c3ba65c706c86fd106e8ca626a39: broken symbolic link to ../../../../usr/lib64/perl5/auto/Sys/Syslog/Syslog.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/25/949a92d595f26d48243847bd48e082f75ccb0a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Data/Dumper/Dumper.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/cf/9a2fe31b58574260cd57aeafb6fb631b8d3ed1: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/JP/JP.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/3b/c08b55f8fc413ce89e8c5ab1afaef97ba47ed0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Unicode/Unicode.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f9/c71da48251242813840f37ce0fc410a2296407: broken symbolic link to ../../../../usr/lib64/perl5/auto/IPC/SysV/SysV.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/1a/1537a9fd41808a0d49cc02210a4b59aaadaf58: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/CN/CN.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/1a/b5bc089bc23a198d559f3005cec20546b0a3f2: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Symbol/Symbol.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/95/44dd7a769f9e446dcf9c38d89f48ccc4faa195: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Collate/Collate.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f0/ad94b4c7630536bcfb2253851c4fcc7a1dff66: broken symbolic link to ../../../../usr/lib64/perl5/auto/Filter/Util/Call/Call.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/f0/7b48b0a646ab3253b5954a199da506c65a6725: broken symbolic link to ../../../../usr/lib64/perl5/auto/Time/Piece/Piece.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ff/24da7a8bbb61d070dae152276cfa4e0d487be3: broken symbolic link to ../../../../usr/lib64/perl5/auto/MIME/Base64/Base64.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/17/5f0affb583b2e3e07fcdc08d3f107ef2720dbe: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/KR/KR.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/e9/79e330cb0054e7074e95d2a5d5b4cd690e52be: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Normalize/Normalize.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8c/6b52d954650e281465037df59ac4c2aeef7757: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Encode.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/6b/b2b24b0ba967ac7daec5bf666bb3d875bad02d: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/EBCDIC/EBCDIC.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b2/ffba1a4d54d83ca65d0065f392f80eb04b4d2a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Zlib/Zlib.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/d0/270ab33813c8a94f523e285ad9c7026d41d23b: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Byte/Byte.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/92/ebf0cf0b0baa7ddad6ccb8c0fb134840782934: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/MD5/MD5.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/3e/7af86e1a625527c4f44b30fb3d69f0a591c5fe: broken symbolic link to ../../../../usr/lib64/perl5/auto/Devel/Peek/Peek.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/27/1eeb79f8213724273db73f0548d6e0fc562896: broken symbolic link to ../../../../usr/lib64/perl5/auto/DB_File/DB_File.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/93/5b9c83f34a10bc8c099b1166c26e9cc9f62878: broken symbolic link to ../../../../usr/lib64/perl5/auto/List/Util/Util.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/71/e78d8bcf15a9475517284ffd6816c7739245ea: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/TW/TW.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/ef/e22f3d4b1a3766d8ed9800c088e5a0070d5aae: broken symbolic link to ../../../../usr/lib64/perl5/auto/Time/HiRes/HiRes.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/b3/0f57e227315793eb730572d721e0347283dfda: broken symbolic link to ../../../../usr/lib64/perl5/auto/Socket/Socket.so
perl-interpreter-5.26.2-404.fc27.x86_64

/usr/lib/.build-id/8f/3dd85d312a38778f8b85d2fbb7bca061a89c97: broken symbolic link to ../../../../usr/lib64/perl5/auto/Math/BigInt/FastCalc/FastCalc.so
perl-interpreter-5.26.2-404.fc27.x86_64

Comment 17 John Dodson 2018-06-19 04:30:17 UTC
Are these danglig symlinks ever likely to get fixed?

Today I have...

/usr/lib/.build-id/37/0c4c4bb89b912f35c279ff9512c680688af319: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/shared/shared.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/b4/d8d20a2ad135c29de0da47c6343edbf633c4f4: broken symbolic link to ../../../../usr/lib64/perl5/auto/Storable/Storable.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/c3/bf0b6d408980d71b06f73f8ee42f62c3f6e6b0: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/EBCDIC/EBCDIC.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/e0/1b0a7d7e9be134564624a263ed064fccba6100: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Symbol/Symbol.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/e5/12cda702a755881e4531e6b1abf6c846ed8c78: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/JP/JP.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/f5/43139c85579888598dc7aa2f8bd8330dee8038: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/SHA/SHA.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/60/227bd9285d04c735c6bfea7503a31535598df2: broken symbolic link to ../../../../usr/lib64/perl5/auto/Cwd/Cwd.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/f8/f0ded285f14c6a9a82d66728d4c8bd72564461: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/TW/TW.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/fd/c16819124132bc310fb3277b7a2b34af33ddf2: broken symbolic link to ../../../../usr/sbin/rpc.rquotad
quota-4.03-12.fc27.x86_64

/usr/lib/.build-id/1c/8b5b66c8db740896bf57e452884f3a76733016: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Encode.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/1c/99c5e0e28698588724acbc8afe61f839833826: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/KR/KR.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/1c/290d050d220d3aff97dd76ecccdb7f74b3103d: broken symbolic link to ../../../../usr/lib64/perl5/auto/Data/Dumper/Dumper.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/92/c6ffa9d5d87ddc30ada020e9f501ac38f7cf9f: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Bzip2/Bzip2.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/21/808d07915be3a8a6b65509b2b62ab86ac036ae: broken symbolic link to ../../../../usr/lib64/perl5/auto/Filter/Util/Call/Call.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/c7/acd5cc7b2983b826a98ca951e5c97021955eaf: broken symbolic link to ../../../../usr/lib64/perl5/auto/Compress/Raw/Zlib/Zlib.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/bc/7cc3ed8c3467663161b929062f1badb7550e5c: broken symbolic link to ../../../../usr/lib64/perl5/auto/DB_File/DB_File.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/ea/575f27aaf00f9a83391515528286d6fe81744b: broken symbolic link to ../../../../usr/lib64/perl5/auto/Time/HiRes/HiRes.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/a6/c83c02082b00fe339c12628cec10794fd52a4c: broken symbolic link to ../../../../usr/lib64/perl5/auto/MIME/Base64/Base64.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/bb/8d0121b11bcaf8cc4f7b25bd2f9493201f02b5: broken symbolic link to ../../../../usr/lib64/perl5/auto/Math/BigInt/FastCalc/FastCalc.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/b5/f0b5b0daec318e7a540b764e0d0566172e4beb: broken symbolic link to ../../../../usr/lib64/perl5/auto/Digest/MD5/MD5.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/86/0f60efd75d18d5d49c779d3e0ee889f1ed5a80: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Unicode/Unicode.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/ed/8d31a1fe990bcac945a45c4eb55113b4a1d496: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Collate/Collate.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/61/d992bd7ca43d46f6ec8d7f41fbf098764b9e4a: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/Byte/Byte.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/1f/2293b7e06b063462215f61fd9de56269bbe970: broken symbolic link to ../../../../usr/lib64/perl5/auto/Sys/Syslog/Syslog.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/96/53b29fff3aebe3e058860d9dffd10c05141e21: broken symbolic link to ../../../../usr/lib64/perl5/auto/IPC/SysV/SysV.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/85/ef32f43e9f46569ca1a594b33f4e9f6a086e76: broken symbolic link to ../../../../usr/lib64/perl5/auto/Encode/CN/CN.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/99/46823ff832a7f9a56f6884b960a4710f0bc68a: broken symbolic link to ../../../../usr/sbin/warnquota
quota-4.03-12.fc27.x86_64

/usr/lib/.build-id/f4/41c0e7540e760606e7ef01fa21889151ef223e: broken symbolic link to ../../../../usr/lib64/perl5/auto/List/Util/Util.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/05/0957255acf26412720eee710a2042bf7950cde: broken symbolic link to ../../../../usr/sbin/quota_nld
quota-4.03-12.fc27.x86_64

/usr/lib/.build-id/2b/6316bb1875a9cf95454137b25052ade1411496: broken symbolic link to ../../../../usr/lib64/perl5/auto/threads/threads.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/ec/6e84ebb1153a69aeee69558cf519955eeeafb8: broken symbolic link to ../../../../usr/lib64/perl5/auto/Socket/Socket.so
perl-interpreter-5.26.2-406.fc27.x86_64

/usr/lib/.build-id/52/3d0f6ee3a687b87db861fa19d11cee5a77bb93: broken symbolic link to ../../../../usr/lib64/perl5/auto/Unicode/Normalize/Normalize.so
perl-interpreter-5.26.2-406.fc27.x86_64

Comment 18 Mark Wielaard 2018-07-10 11:32:19 UTC
*** Bug 1593693 has been marked as a duplicate of this bug. ***

Comment 19 John Dodson 2018-07-11 01:09:38 UTC
Is there any point me telling you what danglers there are in FC28? after...

    Mark Wielaard 2018-07-10 07:32:19 EDT

    There is not much to go on here. But this looks like a dup of bug #878863.
    If you believe otherwise please check whether these symlinks were not to
    excluded files in a particular package. Thanks.

What???

If the files are excluded will that result in a dangling symlink?
I thought what we are trying to do is prevent dangling symlinks!

Are you saying the dangler is left after "exclusion"?
I obviously don't understand the underlying problem.

Comment 20 Panu Matilainen 2019-01-21 08:43:58 UTC
*** Bug 1667757 has been marked as a duplicate of this bug. ***

Comment 21 Panu Matilainen 2019-01-21 08:48:33 UTC
(In reply to John Dodson from comment #19)
> Is there any point me telling you what danglers there are in FC28? after...

No. People are aware of the issue, no further data needed. Filing more bugs on the same is not productive either. Thanks.

Comment 22 Panu Matilainen 2019-04-08 08:35:35 UTC
*** Bug 1482698 has been marked as a duplicate of this bug. ***

Comment 23 Panu Matilainen 2019-04-08 08:37:49 UTC
Dropping the erroneous FutureFeature, this is just a plain old bug.

Comment 24 Mark Wielaard 2019-04-22 21:22:16 UTC
Since this bug was filed generation of build-id symlinks has been rewritten a bit. Originally build-id symlink generation was done completely in find-debuginfo.sh. But since rpm 4.13 it is done through rpmbuild in build/files.c and they are not specific to debug files, but can also be generated for normal executables. See the addNewIDSymlink() and generateBuildID() functions. I am wrote that code, but since the original find-debuginfo.sh code didn't handle %excluded files (and I didn't know about this bug at the time), neither does the new code.

What makes all this slightly confusing is that some of the file lists for the debuginfo packages are still generated by find-debuginfo.sh script, which doesn't know anything about excluded files and simply works using find on the build/install dir.

But for .debug files there is a filterDebuginfoPackage() function that does filters out .debug files that would correspond to %excluded main/binaries.

The following commit, which solved the %exclude problem for .debug files, might provide some inspiration for a fix to do something similar for build-id symlink creation:

commit 1e7d3c58fc7c55e2dd20b5ca459f36a1cd2a3d8e
Author: Igor Gnatenko <i.gnatenko.brain>
Date:   Fri Jul 28 15:21:00 2017 +0200

    exclude respective debug files for files which are excluded
    
    Closes: https://github.com/rpm-software-management/rpm/issues/284
    Reviewed-by: Mark Wielaard <mark>
    Signed-off-by: Igor Gnatenko <i.gnatenko.brain>

Comment 25 John Dodson 2019-05-01 14:21:29 UTC
It would appear that the dangling/broken symlinks are now also being generated in,

/var/cache/abrt-di/usr/lib/debug/.build-id

Comment 26 Ben Cotton 2019-08-13 17:03:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 27 Ben Cotton 2019-08-13 19:25:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 28 Ben Cotton 2020-11-03 17:21:41 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 29 Vít Ondruch 2020-11-04 08:05:28 UTC
I don't think this was fixed.

Comment 30 John Dodson 2020-11-06 01:48:39 UTC
Can we please push this to FC32 & 33 & future rawhides?

Comment 31 Tim Landscheidt 2020-11-24 09:23:16 UTC
Just to clarify: The dangling symlinks in /usr/lib/.build-id are due to "errors" in the packages' spec files.  The patch will make future package builds of these spec files fail.  Thus spec files can be "fixed" now and must be in the future?

Comment 32 Panu Matilainen 2020-11-24 13:09:56 UTC
Correct.

The issue occurs when %exclude is misused to leave unpackaged content in the buildroot. When that loophole is closed, this issue is gone as well.

Comment 33 Panu Matilainen 2021-02-02 14:46:44 UTC
*** Bug 1924066 has been marked as a duplicate of this bug. ***

Comment 34 Panu Matilainen 2021-02-05 14:57:32 UTC
This is fixed upstream and will land in Fedora >= 35, but as it's somewhat disruptive it wont be backported to older versions so it doesn't make much sense to keep this hanging open.

Comment 35 Panu Matilainen 2021-04-08 07:57:41 UTC
Upstream change was reverted due to other issues and a new tracking issue created. This is not Fedora specific in any way so tracking separately here doesn't make a whole lot of sense -> closed upstream is still correct.

Comment 36 Michal Domonkos 2021-08-10 15:31:36 UTC
*** Bug 1986382 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.