From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin-apps@cygwin.com
Cc: Jon Turney <jon.turney@dronecode.org.uk>
Subject: [PATCH cygport 2/2] Pass BUILD_REQUIRES through to .hint for source package as build-requires:
Date: Tue, 13 Feb 2018 13:03:00 -0000 [thread overview]
Message-ID: <20180213130241.42592-3-jon.turney@dronecode.org.uk> (raw)
In-Reply-To: <20180213130241.42592-1-jon.turney@dronecode.org.uk>
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-requires: 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 272e2d4..fe56d6d 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -728,6 +728,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_REQUIRES}
_EOF
fi
if defined ${pkg_message_var}
@@ -841,6 +845,7 @@ _EOF
cat > ${distdir}/${PN}/${PN}-${PVR}.hint <<-_EOF
category: ${!pkg_category_var:-${CATEGORY}}
requires:
+build-depends: ${BUILD_REQUIRES}
sdesc: "${!pkg_summary_var:-${SUMMARY}}"
ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}}"
skip:
--
2.16.1
next prev parent reply other threads:[~2018-02-13 13:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 19:53 [PATCH cygport 0/2] Better handling of build depends Jon Turney
2017-10-03 19:53 ` [PATCH cygport 2/2] Pass BUILD_DEPENDS through to .hint for source package as build-depends: Jon Turney
2017-10-03 19:53 ` [PATCH cygport 1/2] Rename DEPEND to BUILD_DEPENDS Jon Turney
2017-10-03 20:17 ` Andrew Schulman
2017-11-13 12:57 ` Jon Turney
2018-02-13 6:31 ` [PATCH cygport 0/2] Better handling of build depends Yaakov Selkowitz
2018-02-13 12:34 ` Jon Turney
2018-02-13 13:03 ` [PATCH cygport 0/2] Better handling of build requires (v2) Jon Turney
2018-02-13 13:03 ` [PATCH cygport 1/2] Rename DEPEND to BUILD_REQUIRES Jon Turney
2018-02-13 13:03 ` Jon Turney [this message]
2020-03-24 3:06 ` [PATCH cygport 0/2] Better handling of build depends Yaakov Selkowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180213130241.42592-3-jon.turney@dronecode.org.uk \
--to=jon.turney@dronecode.org.uk \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).