Bug 149113
Summary: | gcc-debuginfo includes broken links to /usr/src/build | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Luca Barbieri <luca.barbieri> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED UPSTREAM | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | jakub, nobody+pnasrat |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-12 15:05:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Luca Barbieri
2005-02-18 21:11:15 UTC
I believe this needs to be fixed in /usr/lib/rpm/find-debuginfo.sh, because I guess gcc is not the only package that has absolute symlinks in its build dir and even if it is a relative symlink to otherwise unreferenced file, *-debuginfo package might contain just the symlink and not what it actually points to. I think there are 2 possible solutions, one is replace -pd0m with -pd0mL in find-debuginfo.sh (and optionally run hardlink on the ${RPM_BUILD_ROOT}/usr/src/debug tree to kill duplicates), or after copying the files keep cycling through the symlinks in that tree and for absolute ones to $RPM_BUILD_ROOT replace them with symlinks into /usr/src/debug/* and copy whatever they point to into the tree as well. I've added the L option to tpm cvs, should be in rpm-4.4.5-0.10 when built. The real problem with debuginfo is the rewrite of paths in elf headers without reallocating the header, thereby preventing rpmbuild from producing -debuginfo packages when configured on build paths shorter than /usr/src/debug. The eventual fix for that will be to stop producing -debuginfo packages with rpmbuild. |