X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3CAB3861026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1596454189; bh=kY8FfimnA2WNwek7OIV7jlJSZ0ZXnJg43kkhZqJ1UFY=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=o80SLhGX1s1aLdMTiqUmL06BD3AWFmaslP5NJ+/t305r0rs31IBB3WXMlim+xxMp7 xfuzyhQzfVqJeu0srhgokCO8Euq6CIZKs7h55FQE09+6uYPudKvNfFK22+nM1WVFqO wGkUETjeN6asAsHdAR4PlIYFgGoMjq0gwtMK0/10= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 77CAC3858D35 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=AO6dUr9lBXcLoczJ24Bk4J2qS3yG/TK/wfamdqYcuqI=; b=R2DtwKn40gVPnYIINoSGHH935YMp17ZqTr5EhI5IZ5a7FQRXwREXKjBAIs+1sc9IMJ 2tu6mvs9m5cg2wlEcjE2YnApmSudKiJfF7jOdWoyBBRqoJNrM9RIc1fkJbzTW98JbrZU lqrU8ReciHhFUsluuR/YXqevyfTf71LXwX1vm1uEZpcNMMFnJ6xN6Gv6S3mk3WA9KNk3 n9pN1sPdPCdwqiu6QyrN94qNctaUHWpD7jo6ywdX521dVojYMSS+kMqQJNEfE3VSDIUY TyUTf7wuthx3eHjKZRwTklVoyLwM6rGocGtw5z5AOcOJjCXRi2on71QW+un70z4ukL6a fZMA== X-Gm-Message-State: AOAM53004AWkeyICp3FZra8NdDqY/ui63sDTtUIPoc7ZXeq6ysPXT37Y hUR1+6du+qJLvBlmkmdpo/7uLuWO X-Google-Smtp-Source: ABdhPJwjkkN8o0rU3krgdSBAyGWeLGff+MMYtTNTdiJI7BbxnKMLTKawAYwY5+ue+BAEVc2YyPLobQ== X-Received: by 2002:a17:902:9a94:: with SMTP id w20mr15194305plp.59.1596454185417; Mon, 03 Aug 2020 04:29:45 -0700 (PDT) Date: Mon, 03 Aug 2020 20:29:44 +0900 To: cygwin AT cygwin DOT com Subject: cygport: calm can fail when BUILD_REQUIRES contains some newlines Message-Id: <20200803202941.E3EE.50F79699@gmail.com> MIME-Version: 1.0 X-Mailer: Becky! ver. 2.75.01 [ja] X-Antivirus: Avast (VPS 200803-0, 2020/08/03), Outbound message X-Antivirus-Status: Clean X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Lemures Lemniscati via Cygwin Reply-To: Lemures Lemniscati Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple