From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77205 invoked by alias); 25 Jun 2018 15:10:42 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 77187 invoked by uid 89); 25 Jun 2018 15:10:42 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=began, H*m:edu, calm, auto-generated X-HELO: limerock02.mail.cornell.edu Received: from limerock02.mail.cornell.edu (HELO limerock02.mail.cornell.edu) (128.84.13.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Jun 2018 15:10:40 +0000 Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id w5PFAc3p022691; Mon, 25 Jun 2018 11:10:38 -0400 Received: from nothing.nyroc.rr.com (mta-68-175-129-7.twcny.rr.com [68.175.129.7] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id w5PFAVwU023114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 25 Jun 2018 11:10:37 -0400 From: Ken Brown To: cygwin-apps@cygwin.com Subject: [PATCH cygport 0/4] Support dependencies with version relations Date: Mon, 25 Jun 2018 15:10:00 -0000 Message-Id: <20180625151031.13164-1-kbrown@cornell.edu> X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00028.txt.bz2 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