From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47578 invoked by alias); 3 Oct 2017 19:53:44 -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 47541 invoked by uid 89); 3 Oct 2017 19:53:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=calm X-HELO: rgout0801.bt.lon5.cpcloud.co.uk Received: from rgout0801.bt.lon5.cpcloud.co.uk (HELO rgout0801.bt.lon5.cpcloud.co.uk) (65.20.0.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Oct 2017 19:53:43 +0000 X-OWM-Source-IP: 86.151.121.210 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-Junkmail-Premium-Raw: score=7/50,refid=2.7.2:2017.10.3.192716:17:7.944,ip=,rules=__HAS_FROM, __TO_MALFORMED_2, __TO_NO_NAME, __HAS_CC_HDR, __CC_NAME, __CC_NAME_DIFF_FROM_ACC, __HAS_MSGID, __SANE_MSGID, __HAS_X_MAILER, __IN_REP_TO, __REFERENCES, __FROM_DOMAIN_IN_ANY_CC1, __FRAUD_MONEY_CURRENCY_DOLLAR, __NO_HTML_TAG_RAW, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1200_1299, __MIME_TEXT_P1, __MIME_TEXT_ONLY, HTML_00_01, HTML_00_10, __FRAUD_MONEY_CURRENCY, BODY_SIZE_5000_LESS, IN_REP_TO, MSG_THREAD, __FROM_DOMAIN_IN_RCPT, __CC_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, NO_URI_FOUND, NO_CTA_URI_FOUND, BODY_SIZE_2000_LESS, __MIME_TEXT_P, REFERENCES, NO_URI_HTTPS, BODY_SIZE_7000_LESS Received: from localhost.localdomain (86.151.121.210) by rgout08.bt.lon5.cpcloud.co.uk (9.0.019.13-1) (authenticated as jonturney@btinternet.com) id 58BFF08015CDCDE8; Tue, 3 Oct 2017 20:53:42 +0100 From: Jon Turney To: cygwin-apps@cygwin.com Cc: Jon Turney Subject: [PATCH cygport 2/2] Pass BUILD_DEPENDS through to .hint for source package as build-depends: Date: Tue, 03 Oct 2017 19:53:00 -0000 Message-Id: <20171003195323.82784-3-jon.turney@dronecode.org.uk> In-Reply-To: <20171003195323.82784-1-jon.turney@dronecode.org.uk> References: <20171003195323.82784-1-jon.turney@dronecode.org.uk> X-SW-Source: 2017-10/txt/msg00019.txt.bz2 Converting a dependency atom to a package name with full generality requires a database of all the pathnames contained in all packages, so we don't even try to do that here. In the fullness of time, calm may have the information needed to perform that task, at which time it can start emitting build-depends: lines for source packages into setup.ini. --- lib/pkg_pkg.cygpart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart index cfc0770..b3aeb32 100644 --- a/lib/pkg_pkg.cygpart +++ b/lib/pkg_pkg.cygpart @@ -717,6 +717,10 @@ _EOF then cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF external-source: ${PN} +_EOF + else + cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF +build-depends: ${BUILD_DEPENDS} _EOF fi if defined ${pkg_message_var} @@ -818,6 +822,7 @@ _EOF cat > ${distdir}/${PN}/${PN}-${PVR}.hint <<-_EOF category: ${!pkg_category_var:-${CATEGORY}} requires: +build-depends: ${BUILD_DEPENDS} sdesc: "${!pkg_summary_var:-${SUMMARY}}" ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}}" skip: -- 2.14.2