postinstall w/dependencies snapshot.
Igor Pechtchanski
pechtcha@cs.nyu.edu
Sun Mar 23 01:04:00 GMT 2003
On 23 Mar 2003, Robert Collins wrote:
> On Sun, 2003-03-23@03:50, Igor Pechtchanski wrote:
> > On 18 Mar 2003, Robert Collins wrote:
> >
> > > I've uploaded a new snapshot with the new postinstall dependency order
> > > logic.
> > >
> > > Enjoy.
> > >
> > > A big thanks to Igor, for providing both the concept and the impetus :}.
> > > Rob
> >
> > Rob,
> >
> > Thanks for the thanks. :-)
> > I'm assuming this makes the "setup postinstall ordering" patch obsolete?
> > Or does it still have some functionality you'd like to have in setup?
> > Igor
>
> Well IMO yes it's obsolete. As I originally said, I consider the package
> dependency ordering solution both the permanent and sufficient solution.
> I always considered script dependencies short term, but if there are
> still issues (now that the package dependency solution is 'doing the
> right thing') I'm happy to discussion addressing that by either script
> depends or tweaks to the package ordering....
Did we solve the issue of update_info_dir being run last? Otherwise, I
don't think there are any outstanding issues.
> I had a brain storm BTW:
>
> my shells not great, but this should give the idea
>
> #!/bin/sh
> if [test -e /etc/postinstall/myprerequisite.sh]
> /bin/sh /etc/postinstall/myprerequisite.sh
> mv /etc/postinstall/myprerequisite.sh
> /etc/postinstall/myprerequisiste.sh.done
> fi
>
> ...
>
> I'm not sure whether this is good or bad... :}.
> Rob
Bad, IMO. Hard to parse, and duplicates setup.exe's functionality.
I now agree that the idea of using package dependences for everything is
better than putting dependences inside the scripts themselves. There are
two things dependences are used for: pulling the needed packages in, and
running postinstall scripts. We somehow need to reconcile them.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.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
More information about the Cygwin-apps
mailing list