delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/27/13:40:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 27 Sep 2004 13:39:53 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave Korn <dk AT artimi DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: Is setup.exe _supposed_ to delete the cygwin dll before attempting to run shell scripts?
In-Reply-To: <NUTMEG1NFh5TAAl4sAt0000010c@NUTMEG.CAM.ARTIMI.COM>
Message-ID: <Pine.GSO.4.61.0409271338380.13693@slinky.cs.nyu.edu>
References: <NUTMEG1NFh5TAAl4sAt0000010c AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 27 Sep 2004, Dave Korn wrote:

> > -----Original Message-----
> > From: cygwin-owner On Behalf Of Brian Dessent
> > Sent: 24 September 2004 23:34
>
> > Igor Pechtchanski wrote:
> >
> > > > You first get the depth-first order: D, C, B, A.
> > >
> > > <PEDANTIC>
> > > Properly speaking, the depth-first order will be B, D, C, A...
> > > </PEDANTIC>
> >
> > D'oh'
> >
> > > Unfortunately, this won't work when you have circular dependencies
> > > (e.g., cygwin <-> fileutils).
> >
> > Oh, did I forget to say the graph must be a DAG before starting?  :)
> > Anyway, there are heuristics that could be used to find the best
> > "feedback set" of edges for which removal would result in an acyclic
> > graph.  e.g. the one described at
> > <http://www2.toki.or.id/book/AlgDesignManual/BOOK/BOOK4/NODE182.HTM>
> >
>
>   Deleting edges from a graph won't actually make a package that depends
> on another operate successfully without that other package present!
> OTOH what I think might work would be to identify loops in the full
> dependency graph and treat them as single packages that must be
> installed or uninstalled together - effectively encapsulating the loop
> inside a single node and thereby reducing the graph to a DAG.

And what would be the order in which you would run the preremove scripts
from all of the packages in the loop?  Or are you saying that they should
be considered packaging errors, and let setup do what it may?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019