public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [PATCH cygport] Use compressed empty archives for empty packages
@ 2016-06-26 12:27 Jon Turney
  2017-01-18  1:13 ` Yaakov Selkowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Turney @ 2016-06-26 12:27 UTC (permalink / raw)
  To: cygwin-apps; +Cc: Jon Turney

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH cygport] Use compressed empty archives for empty packages
  2016-06-26 12:27 [PATCH cygport] Use compressed empty archives for empty packages Jon Turney
@ 2017-01-18  1:13 ` Yaakov Selkowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Yaakov Selkowitz @ 2017-01-18  1:13 UTC (permalink / raw)
  To: cygwin-apps

On 2016-06-26 07:26, Jon Turney wrote:
> Using a compressed empty file instead of a compressed archive means these
> files need to be treated specially throughout the entire package pipeline.

I suppose you have tested this with calm, so I pushed it to master.

-- 
Yaakov

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-18  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-26 12:27 [PATCH cygport] Use compressed empty archives for empty packages Jon Turney
2017-01-18  1:13 ` Yaakov Selkowitz

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