From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 09:33:14 2019 Received: (at submit) by debbugs.gnu.org; 24 May 2019 13:33:14 +0000 Received: from localhost ([127.0.0.1]:46267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUAJu-00025X-8w for submit@debbugs.gnu.org; Fri, 24 May 2019 09:33:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUAJt-00025E-0T for submit@debbugs.gnu.org; Fri, 24 May 2019 09:33:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:49366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUAJn-00087p-SW for submit@debbugs.gnu.org; Fri, 24 May 2019 09:33:07 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAIn-0007aC-3W; Fri, 24 May 2019 09:32:05 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36416 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUAIm-0005a1-At; Fri, 24 May 2019 09:32:04 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/7] Lzip support for 'guix publish' and 'guix substitute' Date: Fri, 24 May 2019 15:31:59 +0200 Message-Id: <20190524133159.22568-1-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Pierre Neidhardt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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