Rpmbuild: Difference between revisions
From Leo's Notes
This page was last edited on 12 September 2019, at 05:05.
m Text replacement - " {{Navbox Linux}}" to "" |
m →RPM Build Script: comment out |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Troubleshooting == | |||
=== rpmbuild: error: Bad exit status from /tmp/ (%install) === | |||
< | If you encounter an error similar to: | ||
{{highlight|lang=text|code= | |||
extracting debug info from /home/leo/rpmbuild/BUILDROOT/processing-1-5.1.x86_64o | |||
*** ERROR: No build ID note found in /home/leo/rpmbuild/BUILDROOT/processing-1-o | |||
error: Bad exit status from /var/tmp/rpm-tmp.WmvEiC (%install) | |||
}} | |||
Add the following to your {{code|.spec}} file: | |||
{{highlight|lang=text|code= | |||
%define debug_package %{nil} | |||
}} | |||
<!-- | |||
There is no reason for the script. Instead, give a quick tutorial on _how_ to use rpmbuild instead? | |||
== RPM Build Script == | |||
I have this RPM build script that will automatically build the package based on the .spec file in the directory tree. | |||
{{highlight|lang=bash|code= | |||
#!/bin/bash | #!/bin/bash | ||
| Line 100: | Line 123: | ||
chmod 644 repodata/* | chmod 644 repodata/* | ||
chmod 755 repodata | chmod 755 repodata | ||
}} | |||
--> | |||
{{Navbox Linux}}[[Category:Linux]] | |||
[[Category:Linux]] | |||
[[Category:PackageManagement]] | [[Category:PackageManagement]] | ||
[[Category:Todo]] | [[Category:Todo]] | ||
Latest revision as of 05:05, 12 September 2019
Troubleshooting
rpmbuild: error: Bad exit status from /tmp/ (%install)
If you encounter an error similar to:
extracting debug info from /home/leo/rpmbuild/BUILDROOT/processing-1-5.1.x86_64o
*** ERROR: No build ID note found in /home/leo/rpmbuild/BUILDROOT/processing-1-o
error: Bad exit status from /var/tmp/rpm-tmp.WmvEiC (%install)
Add the following to your .spec file:
%define debug_package %{nil}