Bug #64641 rpmbuild will fail since user pb2user does not exist
Submitted: 14 Mar 2012 2:35 Modified: 20 Jun 2013 15:21
Reporter: Colin Charles Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.5.21 OS:Linux (RHEL 6.2, FC14)
Assigned to: CPU Architecture:Any

[14 Mar 2012 2:35] Colin Charles
Description:
One cannot rebuild the source RPM because user pb2user does not exist outside of the buildsystem that created such a file.

How to repeat:
1. Download MySQL-5.5.21-1.el6.src.rpm
2. try: rpmbuild --rebuild --clean MySQL-5.5.21-1.el6.src.rpm
3. See a failure:

error: Bad exit status from /var/tmp/rpm-tmp.pTdPqG (%build)

RPM build errors:
    user pb2user does not exist - using root
    user pb2user does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.pTdPqG (%build)

Suggested fix:
Fix the specfile so this doesn't happen. Something like: %defattr(-,root,root) in the spec file should work.

Currently a user needs to rpm -i MySQL-package.src.rpm, then rpmbuild -ba on the specfile itself
[14 Mar 2012 10:38] Valeriy Kravchuk
Thank you for the bug report. Verified with generic MySQL-5.5.21-1.linux2.6.src.rpm on FC14 also.
[20 Jun 2013 15:21] Paul DuBois
Noted in 5.5.33, 5.6.13, 5.7.2 changelogs.

Attempts to build from a source RPM package could fail because the
build process attempted to refer to a pb2user that might not exist.