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

Exclude /usr/lib/.build-id/ from generated package #1969

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

nerijus
Copy link
Contributor

@nerijus nerijus commented Nov 28, 2022

When trying to install caprine I got:

Error: Transaction test error:
  file /usr/lib/.build-id/0d/9fad3f21b1e381cc66b5efcae8f3910ae0edc1 from install of caprine-2.57.0-1.fc37.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
  file /usr/lib/.build-id/76/9d0269491ca2313fcd15d63059bac67bd8b1b3 from install of caprine-2.57.0-1.fc37.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
  file /usr/lib/.build-id/c2/dcac7cb6a727685d10d4161a0d14988f12a0fa from install of caprine-2.57.0-1.fc37.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64
  file /usr/lib/.build-id/cb/dc9db5fec0e6129bddcb0c282be98be4c6966e from install of caprine-2.57.0-1.fc37.x86_64 conflicts with file from package slack-4.29.149-0.1.el8.x86_64

According to https://bugzilla.redhat.com/show_bug.cgi?id=1820370#c1 we can move the build-id links to debuginfo packages with this in the spec:

%global _build_id_links alldebug

I added it to the spec file, rebuilt the package, and the only difference is that /usr/lib/.build-id/* are not included.
CC @dusansimic

@dusansimic
Copy link
Collaborator

Hi @nerijus! Thanks for the contribution. I'll review it but I don't really have a lot of free time at the moment so it might take some time.

I've disabled generation of debug packages since it was causing troubles and I didn't really need it. Now that build id files need to be moved to debug package I think it should be added back again but after a short test, it still doesn't work as expected. I'll need to look more into it. Or, if you're up for it, you can look into that issue too.

@nerijus
Copy link
Contributor Author

nerijus commented Nov 29, 2022

I've disabled generation of debug packages since it was causing troubles and I didn't really need it.

The same is with /usr/lib/.build-id/* files - they are not needed for ordinary users. With this patch they are moved to debug package, which is disabled - it is OK. If someone needs debug package, it will be generated with /usr/lib/.build-id/* files in it.

@BenjaminGaymay
Copy link

Hi, is there a workaround to install Caprine with "dnf" waiting the merge approval ?

@dusansimic dusansimic merged commit 0795175 into sindresorhus:main Jul 19, 2023
stkrknds pushed a commit to stkrknds/caprine that referenced this pull request Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants