This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH cygport 1/3] Pass DEPEND through to .hint for source package as build-depends:
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 2 May 2017 14:13:43 +0100
- Subject: [PATCH cygport 1/3] Pass DEPEND through to .hint for source package as build-depends:
- Authentication-results: sourceware.org; auth=none
- References: <20170502131345.158584-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, leaving that task for downstream processing of the
.hint file...
---
lib/pkg_pkg.cygpart | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart
index 5552040..01dec69 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -710,6 +710,10 @@ _EOF
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: ${DEPEND}
+_EOF
fi
if defined ${pkg_message_var}
then
@@ -810,6 +814,7 @@ _EOF
cat > ${distdir}/${PN}/${PN}-${PVR}.hint <<-_EOF
category: ${!pkg_category_var:-${CATEGORY}}
requires:
+build-depends: ${DEPEND}
sdesc: "${!pkg_summary_var:-${SUMMARY}}"
ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}}"
skip:
--
2.12.2