This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Postinstall script ordering in setup - take 2

On 5 Mar 2003, Robert Collins wrote:

> On Wed, 2003-03-05 at 08:19, Igor Pechtchanski wrote:
> > On 5 Mar 2003, Robert Collins wrote:
> > > Using the packages as dependencies we can build the same topological
> > > tree based on the packages that will end up as installed (Because we do
> > > know which package has which postinstall script).
> >
> > Yes, but using scripts is more fine-grained.
> What granularity is needed that isn't present today?
> Rob

Well, one example I could think of off the top of my head is mutually
dependent packages.  Package dependences can be circular, script
dependences cannot.  Suppose we have packages A (containing and and B (containing and  Currently we can specify that
A should be installed for B to work, *and* that B should be installed for
A to work.  However, we can't specify, for example, that should run
before, but should run before  We could say that
postinstall scripts in mutually-dependent packages will run in an
indeterminate order, but we'd have to run either both B?.sh first or both
A?.sh first.  Even combining them into one package will not ensure
postinstall script ordering.  The only solution I see, aside from adding
script dependences, is a bunch of almost-empty helper packages...
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]