Re: RPM %post dying - pthread, fork, execve

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

 



On Tue, 10 Aug 2004, James Olin Oden wrote:
> On Tue, 10 Aug 2004, James Olin Oden wrote:
> > On Tue, 10 Aug 2004, Paul Nasrat wrote:
> > 
> > > On Tue, Aug 10, 2004 at 10:55:03PM +0300, Panu Matilainen wrote:
> > > > On Tue, 2004-08-10 at 22:44, David D. Hagood wrote:
> > > > >   > Just guessing but are you calling rpmtsSetRootDir() before running the
> > > > > > transaction? Even if the rootdir is set to NULL you have to initialize
> > > > > > it on rpm >= 4.1, otherwise all scriptlets will fail.
> > > > > 
> > > > > That was it - thanks!
> > > > 
> > > > You're not the first and probably not the last either (been there... :)
> > > > to miss that bit.
> > > > 
> > > > Jeff & co - how about a little comment in the sources about the
> > > > necessity of calling rpmtsSetRootDir() before rpmtsRun() ?
> > > 
> > > Probably best as doxygen, if someone feels like knocking up a patch then that's great, else I'll try and look at tomorrow...
> > >
> > Paul I can do that if you have not already done it.  It will make feel 
> > like I am contributing (-;  Been a bit busy and away from rpm these days.
> >
> Paul, 
> 
> I have updated the doxygen in rpmts.h for rpmtsRun() to give a 
> bulleted list of the requirements.  Its in the head.  If you could 
> verify that I covered all the requirements, I would appreciate it.

It should be rpmtsSetRootDir(), not rpmtsRoot() which is for *getting* the
current root :) Also setting rpmtsSetVSFlags() isn't mandatory for the
transaction to succeed, if not called the defaults will be used. IIRC that
is.

Hmm.. would be nice if we had some *tiny* examples of using rpmlib from C, 
along the lines what's in Paul's excellent rpm-python slides. Sure the 
information can be dug out from rpm's or apt-rpm's sources but neither are 
the easiest reading there is in the OSS world :) I'll try to come up with 
something one of these days unless of course somebody beats me to it.

	- Panu -


_______________________________________________
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