public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: [RFC] 1.7 Packaging: Obsolete packages
Date: Thu, 21 Aug 2008 11:45:00 -0000	[thread overview]
Message-ID: <20080821114626.GL29104@calimero.vinschen.de> (raw)
In-Reply-To: <20080821103526.GJ29104@calimero.vinschen.de>

On Aug 21 12:35, Corinna Vinschen wrote:
> On Aug 21 10:26, Corinna Vinschen wrote:
> > On Aug 20 23:21, Yaakov (Cygwin Ports) wrote:
> > > Corinna Vinschen wrote:
> > > > What if we add an "obsoletes:" line to setup.{ini,hint}?
> > > > [...]
> > > Any progress yet on this one?
> > 
> > Unfortunately not.  The package management in setup is written in some
> > sort of martial-arts C++, which I have trouble to follow through.  For
> > this and for the problem I describe in
> > 
> > http://cygwin.com/ml/cygwin-apps/2008-08/msg00162.html
> > 
> > I would need help.
> 
> Setup.exe apparently already understands package lists in setup.ini
> which start with "Replaces:" (upper case R), collects the information
> and stores it in an internal list, but then doesn't seem to use it
> later on.  Too bad.

IIUC, the ConnectedLoopFinder::visit() function is the core function
which creates the dependency order.  What I don't get is this: The
function starts with:

  if (!db.packages[nodeToVisit]->installed)
    /* Can't visit this node, and it is not less than any visted node */
    return db.packages.size() + 1;

So, it skips packages which are not installed?  What about packages
which are about to be installed the first time?  Isn't their "installed"
packageversion NULL and only "desired" is a vaild version?

And then, assuming a package is about to be uninstalled.  Doesn't that
package have a "desired" of NULL?  And shouldn't such a package be
skipped in the dependency tracking?

I don't see where "installed" is set to the "desired" packageversion
before the dependency tracking is called.  Can anybody help me to
understand this?


Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

  reply	other threads:[~2008-08-21 11:45 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24  4:44 Yaakov (Cygwin Ports)
2008-07-24  9:43 ` Corinna Vinschen
2008-07-24 23:44   ` Yaakov (Cygwin Ports)
2008-07-25  9:40     ` Corinna Vinschen
2008-07-25 14:53       ` Christopher Faylor
2008-07-25 15:16         ` Corinna Vinschen
2008-07-25 16:13           ` Christopher Faylor
2008-07-28  2:20         ` Yaakov (Cygwin Ports)
2008-07-28  8:45           ` Corinna Vinschen
2008-07-28 16:40           ` Brian Dessent
2008-07-30 12:17       ` Corinna Vinschen
2008-07-30 15:01         ` Yaakov (Cygwin Ports)
2008-07-30 15:25         ` Christopher Faylor
2008-08-21  4:22         ` Yaakov (Cygwin Ports)
2008-08-21  8:24           ` Corinna Vinschen
2008-08-21 10:34             ` Corinna Vinschen
2008-08-21 11:45               ` Corinna Vinschen [this message]
2008-08-22  1:30                 ` Brian Dessent
2008-08-22  8:18                   ` Corinna Vinschen
2008-08-22  8:53                     ` Brian Dessent
2008-08-22  9:12                       ` Brian Dessent
2008-08-22  9:23                       ` Corinna Vinschen
2008-08-22  9:30                         ` Brian Dessent
2008-08-22 10:11                         ` Corinna Vinschen
2008-08-22 10:54                           ` Brian Dessent
2008-08-25 10:27                             ` Corinna Vinschen
2008-08-22  9:26                       ` Brian Dessent
2008-08-22 11:25                       ` Charles Wilson
2008-08-21 23:47               ` Yaakov (Cygwin Ports)
2008-07-25 19:31   ` Nicholas Wourms

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080821114626.GL29104@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).