Re: gensrclist call to rpm

Panu Matilainen <[email protected]> Wed, 04 Aug 2004 19:16:57 +0300
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
On Wed, 2004-08-04 at 17:55, Aamer Akhter wrote:
> Hello,
> 
> I have my rpmrc file in a nonstandard place. It's not in a
> predictable, so what I had been doing was to use a wrapper script to
> interact with rpm. The wrapper sets the --rcfile arg and passes and
> other args right to rpm.
> 
> However, gensrclist seems to be making an rpm call, that I seem not to
> have any control over. So rpm tries to go read a non-existant rpmrc
> file. eg:
> 
> Processing srclists... generalerror: Unable to open
> /var/tmp/rpm-4.1/lib/rpm/rpmrc for reading: No such file or directory.
>  done


Gensrclist, genpkglist and apt itself use rpmReadConfigFiles() call of
rpmlib to read in the configuration so it depends on how rpm itself was
built. The above looks like rpm was set up with
"./configure --prefix=/var/tmp/rpm-4.1" which is something you probably
don't want in any case, better to use some sane path as --prefix and
then install to whatever location necessary with "make install
DESTDIR=/some/where". 

Some background on what exactly are you trying to accomplish here and
why would help coming up with some kind of solution.

	- Panu -