Bug 81196

Summary: RPM will not build in a sub directory
Product: [Fedora] Fedora Reporter: Mark Hatle <mhatle>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DEFERRED QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-12 17:16:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Part 1 of our patch to fix this.
none
Part 2 of our patch to fix this - Hack to fix libelf from not being found properly.
none
Part 3 of our patch to fix this - Include files
none
Part 4 of our patch to fix this - db3 configure none

Description Mark Hatle 2003-01-06 18:10:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20021030

Description of problem:
when I build software with configure I normally do:

mkdir objdir
cd objdir
../configure [options]
make

rpm does not support this correct.  (Various source files don't show up properly.)

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
(inside of the rpm 4.1 source code directory)

1. mkdir objdir
2. cd objdir
3. ../configure [options]
4. make


Actual Results:  Software fails to build.

Expected Results:  Software should build without errors.

Additional info:

Comment 1 Mark Hatle 2003-01-06 18:12:36 UTC
Created attachment 89165 [details]
Part 1 of our patch to fix this.

These patches are designed for our system and may contain a few "short cuts"
<cough>hacks</cough>, but are generally correct.

Comment 2 Mark Hatle 2003-01-06 18:14:01 UTC
Created attachment 89166 [details]
Part 2 of our patch to fix this - Hack to fix libelf from not being found properly.

This is needed to make the building in an alternative directory work, but it is
a hack.  I was not sure of the correct fix.

Comment 3 Mark Hatle 2003-01-06 18:14:53 UTC
Created attachment 89167 [details]
Part 3 of our patch to fix this - Include files

Fix the include component when building in an alternative location.

Comment 4 Mark Hatle 2003-01-06 18:16:10 UTC
Created attachment 89168 [details]
Part 4 of our patch to fix this - db3 configure

The integrated DB3's configure shell script was unable to work in an
alternative build environment.	This should fix that.

Comment 5 Paul Nasrat 2005-06-07 21:35:52 UTC
Mark do you still require this functionality in upstream rpm?  Can you confirm
still an issue with rpm 4.4.x/HEAD?

Comment 6 Mark Hatle 2005-06-07 22:35:14 UTC
This was still broken as of RPM 4.3.  I have not tried to do this in rpm 4.4 yet.

Is this absolutly required, no.  But it's nice to be able to build in an objdir.

Feel free to change this to an enhancement request.

Comment 7 Paul Nasrat 2005-09-29 18:54:31 UTC
Changing to enhancement - rediff against HEAD/rpm 4.4.x will certainly expediate.

Comment 8 Jeff Johnson 2006-02-12 17:16:31 UTC
Almost all of the changes have been applied. The perl subdir still has problems, but
that's because of the way in which "perl Makefile.PL" and MakeMaker are wired up.

Deferred until somewhen.