Rpmbuild

From Leo's Notes
Revision as of 05:03, 12 September 2019 by Leo (talk | contribs) (WP content from http://leo.steamr.com/2012/11/rpmbuild-error-bad-exit-status-from-tmp-install/)
This page was last edited on 12 September 2019, at 05:03.

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