Red Hat Bugzilla – Bug 163144
RPM may incorrectly brings in the /usr/local directory during configure
Last modified: 2007-11-30 17:11:09 EST
Description of problem:
RPM can incorrectly pull in libraries and include files during configuration
from /usr/local. (In a normal environment, if /usr/local is to be used for
files these are usually passed in to configure.)
Version-Release number of selected component (if applicable):
The code in question is in the configure.ac file, it starts w/ "localdone=" and
ends just before the "AC_MSG_CHECKING(for /usr/ucblib in LIBS)".
The attached patch removes this behavior. (We have been using this patch since
Created attachment 116709 [details]
Remove /usr/local behavior
The patch is a bit more drastic than necessary. All that is needed is to
not add "/usr/local" to $dirs. That way $prefix is still searched, and /usr/local
will be searched if that is the prefix.
Fixed in rpm-4.4.3-0.23.