Re: rpmrc settable via environment variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 4 Aug 2004 20:17:44 +0530 (IST), garima@xxxxxxxxxxxxxx
<garima@xxxxxxxxxxxxxx> wrote:
> 
> 
> > Hello,
> >
> > Is there a way to set the localtion of rpmrc via an environment variable?
> >
> > I'm using rpm 4.1 and have to use a wrapper script as the rpmrc
> > location is not predictable at compile time (long story).
> >
> > The wrapper idea seems to work fine, except when trying to integrate
> > rpm with apt-rm. One of the programs (gensrclist) seems to be making
> > an rpm call and rpm is failing becaue it can't find the right rpmrc
> > file.
> >
> > Thoughts or suggestions are welcome.
> > --
> >
> > did u try --rcfile <filelist> option to fix this problem.i think it
> should help u.

yes, i had been using a wrapper:
====
> more `which cast-rpm`
#!/bin/sh

ARCH="sunos-5.8-sparc-32"

RPM="$CAST/arch/$ARCH/bin/rpm"
RPMRC="$CAST/arch/$ARCH/lib/rpm/rpmrc"

$RPM \
    --rcfile=$RPMRC    \
    --define "CAST $CAST" 
===

But the apt-rpm program (gensrclist) seems to not be calling the
wrapper (I tried changing the wrapper's name to rpm, but that's not
it), but is using some other call to rpm (perhaps librpm)


-- 
Aamer Akhter / aakhter@gma
il.com


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux