public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin-apps@cygwin.com
Subject: Re: [RFC] calm, setup: per-version requires
Date: Tue, 05 Dec 2017 14:32:00 -0000	[thread overview]
Message-ID: <0ec636c4-81b8-dc5a-97e9-9147474d8792@dronecode.org.uk> (raw)
In-Reply-To: <87r2t7tix1.fsf@Rainer.invalid>

On 09/11/2017 18:18, Achim Gratz wrote:
> Jon Turney writes:
>> On 05/11/2017 07:34, Achim Gratz wrote:
>> Yeah, I guess we could generate requires: line in each version section
>> now, and this might work with current setup.  I don't think this did
>> anything useful prior to [1] being fixed.
> 
> Yes, and even though I think the parser would accept them they weren't
> really expected anyway.
> 
>> The libsolv branch implements per-version '[dD]epends:' headers as per
>> [2] (which may also contain a version relation)
> 
> I'd really prefer we'd come up with a solution that does not have us
> repeat the common dependencies for each version present.

My current plan is to do the simplest thing:
- requires: remains the union of dependencies
- if the version has a depends: hint, use that for depends: (not 
something cygport is currently capable of generating)
- otherwise, generate depends: from the requires: hint for the version


It's probably useful to bear in mind how various versions of setup will 
behave if I was to turn on 'depends:' generation in calm.  From staring 
at the code (so subject to testing), I think it breaks down as follows:

prior to 2.880:  Will ignore 'depends:', so 'requires:' needs to remain 
the union of dependencies for the benefit of these versions of setup.

2.880 onwards: The curr: version will get the union of 'depends:' and 
'requires:', other versions will get 'requires:'.

The prereq checker checks that the dependencies are satisfied (including 
any version relation), but then installs the 'curr:' or 'test:' version 
(depending on chooser preference) imagining that will satisfy it.

libsolv-based: 'depends:' supersedes 'requires:', installs the right 
right thing (hopefully :))

  reply	other threads:[~2017-12-05 14:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-05  7:35 Achim Gratz
2017-11-09 14:27 ` Jon Turney
2017-11-09 18:18   ` Achim Gratz
2017-12-05 14:32     ` Jon Turney [this message]
2017-12-05 18:15       ` Achim Gratz
2017-12-11 19:08         ` Jon Turney

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=0ec636c4-81b8-dc5a-97e9-9147474d8792@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --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).