rpmbuild: error: Bad exit status from /tmp/ (%install)

If you encounter an error like:

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}

sudoers.d is not read / loaded by sudo

If your configuration files under /etc/sudoers.d/ is not being loaded… ensure that you have the following line in /etc/sudoers

  #includedir /etc/sudoers.d

Even though it is commented out… the existence of the line is required for things under /etc/sudoers.d/ to be loaded. At least, this is what happened to me under Scientific Linux 6.1.

Whether this is a feature or a bug, I have absolutely no idea. Hope this saves someone some hair pulling and time.