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

Unwanted directories added to RPM #1503

Closed
hellosputnik opened this issue Jun 6, 2018 · 4 comments
Closed

Unwanted directories added to RPM #1503

hellosputnik opened this issue Jun 6, 2018 · 4 comments

Comments

@hellosputnik
Copy link

When creating an RPM from a virtualenv (whether I use -s dir or -s virtualenv), unwanted directories and files are included in the RPM.

I do not specify /usr/lib/.build-id anywhere and --edit does not show the directories in the spec, but rpm -qlp output.rpm shows the directories.

I have tried excluding and disabling dependencies, but nothing prevents those directories from showing up and failing my installations :( Has anyone else run into this issue?

When I try to install the generated RPM, yum complains about conflicts on /usr/lib/.build-id/$file from the Python package that contains the virtualenv I used. If I uninstall the Python package, then I can install the FPM package (which is broken because it's missing those necessary Python packages that I uninstalled).

@hellosputnik
Copy link
Author

I uninstalled the Python package and installed an older version of the same Python package and installation was successful. However, the mysterious files and directories still exist in my RPM.

@daoxxx
Copy link

daoxxx commented Jul 13, 2018

@hellosputnik I've just also encountered this issue (without installation problems, though) on Fedora 28 box. After some googling around, it comes out, that it has nothing to do with fpm, virtualenv etc. This's an rpmbild's feature (see: https://fedoraproject.org/wiki/Releases/FeatureBuildId and https://fedoraproject.org/wiki/Changes/ParallelInstallableDebuginfo.
Try this option to suppress generation of /usr/lib/.build-id/ links:
fpm .... --rpm-rpmbuild-define "_build_id_links none"

@hellosputnik
Copy link
Author

Thanks @daoxxx! I really appreciate your response!

@daoxxx
Copy link

daoxxx commented Jul 20, 2018

@hellosputnik You're welcome. Guess you shold close the issue.

andrewkroh added a commit to andrewkroh/golang-crossbuild that referenced this issue Jul 17, 2019
stable changed to buster and buster included a newer rpm package and now
the rpmbuild is including files like

  /usr/lib/.build-id/9d/3614c9a48200641b24890671bea43ef43c760b

in our packages. So we'll base this image on stretch and then update
all the things using the container to include

  --rpm-rpmbuild-define "_build_id_links none"

when building RPMs to prevent those files from being included. Then
we can update.

jordansissel/fpm#1503
andrewkroh added a commit to elastic/golang-crossbuild that referenced this issue Jul 17, 2019
stable changed to buster and buster included a newer rpm package and now
the rpmbuild is including files like

  /usr/lib/.build-id/9d/3614c9a48200641b24890671bea43ef43c760b

in our packages. So we'll base this image on stretch and then update
all the things using the container to include

  --rpm-rpmbuild-define "_build_id_links none"

when building RPMs to prevent those files from being included. Then
we can update.

jordansissel/fpm#1503
Svallinn added a commit to FreeTubeApp/FreeTube that referenced this issue May 23, 2021
This commit addresses a certain issue with `rpmbuild` in which certain
packages will conflict with each other because they have identical
`.build-id` links in the package.

I can speculate from some comments I've seen that this might be do
to electron versions the packages rely on, but I can't know for sure.

Most relevant issues I've seen:
jordansissel/fpm#1503
jgraph/drawio-desktop#259
pbabinca added a commit to pbabinca/squalou.google-chat-linux that referenced this issue Nov 30, 2023
_build_id_links is turned off because binary rpms would conflict with
other similarly packaged packages (e.g. Slack desktop app). See
jordansissel/fpm#1503
squalou pushed a commit to squalou/google-chat-linux that referenced this issue Nov 30, 2023
_build_id_links is turned off because binary rpms would conflict with
other similarly packaged packages (e.g. Slack desktop app). See
jordansissel/fpm#1503
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

No branches or pull requests

2 participants