bazelbuild / bazelbuild/rules_pkg
pkg_rpm with prebuild binary is not working
- Dominant language
- Starlark
- Stars
- 253
- Forks
- 221
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
I was trying out the example mentioned in https://github.com/bazelbuild/rules_pkg/tree/main/examples/prebuilt_rpmbuild to use prebuilt rpmbuild binary for creating an rpm package.
I am getting the below error:
```
INFO: From MakeRpm test-rpm-all.rpm:
Error calling rpmbuild:
Executing(%build): /bin/sh -e /tmp/tmpunk6msq6/TMP/rpm-tmp.Dvj25Y
+ umask 022
+ cd /tmp/tmpunk6msq6/BUILD
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /tmp/tmpunk6msq6/TMP/rpm-tmp.q63uwP
+ umask 022
+ cd /tmp/tmpunk6msq6/BUILD
+ /bin/rm -rf /tmp/tmpunk6msq6/BUILDROOT
+ /bin/mkdir -p /tmp/tmpunk6msq6
+ /bin/mkdir /tmp/tmpunk6msq6/BUILDROOT
+ cp WORKSPACE BUILD readme.md test_rpm.spec /tmp/tmpunk6msq6/BUILDROOT/
Processing files: example-1-0.x86_64
error: No file attributes configured
Provides: example = 1-0 example(x86-64) = 1-0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
RPM build errors:
No file attributes configured
No RPM file created.
ERROR: /usr/local/google/home/rapatchi/rules_pkg/examples/prebuilt_rpmbuild/BUILD:18:8: output 'test-rpm-all.rpm' was not created
ERROR: /usr/local/google/home/rapatchi/rules_pkg/examples/prebuilt_rpmbuild/BUILD:18:8: MakeRpm test-rpm-all.rpm failed: not all outputs were created or valid
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.226s, Critical Path: 0.20s
INFO: 8 processes: 7 internal, 1 linux-sandbox.
ERROR: Build did NOT complete successfully
```
rpmbuild binary version:
```
rapatchi@rapatchi:~/rules_pkg/examples/prebuilt_rpmbuild/local$ ./rpmbuild_binary --version
RPM version 4.18.0
```
Contributor guide
Assessment
This issue has not been assessed yet.