[PATCH cygport 0/4] Support dependencies with version relations
Ken Brown
kbrown@cornell.edu
Mon Jun 25 15:10:00 GMT 2018
This patch series presupposes the name change of DEPEND to
BUILD_DEPENDS proposed by Jon in
https://sourceware.org/ml/cygwin-apps/2017-10/msg00018.html.
Ever since setup began using libsolv, setup (and calm) are able to
support dependencies with version relations. These can be specified
in the 'depends:' field of a .hint file like this:
depends: cygwin (>=2.10), bash (=4.4.12-3)
This patch series adds cygport support for such dependencies. The
user can specify versioned dependencies via a new [PKG_]DEPENDS
variable, and cygport generates versioned dependencies in its
auto-generated .hint files. The latter is intended to avoid problems
like the one reported here:
https://cygwin.com/ml/cygwin/2018-03/msg00365.html
An obvious potential problem is the confusion between the new DEPENDS
and the old DEPEND (which is an obsolete alias for BUILD_DEPENDS after
Jon's renaming). I've chosen to ignore that problem in these patches,
except for a warning in the documentation. At the very least, a
HEADSUP email to maintainers will be required. Alternatively, we
could drop DEPENDS and insist on PKG_DEPENDS even if there's only one
package.
Ken Brown (4):
pkg_dist: use 'depends:' instead of 'requires:' in generated .hint
files
pkg_dist: add support for dependencies with version relations
pkg_dist: record package versions in "depends:"
Update sample.cygport
data/sample.cygport | 10 ++++-
lib/pkg_pkg.cygpart | 91 +++++++++++++++++++++++++++++++++++++++------
2 files changed, 88 insertions(+), 13 deletions(-)
--
2.17.0
More information about the Cygwin-apps
mailing list