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:
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.
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.
Created attachment 89167 [details] Part 3 of our patch to fix this - Include files Fix the include component when building in an alternative location.
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.
Mark do you still require this functionality in upstream rpm? Can you confirm still an issue with rpm 4.4.x/HEAD?
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.
Changing to enhancement - rediff against HEAD/rpm 4.4.x will certainly expediate.
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.