Bug 451004 - mockbuild of i386 packages on x86_64 platform lacks pg_config_i386.h
mockbuild of i386 packages on x86_64 platform lacks pg_config_i386.h
Product: Fedora
Classification: Fedora
Component: postgresql (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Tom Lane
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-06-12 06:54 EDT by Ingvar Hagelund
Modified: 2013-07-02 23:18 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-17 00:23:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ingvar Hagelund 2008-06-12 06:54:08 EDT
Description of problem:
When building i386 packages from source rpm with mock on x86_64 machine,
postgresql-devel lacks /usr/include/pg_config_i386.h and

Version-Release number of selected component (if applicable):
any recent fedora postgresql package

Note that I tested this with mock-0.6 on an ubuntu system. A control build with
a fedora stamped mock should be done to make sure the issue is present on fedora
as well. I'll try to do this when I get home and get time and find a decent machine.

How reproducible:

Steps to Reproduce:
1. Do an i386 mockbuild of postgresql on a x86_64 machine
2. rpm -qpl postgresql-devel*.rpm | grep pg_config_i386.h

Actual results:
no output

Expected results:

Additional info:
Workaround: run mock with linux32 wrapper

The postgresql build should not use uname -{i,p,m} when deciding what files to
create, but rely on %{ARCH} from rpmbuild/mock/whatever.
Comment 1 Ingvar Hagelund 2008-06-12 06:58:45 EDT
I forgot, I only have i386 on my fedora boxes at home. 
Comment 2 Tom Lane 2008-06-12 10:08:57 EDT
Why in the world does mock not provide that wrapper?  I think this is a mock bug.
Comment 3 Rajesh Krishnan 2008-06-16 22:47:38 EDT
I have an x86_64 machine running Fedora-8.  I was not able to find 
the /usr/bin/pg_config installed by the postgresql-devel RPM package, even 
though the RPM lists the entry.

Is it possible to get a fixed RPM anytime soon for Fedora-8?


Comment 4 Tom Lane 2008-06-17 00:23:03 EDT
Ingvar: I tried the case just now using Fedora 8's mock, and it works as expected.  So I'm of the opinion 
that you are looking at a bug in Ubuntu's mock.  mock is supposed to reproduce the target system's build 
environment, and they're clearly missing a bet there.

Rajesh: that file is certainly present in the RPM.  You might possibly have a gripe to file against yum or 
rpm itself, but I don't think you've ruled out plain old pilot error.  In any case, please don't attach unrelated 
issues to existing bugzilla entries.
Comment 5 Tom Lane 2008-06-17 00:28:04 EDT
Oh, another data point: mock on current Fedora 8 is mock-0.9.7-2.  Maybe this is just something that got 
fixed since 0.6?
Comment 6 Ingvar Hagelund 2008-06-17 07:16:29 EDT
You're probably right. I guess I have to nag someone to upgrade that mock
package on this ubuntu system.

Thanks for your time looking into this. I'll leave the bug closed.


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