This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH cygport] Use compressed empty archives for empty packages
- 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: Sun, 26 Jun 2016 13:26:26 +0100
- Subject: [PATCH cygport] Use compressed empty archives for empty packages
- Authentication-results: sourceware.org; auth=none
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