From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJQU3-0008LB-T9 for guix-patches@gnu.org; Sun, 04 Nov 2018 17:03:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJQU2-0002xI-Ox for guix-patches@gnu.org; Sun, 04 Nov 2018 17:03:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJQU2-0002uk-IC for guix-patches@gnu.org; Sun, 04 Nov 2018 17:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJQU2-0001R2-D9 for guix-patches@gnu.org; Sun, 04 Nov 2018 17:03:02 -0500 Subject: [bug#33259] [PATCH 0/8] 'guix pack': Better '--localstatedir' handling and more tests Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJQSy-0007n0-6v for guix-patches@gnu.org; Sun, 04 Nov 2018 17:01:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJQSs-0006pa-KU for guix-patches@gnu.org; Sun, 04 Nov 2018 17:01:52 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sun, 4 Nov 2018 23:01:30 +0100 Message-Id: <20181104220130.4551-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: 33259@debbugs.gnu.org Hello Guix! These patches ensure ‘--localstatedir’ is properly handled by the Docker and Squashfs backends of ‘guix pack’ (until now they ignored this option.) They also add ‘guix pack’ tests, which were severely lacking until now, including a ‘guix pack -R’ test using the user’s store. While doing that, I also fixed a bug whereby ‘guix pack’ tarballs would contain writable directories (whereas normally every file in the store is read-only.) Feedback welcome! Ludo’. Ludovic Courtès (8): pack: Move store database creation to a separate derivation. pack: Import (guix store database) only when '--localstatedir' is passed. install: Add 'install-database-and-gc-roots'. pack: Docker backend now honors '--localstatedir'. pack: Squashfs backend now honors '--localstatedir'. pack: Add test for 'self-contained-tarball' with localstatedir. store-copy: Canonicalize the mtime and permissions of the store copy. pack: Add test for '--relocatable'. Makefile.am | 1 + gnu/build/install.scm | 77 ++++--- gnu/build/vm.scm | 19 +- guix/build/store-copy.scm | 28 +++ guix/docker.scm | 16 +- guix/scripts/pack.scm | 379 +++++++++++++++++++-------------- tests/guix-pack-relocatable.sh | 61 ++++++ tests/guix-pack.sh | 28 +-- tests/pack.scm | 156 ++++++++++++-- 9 files changed, 525 insertions(+), 240 deletions(-) create mode 100644 tests/guix-pack-relocatable.sh -- 2.19.1