From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54605 invoked by alias); 6 Feb 2018 21:14:05 -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 54549 invoked by uid 89); 6 Feb 2018 21:14:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.8 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=PVR, pvr X-HELO: rgout01.bt.lon5.cpcloud.co.uk Received: from rgout0103.bt.lon5.cpcloud.co.uk (HELO rgout01.bt.lon5.cpcloud.co.uk) (65.20.0.123) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Feb 2018 21:14:02 +0000 X-OWM-Source-IP: 86.173.196.20 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-Junkmail-Premium-Raw: score=7/50,refid=2.7.2:2018.2.6.205416:17:7.944,ip=,rules=__HAS_FROM, __TO_MALFORMED_2, __TO_NO_NAME, __HAS_CC_HDR, __CC_NAME, __CC_NAME_DIFF_FROM_ACC, __SUBJ_ALPHA_END, __HAS_MSGID, __SANE_MSGID, __HAS_X_MAILER, __FROM_DOMAIN_IN_ANY_CC1, __ANY_URI, __URI_NO_WWW, __FRAUD_MONEY_CURRENCY_DOLLAR, __NO_HTML_TAG_RAW, BODY_SIZE_1100_1199, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_P1, __MIME_TEXT_ONLY, __URI_NS, HTML_00_01, HTML_00_10, __FRAUD_MONEY_CURRENCY, BODY_SIZE_5000_LESS, __FROM_DOMAIN_IN_RCPT, __CC_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, BODY_SIZE_2000_LESS, __MIME_TEXT_P, NO_URI_HTTPS, BODY_SIZE_7000_LESS Received: from localhost.localdomain (86.173.196.20) by rgout01.bt.lon5.cpcloud.co.uk (9.0.019.21-1) (authenticated as jonturney@btinternet.com) id 5A5E189401FEDD6C; Tue, 6 Feb 2018 21:14:00 +0000 From: Jon Turney To: cygwin-apps@cygwin.com Cc: Jon Turney Subject: [PATCH cygport] Produce obsoletes: headers in .hint files Date: Tue, 06 Feb 2018 21:14:00 -0000 Message-Id: <20180206211309.455912-1-jon.turney@dronecode.org.uk> X-SW-Source: 2018-02/txt/msg00009.txt.bz2 Signed-off-by: Jon Turney --- lib/pkg_pkg.cygpart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart index 0dba03d..aa6f0e8 100644 --- a/lib/pkg_pkg.cygpart +++ b/lib/pkg_pkg.cygpart @@ -718,6 +718,11 @@ requires: ${pkg_bin_requires} ${!pkg_requires_var} sdesc: "${!pkg_summary_var:-${SUMMARY}}" ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}}" _EOF + if [ -n "${!pkg_obsoletes_var}" ] + then + cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF +obsoletes: ${!pkg_obsoletes_var} + fi if defined distsubdir then cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF @@ -788,6 +793,11 @@ ldesc: "This package contains files necessary for debugging the ${PN} package with gdb." ${pkg_tag} _EOF + if [ -n "${!dbg_obsoletes_var}" ] + then + cat >> ${distdir}/${PN}/${PN}-debuginfo/${PN}-debuginfo-${PVR}.hint <<-_EOF +obsoletes: ${!dbg_obsoletes_var} + fi fi for obspkg in ${!dbg_obsoletes_var} -- 2.16.1