public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygport: calm can fail when BUILD_REQUIRES contains some newlines
@ 2020-08-03 11:29 Lemures Lemniscati
  0 siblings, 0 replies; only message in thread
From: Lemures Lemniscati @ 2020-08-03 11:29 UTC (permalink / raw)
  To: cygwin

Hi!

It may cause an issue when BUILD_REQUIRES contains some newlines in
a cygport file. 

Because cygport-0.34-1 generates *src.hint with raw BUILD_REQUIRES, and
extra newlines in 'build-depends' may be rejected by calm when uploading
packages.


This is a work-around patch by squeezing white spaces in BUILD_REQUIRES.

====

diff -ur a/cygport-0.34.0/lib/pkg_pkg.cygpart
b/cygport-0.34.0/lib/pkg_pkg.cygpart
--- a/cygport-0.34.0/lib/pkg_pkg.cygpart	2020-05-11 01:06:43.000000000 +0900
+++ b/cygport-0.34.0/lib/pkg_pkg.cygpart	2020-08-03 20:13:35.080509700 +0900
@@ -915,7 +915,7 @@
 		then
 			cat > ${distdir}/${PN}/${PN}-${PVR}-src.hint <<-_EOF
 category: ${!pkg_category_var:-${CATEGORY}}
-build-depends: cygport ${BUILD_REQUIRES}
+build-depends: $(printf "%s" "cygport ${BUILD_REQUIRES}" | sed -ze 's/[\t\n\f\r]/ /g;s/  */ /g;s/^ *//;s/ *$//')
 sdesc: "${!pkg_summary_var:-${SUMMARY}}"
 ldesc: "${!pkg_description_var:-${DESCRIPTION:-${!pkg_summary_var:-${SUMMARY}}}}"
 skip:


====

Regards, 

Lem

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-03 11:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 11:29 cygport: calm can fail when BUILD_REQUIRES contains some newlines Lemures Lemniscati

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).