[Rpm-maint] discussion on problems of RPM in real life packaging

Jeremy Katz katzj at redhat.com
Tue Jun 17 15:41:30 UTC 2008


On Tue, 2008-06-17 at 15:38 +0200, Stanislav Brabec wrote:
> Seth Vidal wrote:
> > On Tue, 17 Jun 2008, Stanislav Brabec wrote:
> > > Seth Vidal wrote:
> > >> %pretans plays all sorts of hell with chroot installs. We tend to
> > >> discourage them as much as possible.
> > >
> > > Why they are different than %post in chroot?
> > 
> > b/c %post happens AFTER the chroot exists. %pretrans would happen before 
> > it exists.
> 
> In theory, adding some PreReq tags should split installation to more
> transactions, but AFAIK, "Requires(pretrans): glibc" is not implemented
> yet. I did never experiment with it.

That pre-supposes that you're splitting transactions.  Which can't be
guaranteed unless that's implemented in rpm (as 'rpm --root=/tmp/newroot
-ivh *rpm' will need to continue to work as long as /bin/rpm continues
to exist).  Which promises to be ... "exciting"

Jeremy




More information about the Rpm-maint mailing list