Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create extra symbolic links for debuginfo files with the same build id #6

Open
rzinsly opened this issue Feb 16, 2017 · 0 comments
Open

Comments

@rzinsly
Copy link
Member

rzinsly commented Feb 16, 2017

There are cases where the build ID is not really unique, such as in the following files:

/opt/atx.x/bin/getconf
/opt/atx.x/libexec64/getconf/POSIX_V7_LP64_OFF64
/opt/atx.x/libexec64/getconf/XBS5_LP64_OFF64
/opt/atx.x/libexec64/getconf/POSIX_V6_LP64_OFF64

On Fedora, when such collisions happen, the debuginfo packages create extra symlinks to the files with the same build-id, as shown below:

Package: glibc:
/usr/libexec/getconf/POSIX_V6_LP64_OFF64
/usr/libexec/getconf/POSIX_V7_LP64_OFF64
/usr/libexec/getconf/XBS5_LP64_OFF64

Package: glibc-common:
/usr/bin/getconf

Package: glibc-debuginfo:
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5 -> ../../../../libexec/getconf/POSIX_V6_LP64_OFF64
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.1 -> ../../../../libexec/getconf/XBS5_LP64_OFF64
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.1.debug -> ../../usr/libexec/getconf/XBS5_LP64_OFF64.debug
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.2 -> ../../../../libexec/getconf/POSIX_V7_LP64_OFF64
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.2.debug -> ../../usr/libexec/getconf/POSIX_V7_LP64_OFF64.debug
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.debug -> ../../usr/libexec/getconf/POSIX_V6_LP64_OFF64.debug

Package: glibc-debuginfo-common:
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.3 -> ../../../../bin/getconf
/usr/lib/debug/.build-id/1f/44e690889e68bd31952a980999896e4f7d28d5.3.debug -> ../../usr/bin/getconf.debug
/usr/lib/debug/usr/libexec/getconf/POSIX_V6_LP64_OFF64.debug
/usr/lib/debug/usr/libexec/getconf/POSIX_V7_LP64_OFF64.debug
/usr/lib/debug/usr/libexec/getconf/XBS5_LP64_OFF64.debug
/usr/lib/debug/usr/bin/getconf.debug

We want to do the same thing on the advance toolchain, i.e.:

Create extra symbolic links for debuginfo files with the same build id. To avoid filename collision, add a suffix to the symbolic link filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants