From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:34526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAKi-0002jA-7D for guix-patches@gnu.org; Fri, 24 May 2019 09:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUAKh-0000Mu-1u for guix-patches@gnu.org; Fri, 24 May 2019 09:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUAKg-0000MX-TA for guix-patches@gnu.org; Fri, 24 May 2019 09:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUAKg-00026y-L4 for guix-patches@gnu.org; Fri, 24 May 2019 09:34:02 -0400 Subject: [bug#35880] [PATCH 0/7] Lzip support for 'guix publish' and 'guix substitute' Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:33887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAJm-0001gR-S9 for guix-patches@gnu.org; Fri, 24 May 2019 09:33:07 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 24 May 2019 15:31:59 +0200 Message-Id: <20190524133159.22568-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35880@debbugs.gnu.org Cc: Pierre Neidhardt Hi! As a followup to Pierre’s work on (guix lzlib), these patches implement ‘lzip’ support for ‘guix substitute’ and ‘guix publish’. With these, you can now run: ./pre-inst-env guix publish -Clzip … on one side, and on another machine: ./pre-inst-env guix-daemon --build-users-group=guixbuild and from there the client machine should be able to fetch lzip-compressed substitutes. These patches do not address the transitioning issue that we discussed earlier, where we have clients lacking lzip support talking to an lzip-capable server. As discussed earlier, clients will have to send a special HTTP header, ‘X-Guix-Accept-Encoding’. For the server-side, I’m still hesitating between implementing it in ‘guix publish’ or simply running two instances of ‘guix publish’ side-by-side (one gzip and one lzip) and letting nginx dispatch between the two. :-) Note that we’ll have to adjust our nginx mirror configs to take that header into account! Comments? Ludo’. Ludovic Courtès (7): lzlib: Add 'make-lzip-input-port/compressed'. utils: Test 'compressed-port' and 'decompressed-port' for both gzip and xz. utils: Support compression and decompression with lzip. publish: Add support for lzip. self: Add dependency on lzlib. gnu: guix: Add dependency on lzlib. lzlib: 'lzread!' never returns more than it was asked for. .dir-locals.el | 2 + doc/guix.texi | 25 +++++-- gnu/packages/package-management.scm | 1 + guix/lzlib.scm | 101 ++++++++++++++++++++++------ guix/scripts/publish.scm | 84 +++++++++++++++++------ guix/self.scm | 13 +++- guix/tests.scm | 1 + guix/utils.scm | 27 ++++++-- tests/lzlib.scm | 10 +++ tests/publish.scm | 36 ++++++++++ tests/utils.scm | 62 +++++++++++------ 11 files changed, 284 insertions(+), 78 deletions(-) -- 2.21.0