This is the mail archive of the cygwin-apps@cygwin.com 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: FYI: Reboot is needed after a failed setup.


On Tue, Nov 16, 2004 at 11:37:02AM -0500, Igor Pechtchanski wrote:
>On Mon, 15 Nov 2004, Christopher Faylor wrote:
>>On Tue, Nov 16, 2004 at 01:13:48AM -0000, Max Bowsher wrote:
>>>Igor Pechtchanski wrote:
>>>>Speaking of the order in which scripts are run (but unrelated to this
>>>>discussion): the logic that is supposed to invoke postinstall scripts
>>>>in topological order of dependencies doesn't seem to work -- instead of
>>>>being invoked when their respective packages are traversed, the
>>>>postinstall scripts are executed by the catch-all clause (and thus in
>>>>alphabetical order).
>>>
>>>Yuck.
>>>
>>>Does anyone know how rpm/deb handle this kind of issue?
>>
>>rpm does a topological sort based on dependencies.  Some of the
>>dependencies are supplied in the rpm spec file, but many are derived by
>>an internal rpm algorithem which figures out requirements for things
>>like shared libraries and perl modules.
>
>Setup already has the logic to do this topological sort -- sorry if
>that was unclear.  What I meant was that the sort is done, but the
>scripts aren't invoked in the sorted order.

It was clear to me.  I was just answering the question in the context of
rpm since I'm nauseatingly familiar with rpm these days.

setup.exe does not try to detect any dependencies that are not
explicitly spelled out in the setup.hint files.  That could be a fatal
flaw since there are bound to be dependencies that are missed which may
not have an impact on installing but could have an impact on
uninstalling.  RPM does stand on its head to determine as many
dependencies as possible.

Maybe it's time for the old "why are we reinventing the wheel" speech?
:-)

cgf


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