From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin-apps@cygwin.com
Cc: Jon Turney <jon.turney@dronecode.org.uk>
Subject: [PATCH cygport] Use compressed empty archives for empty packages
Date: Sun, 26 Jun 2016 12:27:00 -0000 [thread overview]
Message-ID: <20160626122626.8628-1-jon.turney@dronecode.org.uk> (raw)
Using a compressed empty file instead of a compressed archive means these
files need to be treated specially throughout the entire package pipeline.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
---
lib/pkg_pkg.cygpart | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart
index 294260d..8cb2492 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -175,7 +175,7 @@ __pkg_binpkg() {
else
inform "Creating empty package"
mkdir -p ${distdir}/${PN}/${distsubdir};
- xz < /dev/null > ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.tar.xz \
+ tar -Jcf ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.tar.xz --files-from /dev/null \
|| error "Empty package creation failed"
> ${T}/.${pkg_name[${n}]}.lst
fi
@@ -723,7 +723,7 @@ _EOF
for obspkg in ${!pkg_obsoletes_var}
do
mkdir -p ${distdir}/${PN}/${obspkg};
- xz < /dev/null > ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}.tar.xz
+ tar -Jcf ${distdir}/${PN}/${obspkg}/${obspkg}-${PVR}.tar.xz --files-from /dev/null
__step "${pkg_name[${n}]} OBSOLETES: ${obspkg}"
--
2.8.3
next reply other threads:[~2016-06-26 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-26 12:27 Jon Turney [this message]
2017-01-18 1:13 ` 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=20160626122626.8628-1-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).