From patchwork Mon Apr 13 16:04:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 21219 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 72F8A27BBE1; Mon, 13 Apr 2020 17:05:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 2A9B027BBE1 for ; Mon, 13 Apr 2020 17:05:12 +0100 (BST) Received: from localhost ([::1]:46018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO1aB-0001pl-M4 for patchwork@mira.cbaines.net; Mon, 13 Apr 2020 12:05:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58682) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO1a3-0001mN-JL for guix-patches@gnu.org; Mon, 13 Apr 2020 12:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO1a2-0003p4-KD for guix-patches@gnu.org; Mon, 13 Apr 2020 12:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49000) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO1a2-0003ow-Gl for guix-patches@gnu.org; Mon, 13 Apr 2020 12:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jO1a2-0006ot-35 for guix-patches@gnu.org; Mon, 13 Apr 2020 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40601] [PATCH 0/5] Handle runit-based foreign distributions Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Apr 2020 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40601@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158679389826197 (code B ref -1); Mon, 13 Apr 2020 16:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Apr 2020 16:04:58 +0000 Received: from localhost ([127.0.0.1]:60546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1Zx-0006oT-T6 for submit@debbugs.gnu.org; Mon, 13 Apr 2020 12:04:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:49533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1Zv-0006oL-UN for submit@debbugs.gnu.org; Mon, 13 Apr 2020 12:04:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58641) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO1Zu-0001WU-P7 for guix-patches@gnu.org; Mon, 13 Apr 2020 12:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO1Zt-0003mc-P3 for guix-patches@gnu.org; Mon, 13 Apr 2020 12:04:54 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:40140) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO1Zt-0003mK-Ht for guix-patches@gnu.org; Mon, 13 Apr 2020 12:04:53 -0400 Received: by mail-wm1-x342.google.com with SMTP id a81so10466371wmf.5 for ; Mon, 13 Apr 2020 09:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=03KvbziQbEkP/yaWSONvGfg8OHpiiWjHKQHGNXm0B4U=; b=MV/L5ly/v3GfBqeM+aW7wcwuxrakS6LhPL9V+Mj+GIvFFVGygUZ/c2gl4W8uaVe0i2 S8ch+ZkuHj6j3rxCeg+Z6sEBiJHVsl8wLWLPAVKkqDonyE4diW/ROiQXeKZwaIyP4XxT DhyO72nOa7RpaNm/xegAOENczeIwyFen+8+v/HU3MfrRQ1mKIY9SH+NQDFAAMuaQAndp /EhSpqPhyex00srN25s0n1p52iMUHc/epOEm9VKiuzSDLF61PTbDrnQVZeZeIyiyN47A 90U1R7A3ado4bXMHsUdPDeJiywjeIUFwXUw6vcAPYwDNIwbOuS64nxdr81gg4B03aBpP AgVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=03KvbziQbEkP/yaWSONvGfg8OHpiiWjHKQHGNXm0B4U=; b=X+2jbw/tcjzlX50FlQo0qeqBLT1UwEcL8vQZ1Vn+EYN+txFgbKPUYu2xTz9M3OIo2D Wc5/Gi2KJtcU4+646euJVPgC9vLH9+ydEed5T/bEs/rKEDmpz9tVG3cxC0ugIjxQbzJR RTQAops6XuwppwZjBwZw04Hi/LUI14+xuuOwxhwCbnAs5Z3JQrbietazCzilJRt4SdVe m8joOqPBJqY+Qc7FB0aDmOtKO1ZIe+7ff07OgZX9UY6B6zHdNUGLyYWc0xQUH9OAZNGn D1Y2DUQOMpW5UoJpvgO3KAQcvwZ5COSwRn8I3AIuQGICA8SBbRuKq/t+O6g6o/p0RHH2 VNkw== X-Gm-Message-State: AGi0PuajTOPVcinJe+6Gd3eorqPhPWSsm2naS3Px1DpHebXoOiZntjxY A5DLRg+hrggjQm2NcqH8rodHQyrT X-Google-Smtp-Source: APiQypLoGN7M87O3IfGGePHQCmXN6S6LQK4S3CcAJ35z86/tcTmg+kYzErN4UOGgaPldT5IA6Q1V+g== X-Received: by 2002:a7b:cdf7:: with SMTP id p23mr19729582wmj.33.1586793891513; Mon, 13 Apr 2020 09:04:51 -0700 (PDT) Received: from [10.0.0.2] (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1]) by smtp.gmail.com with ESMTPSA id p16sm8805376wro.21.2020.04.13.09.04.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Apr 2020 09:04:50 -0700 (PDT) From: Vincent Legoll Message-ID: <58b21d29-f0b0-af8a-8c9e-11f4dd7a317a@gmail.com> Date: Mon, 13 Apr 2020 18:04:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches And assorted small fixes around the subject. The first 3 patches are smallish things. Maybe the REQUIRED array could get other missing requirements: tar (or maybe the "tr" item is a typoed tar, I've found no use of tr), mkdir, ln, usermod, useradd, cp, cat... The handling of local files for guix-install.sh is to help testing modified / locally generated binary tarballs. One thing that is working as-is, but that I'm not sure is right: The runit script in the guix-binary tarball is patched for the shebang to point to /gnu/store/... This looks wrong even if it is working, the interpreter for that script should be the one of the foreign distro. But this is not specific to the runit support, the sysv scripts also are shebang-patched. How would I tell guix not to patch these files's shebangs ? WDYT ? This series has been tested on void linux i686 in qemu kvm with: - upload locally build guix-binary tarball & guix-install.sh to VM - run guix-install.sh guix-binary.i686-linux.tar.xz 1) guix search hello 2) guix show hello 3) guix build hello 4) guix gc -D/gnu/store/*hello* 5) guix build --no-substitutes hello (stopped as it was rebuilding the world) 6) guix package -u 7) guix pull 8) guix package -u 9) guix gc So the download part is not tested, but all ran well.