From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15820 invoked by alias); 30 Aug 2016 12:25:20 -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 15810 invoked by uid 89); 30 Aug 2016 12:25:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=ALSO, Packaging, SUMMARY, categories X-HELO: rgout0401.bt.lon5.cpcloud.co.uk Received: from rgout0401.bt.lon5.cpcloud.co.uk (HELO rgout0401.bt.lon5.cpcloud.co.uk) (65.20.0.214) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Aug 2016 12:25:09 +0000 X-OWM-Source-IP: 31.51.206.108 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-Junkmail-Premium-Raw: score=7/50,refid=2.7.2:2016.8.30.110617:17:7.944,ip=31.51.206.108,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, __FROM_DOMAIN_IN_ANY_CC1, __ANY_URI, __URI_WITH_PATH, __URI_NO_WWW, __CP_URI_IN_BODY, __FRAUD_MONEY_CURRENCY_DOLLAR, __URI_IN_BODY, __HTML_AHREF_TAG, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, HTML_00_01, HTML_00_10, __FRAUD_MONEY_CURRENCY, RDNS_SUSP_GENERIC, __SINGLE_URI_TEXT, SINGLE_URI_IN_BODY, __FROM_DOMAIN_IN_RCPT, RDNS_SUSP, NO_URI_HTTPS, __CC_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, LEGITIMATE_NEGATE Received: from localhost.localdomain (31.51.206.108) by rgout04.bt.lon5.cpcloud.co.uk (8.6.122.06) (authenticated as jonturney@btinternet.com) id 57C4BB250012E2E3; Tue, 30 Aug 2016 13:25:02 +0100 From: Jon Turney To: cygwin-apps@cygwin.com Cc: Jon Turney Subject: [PATCH cygport] Write and upload pvr.hint rather than setup.hint Date: Tue, 30 Aug 2016 12:25:00 -0000 Message-Id: <20160830122441.195772-1-jon.turney@dronecode.org.uk> X-SW-Source: 2016-08/txt/msg00104.txt.bz2 For a source-only package, rather than just a skip: key, write category:, requires:, ldesc: and sdesc: keys as well. Signed-off-by: Jon Turney --- lib/pkg_pkg.cygpart | 46 ++++++++++++++++++++++++++-------------------- lib/pkg_upload.cygpart | 6 +++--- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart index 702c5c2..294260d 100644 --- a/lib/pkg_pkg.cygpart +++ b/lib/pkg_pkg.cygpart @@ -536,7 +536,7 @@ __pkg_dist() { #****v* Packaging/CATEGORY # DESCRIPTION # A string containing one or more setup package categories. This will be -# used as the category: field of auto-generated setup.hint files. +# used as the category: field of auto-generated .hint files. # NOTE # A list of official categories is available on the # |html Cygwin website. @@ -546,7 +546,7 @@ __pkg_dist() { #****v* Packaging/PKG_CATEGORY # DESCRIPTION # A string containing one or more setup package categories. This will be -# used as the category: field of the corresponding auto-generated setup.hint +# used as the category: field of the corresponding auto-generated .hint # file. # # Note that the PKG_CATEGORY name is descriptive rather than literal, @@ -562,14 +562,14 @@ __pkg_dist() { #****v* Packaging/SUMMARY # DESCRIPTION # A one-line summary of the package. This will be used as the sdesc: field -# of auto-generated setup.hint files. +# of auto-generated .hint files. # SEE ALSO # PKG_SUMMARY #**** #****v* Packaging/PKG_SUMMARY # DESCRIPTION # A one-line summary of the subpackage. This will be used as the sdesc: -# field of the corresponding auto-generated setup.hint file. +# field of the corresponding auto-generated .hint file. # # Note that the PKG_SUMMARY name is descriptive rather than literal, # where "PKG" should be substituted with the name of the binary package @@ -581,14 +581,14 @@ __pkg_dist() { #****v* Packaging/DESCRIPTION # DESCRIPTION # A short paragraph description of the package. This will be used as the -# ldesc: field of auto-generated setup.hint files. +# ldesc: field of auto-generated .hint files. # SEE ALSO # PKG_DESCRIPTION #**** #****v* Packaging/PKG_DESCRIPTION # DESCRIPTION # A short paragraph description of the subpackage. This will be used as the -# ldesc: field of the corresponding auto-generated setup.hint file. +# ldesc: field of the corresponding auto-generated .hint file. # # Note that the PKG_DESCRIPTION name is descriptive rather than literal, # where "PKG" should be substituted with the name of the binary package @@ -601,7 +601,7 @@ __pkg_dist() { # DESCRIPTION # A single-line strings containing a list of packages on which this # package depends. This will be added to the requires: field of the -# auto-generated setup.hint file. +# auto-generated .hint file. # NOTES # * cygport attempts to automatically detect many types of package # dependencies, which do not need to be listed in REQUIRES. This is still @@ -617,7 +617,7 @@ __pkg_dist() { # DESCRIPTION # A single-line strings containing a list of packages on which this # package depends. This will be added to the requires: field of the -# auto-generated setup.hint file. +# auto-generated .hint file. # # Note that the PKG_REQUIRES name is descriptive rather than literal, # where "PKG" should be substituted with the name of the binary package @@ -684,7 +684,7 @@ __pkg_dist() { if [ -f ${C}/${pkg_hint[${n}]%.hint}.hint ] then - cp ${C}/${pkg_hint[${n}]%.hint}.hint ${distdir}/${PN}/${distsubdir}/setup.hint; + cp ${C}/${pkg_hint[${n}]%.hint}.hint ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint; elif [ -n "${!pkg_category_var:-${CATEGORY}}" -a -n "${!pkg_summary_var:-${SUMMARY}}" ] then if [ "${CBUILD##*-}" = "cygwin" ] @@ -695,10 +695,10 @@ __pkg_dist() { __step "${pkg_name[${n}]} requires: ${pkg_bin_requires} ${!pkg_requires_var}" else pkg_bin_requires= - inform "ADD ${distsubdir:-${PN}} DLL DEPENDENCIES TO ${PN}${distsubdir:+/}${distsubdir}/setup.hint" + inform "ADD ${distsubdir:-${PN}} DLL DEPENDENCIES TO ${PN}${distsubdir:+/}${distsubdir}/${pkg_name[${n}]}-${PVR}.hint" fi - cat > ${distdir}/${PN}/${distsubdir}/setup.hint <<-_EOF + cat > ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF category: ${!pkg_category_var:-${CATEGORY}} requires: ${pkg_bin_requires} ${!pkg_requires_var} sdesc: "${!pkg_summary_var:-${SUMMARY}}" @@ -706,13 +706,13 @@ ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}} _EOF if defined distsubdir then - cat >> ${distdir}/${PN}/${distsubdir}/setup.hint <<-_EOF + cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF external-source: ${PN} _EOF fi if defined ${pkg_message_var} then - cat >> ${distdir}/${PN}/${distsubdir}/setup.hint <<-_EOF + cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF message: ${pkg_name[${n}]} "${!pkg_message_var}" _EOF fi @@ -727,7 +727,7 @@ _EOF __step "${pkg_name[${n}]} OBSOLETES: ${obspkg}" - cat > ${distdir}/${PN}/${obspkg}/setup.hint <<-_EOF + cat > ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}.hint <<-_EOF category: _obsolete requires: ${pkg_name[${n}]} sdesc: "Obsoleted by ${pkg_name[${n}]}" @@ -745,16 +745,16 @@ _EOF then if [ -f ${C}/${PN}-debuginfo.hint ] then - cp ${C}/${PN}-debuginfo.hint ${distdir}/${PN}/${PN}-debuginfo/setup.hint + cp ${C}/${PN}-debuginfo.hint ${distdir}/${PN}/${PN}-debuginfo/${PN}-debuginfo-${PVR}.hint elif [ -f ${C}/debuginfo.hint ] then - cp ${C}/debuginfo.hint ${distdir}/${PN}/${PN}-debuginfo/setup.hint + cp ${C}/debuginfo.hint ${distdir}/${PN}/${PN}-debuginfo/${PN}-debuginfo-${PVR}.hint else if [ "${PN}" != "cygwin-debuginfo" ] then pkg_debug_requires=cygwin-debuginfo fi - cat > ${distdir}/${PN}/${PN}-debuginfo/setup.hint <<-_EOF + cat > ${distdir}/${PN}/${PN}-debuginfo/${PN}-debuginfo-${PVR}.hint <<-_EOF category: Debug requires: ${pkg_debug_requires} external-source: ${PN} @@ -774,14 +774,20 @@ _EOF if [ -f ${C}/${PN}.hint ] then - cp ${C}/${PN}.hint ${distdir}/${PN}/setup.hint + cp ${C}/${PN}.hint ${distdir}/${PN}/${PN}-${PVR}.hint elif [ -f ${C}/setup.hint ] then - cp ${C}/setup.hint ${distdir}/${PN}/setup.hint + cp ${C}/setup.hint ${distdir}/${PN}/${PN}-${PVR}.hint elif [ -n "${!pkg_category_var:-${CATEGORY}}" \ -a -n "${!pkg_summary_var:-${SUMMARY}}${!pkg_description_var:-${DESCRIPTION}}" ] then - echo "skip:" > ${distdir}/${PN}/setup.hint + cat > ${distdir}/${PN}/${PN}-${PVR}.hint <<-_EOF +category: ${!pkg_category_var:-${CATEGORY}} +requires: +sdesc: "${!pkg_summary_var:-${SUMMARY}}" +ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}}" +skip: +_EOF else warning "${PN}.hint is missing"; fi diff --git a/lib/pkg_upload.cygpart b/lib/pkg_upload.cygpart index 56325a6..7e0d56a 100644 --- a/lib/pkg_upload.cygpart +++ b/lib/pkg_upload.cygpart @@ -74,7 +74,7 @@ __pkg_upload() { # Check that binary and source package files exist - pkg_files=("${NAME}/${NAME}-${PVR}-src.tar.xz" "${NAME}/setup.hint") + pkg_files=("${NAME}/${NAME}-${PVR}-src.tar.xz" "${NAME}/${NAME}-${PVR}.hint") while (( n < pkg_count )) do @@ -83,13 +83,13 @@ __pkg_upload() { *) distsubdir=${pkg_name[${n}]} ;; esac - pkg_files+=("${NAME}/${distsubdir}/${pkg_name[${n}]}-${PVR}.tar.xz" "${NAME}/${distsubdir}/setup.hint") + pkg_files+=("${NAME}/${distsubdir}/${pkg_name[${n}]}-${PVR}.tar.xz" "${NAME}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint") n+=1 done if [ -d ${NAME}/${NAME}-debuginfo ] then - pkg_files+=("${NAME}/${NAME}-debuginfo/${NAME}-debuginfo-${PVR}.tar.xz" "${NAME}/${NAME}-debuginfo/setup.hint") + pkg_files+=("${NAME}/${NAME}-debuginfo/${NAME}-debuginfo-${PVR}.tar.xz" "${NAME}/${NAME}-debuginfo/${NAME}-debuginfo-${PVR}.hint") fi for file in "${pkg_files[@]}" -- 2.8.3