* mksetupini: Presence of both 'requires:' and 'depends:' in a PVR.hint file
@ 2018-06-24 18:28 Ken Brown
2018-06-26 20:19 ` Jon Turney
0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2018-06-24 18:28 UTC (permalink / raw)
To: cygwin-apps
I'd like to add support to cygport for dependencies with version
relations. In the course of working on this, I was led to question the
behavior of mksetupini when a PVR.hint file contains both a 'requires:'
and a 'depends:' field [*].
Currently, the 'requires:' field gets propagated to the 'requires:'
field of setup.ini, and the 'depends:' field gets propagated to the
(version-specific) 'depends2:' field of setup.ini. When setup parses
setup.ini, the 'depends2:' field takes precedence over the
(non-version-specific) 'requires:' field.
The net effect, then, is that the 'requires:' field of PVR.hint is
ignored. Wouldn't it make more sense for mksetupini to fold the
'requires:' field into the 'depends2:' field of setup.ini?
Alternatively, maybe we shouldn't allow PVR.hint to contain both
'requires:' and 'depends:'
Ken
[*] I can't think of a good reason to create such a .hint file, but it
appears to be allowed in
https://cygwin.com/packaging-hint-files.html#pvr.hint.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mksetupini: Presence of both 'requires:' and 'depends:' in a PVR.hint file
2018-06-24 18:28 mksetupini: Presence of both 'requires:' and 'depends:' in a PVR.hint file Ken Brown
@ 2018-06-26 20:19 ` Jon Turney
2018-07-05 15:11 ` Ken Brown
0 siblings, 1 reply; 4+ messages in thread
From: Jon Turney @ 2018-06-26 20:19 UTC (permalink / raw)
To: cygwin-apps
On 24/06/2018 19:28, Ken Brown wrote:
> I'd like to add support to cygport for dependencies with version
> relations. In the course of working on this, I was led to question the
> behavior of mksetupini when a PVR.hint file contains both a 'requires:'
> and a 'depends:' field [*].
>
> Currently, the 'requires:' field gets propagated to the 'requires:'
> field of setup.ini, and the 'depends:' field gets propagated to the
> (version-specific) 'depends2:' field of setup.ini. When setup parses
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;a=commitdiff;h=d9c7afb936325431c13557f5845518dae7519a4c;hp=11c23cbac2c196aecfa9c737464ea327d8970711
> setup.ini, the 'depends2:' field takes precedence over the
> (non-version-specific) 'requires:' field.
>
> The net effect, then, is that the 'requires:' field of PVR.hint is
> ignored. Wouldn't it make more sense for mksetupini to fold the
Almost. It's not being ignored by setup versions <2.884.
I'd like to do something to stop those versions from being used in a
moderately graceful way, but that hasn't happened yet :S
> 'requires:' field into the 'depends2:' field of setup.ini?
> Alternatively, maybe we shouldn't allow PVR.hint to contain both
> 'requires:' and 'depends:'
Yeah, this isn't very useful, and should probably be disallowed.
Certainly, I think it would be fine for cygport to just generate
depends: and let mksetupini worry (or not) about older setup versions.
> [*] I can't think of a good reason to create such a .hint file, but it
> appears to be allowed in
> https://cygwin.com/packaging-hint-files.html#pvr.hint.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mksetupini: Presence of both 'requires:' and 'depends:' in a PVR.hint file
2018-06-26 20:19 ` Jon Turney
@ 2018-07-05 15:11 ` Ken Brown
2018-07-05 18:17 ` Jon Turney
0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2018-07-05 15:11 UTC (permalink / raw)
To: cygwin-apps
On 6/26/2018 4:19 PM, Jon Turney wrote:
> Almost. It's not being ignored by setup versions <2.884.
>
> I'd like to do something to stop those versions from being used in a
> moderately graceful way, but that hasn't happened yet :S
Could you accomplish that by putting 'setup-minimum-version: 2.884' in
setup.ini (and sending a warning to cygwin-announce)?
Ken
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mksetupini: Presence of both 'requires:' and 'depends:' in a PVR.hint file
2018-07-05 15:11 ` Ken Brown
@ 2018-07-05 18:17 ` Jon Turney
0 siblings, 0 replies; 4+ messages in thread
From: Jon Turney @ 2018-07-05 18:17 UTC (permalink / raw)
To: cygwin-apps
On 05/07/2018 16:11, Ken Brown wrote:
> On 6/26/2018 4:19 PM, Jon Turney wrote:
>> Almost. It's not being ignored by setup versions <2.884.
>>
>> I'd like to do something to stop those versions from being used in a
>> moderately graceful way, but that hasn't happened yet :S
>
> Could you accomplish that by putting 'setup-minimum-version: 2.884' in
> setup.ini (and sending a warning to cygwin-announce)?
Sadly not, since that wasn't added until 2.891 :(
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-07-05 18:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-24 18:28 mksetupini: Presence of both 'requires:' and 'depends:' in a PVR.hint file Ken Brown
2018-06-26 20:19 ` Jon Turney
2018-07-05 15:11 ` Ken Brown
2018-07-05 18:17 ` Jon Turney
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).