Rpmbuild: Difference between revisions
From Leo's Notes
This page was last edited on 12 September 2019, at 05:03.
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux" |
WP content from http://leo.steamr.com/2012/11/rpmbuild-error-bad-exit-status-from-tmp-install/ |
||
| 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} | |||
}} | |||
== 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 119: | ||
chmod 644 repodata/* | chmod 644 repodata/* | ||
chmod 755 repodata | chmod 755 repodata | ||
}} | |||
Revision as of 05:03, 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}
RPM Build Script
I have this RPM build script that will automatically build the package based on the .spec file in the directory tree.
#!/bin/bash
Usage() {
echo "Usage: rebuild.sh [sl