Bug 712064 - postgresql-devel BuildRequires missing entry
Summary: postgresql-devel BuildRequires missing entry
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: postgresql84
Version: 5.7
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Tom Lane
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-09 12:02 UTC by Chris
Modified: 2013-07-03 03:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-09 14:58:04 UTC
Target Upstream Version:


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.