From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vsmx011.vodafonemail.xion.oxcs.net (vsmx011.vodafonemail.xion.oxcs.net [153.92.174.89]) by sourceware.org (Postfix) with ESMTPS id 1ECC43870841 for ; Sun, 14 Jun 2020 11:01:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1ECC43870841 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Stromeko@nexgo.de Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 2FF3959D944 for ; Sun, 14 Jun 2020 11:01:05 +0000 (UTC) Received: from Gertrud (unknown [91.47.56.99]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 074FB539E12 for ; Sun, 14 Jun 2020 11:01:02 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: [PATCH] cygport: allow for different package compression types and implement ZStandard decompression Date: Sun, 14 Jun 2020 13:01:02 +0200 Message-ID: <87tuzd7vyp.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-VADE-STATUS: LEGIT X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2020 11:01:07 -0000 Now that setup and calm know about Zstandard compression it's about time we teach cygport the same. https://repo.or.cz/cygport/rpm-style.git/commitdiff/303045744ba6159c6063786cf5b173d760f6298d This patch keeps the current defaults in place, but allows one to set up two environment variables to control how tar gets invoked during packaging. You could do that from either the cygport file or the .cygport.conf file: CYGPORT_TAR_CMD="env ZSTD_CLEVEL=19 tar -I zstd --group nobody:65534 --owner nobody:65534" CYGPORT_TAR_EXT=".tar.zst" While our packaged tar does not yet know about zst files the compressor has top be named explicitly, eventually Eric will get around and release a new version hopefully and then this can get automatic. As demonstrated above the facility can be used to do other useful things besides changing the compression type and extension. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada