Bug 712064

Summary: postgresql-devel BuildRequires missing entry
Product: Red Hat Enterprise Linux 5 Reporter: Chris <caronc>
Component: postgresql84Assignee: Tom Lane <tgl>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.7CC: hhorak
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-09 14:58:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chris 2011-06-09 12:02:49 UTC
Description of problem:
When building something against the newly provided packages by redhat postgresql84-devel using mock, it's BuildRequires appear to be mucked up.

Everything builds... but during the mock clean up, the rpm fails to gracefully uninstall itself with the error (taken from verbose output of mock):
DEBUG: + postgresql84-devel-8.4.7-1.el5_6.1
DEBUG: /var/tmp/rpm-tmp.59300: line 27: postgresql84-devel-8.4.7-1.el5_6.1: command not found
DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.59300 (%clean)
DEBUG: RPM build errors:
DEBUG:     Bad exit status from /var/tmp/rpm-tmp.59300 (%clean)
DEBUG: Child returncode was: 1
INFO: EXCEPTION: Command failed. See logs for output.


Version-Release number of selected component (if applicable):
8.4.7-1 (the one shipped with RH57-beta)

How reproducible:
just build with it in a mock environment.  In the above example I was building against a third-party (redhat-unsupported) app libpqxx.

Steps to Reproduce:
1. create a very minimial source rpm to be built that BuildRequires postgresql84-devel
2. attempt to build your package through mock
3. assuming your source is okay, mock should fail to preform the cleanup of the postgresql84-devel package and exit
  
Expected results:
mock would gracefully preform the removal of rpm and then finish by having the built content appearing in the mock 'results' directory.

Additional info:
Since everything builds okay, it's no sweat to fetch the rpms from /var/lib/mock/<mock env root>/builddir.

I set the ticket to use x86_64 hardware, but this issue also occurs with i386 as well using mock.  I have not tested the other architectures.

Comment 1 Chris 2011-06-09 12:10:16 UTC
very sorry for this post,
there was a bug in the libpqxx spec file of the %clean function.

Comment 2 Tom Lane 2011-06-09 14:58:04 UTC
OK, I understand from comment #1 that this isn't actually a problem with the postgresql84 package, so closing as NOTABUG.  If you think there is something for me to fix, please reopen, and provide a concrete test case (ie, a complete spec file I can try).