Repository navigation
Changed the buildroot from BUILD to BUILDROOT - #108
Conversation
|
With this patched in I see errors like What version of rpmbuild are you using. I see |
|
@aiuto I am unable to reproduce the test failures locally and I cannot find the link to the CI test results. Can you show me how to access the results? Also, I'm running with rpmbuild version 4.14.1 |
|
It was failing locally for me. There is no CI run yet. |
|
Maybe Python versions? What do you use? I would probably have tried with Python 3.7.5rc1. FWIW, we'll be aggressively dropping Python2 support over the next 2 months. So, what I may do immediately is make the next rules_pkg release a breaking one where we require python2. |
|
@aiuto I fixed the build and test errors in my most recent commit |
|
@aiuto Is there anything else that needs to be done to close this? |
|
The bug that's fixed in this PR broke our RPM builds too, would be great if this could be merged soon. For comparison: In PR #75 this was changed to drop BUILDROOT and only use a single BUILD folder. Unfortunately Either now every spec file needs to contain this workaround, or the pkg_rpm call gets fixed. |
|
#129 by the way already contains this fix. |
aiuto
left a comment
There was a problem hiding this comment.
OK. I understand now. My bad on this. This history leading to the problem is
- I spent most of my time with rpms at Google, where we don't write the %install section. We depend on rules which essentially do that, so all of our spec files look like
%install
%include %build_rpm_install
%files -f %build_rpm_files
- Someone started with our internal RPM build to export to Bazel, ripping out the magic files.
- In the tests the install locations are all aligned with the files section, so %install could be a no-op
- When I started tweaking things, I missed the nuance.
So... this is all good.
@nacl is doing some work on the kind of features which would allow the rule to generate the %install and %files section for you. The importance of that is that the packages feeding RPM can also feed .deb or tar or zip, so that renaming, moving, and mode bits can be specified in one place, rather than for each rule.
PR for issue #107