From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id pe9VDQyMKmTVVAEASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 10:19:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0KdEDAyMKmToSwAA9RJhRA (envelope-from ) for ; Mon, 03 Apr 2023 10:19:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C4EC61C30A for ; Mon, 3 Apr 2023 10:19:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjFP6-00087V-0L; Mon, 03 Apr 2023 04:19:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjFP4-00087K-Ep for guix-patches@gnu.org; Mon, 03 Apr 2023 04:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjFP4-0004Ed-7J for guix-patches@gnu.org; Mon, 03 Apr 2023 04:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjFP4-0005nC-2b for guix-patches@gnu.org; Mon, 03 Apr 2023 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62640] [PATCH] gnu: Add pmbootstrap. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Apr 2023 08:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62640 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62640@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.168050990322216 (code B ref -1); Mon, 03 Apr 2023 08:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2023 08:18:23 +0000 Received: from localhost ([127.0.0.1]:43311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjFOQ-0005mF-Fm for submit@debbugs.gnu.org; Mon, 03 Apr 2023 04:18:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:33928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjFOM-0005m3-58 for submit@debbugs.gnu.org; Mon, 03 Apr 2023 04:18:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjFOL-0007yr-BJ for guix-patches@gnu.org; Mon, 03 Apr 2023 04:18:17 -0400 Received: from mail-4318.protonmail.ch ([185.70.43.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjFOF-00042c-6w for guix-patches@gnu.org; Mon, 03 Apr 2023 04:18:15 -0400 Date: Mon, 03 Apr 2023 08:17:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1680509886; x=1680769086; bh=a2EgiPTY1mPWjE2DAA91ZwuAecSiQscKf4v2V1VNJ5A=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=GFOlpqpA7+auM7wsMabuVP/Hpo2ApHbVpTYOEctQOTeqWYf5IHb0cFm8DyprizJ9t DjKGt53bxCNBgCrC0eqFJC3+F61n5ROLFUY1pBB+k488OTnlS4oJdr7XgeA35NviMO xm0jeUc7/hdGZUjhCxzxKU3HZQ7jm8nAGKdkuxj3bxAj9EB5FtrtEus8edcgWoAJKB HLS7NqAtuIExvRoJRxpWVQGA7WPjSij7hIZbk+8IApGDHkmYqVvL6tjrUrov7ERw4u JeHSHuKUBwy78AWEvcKrE8xs4mm8taxhFf+hdE7AUJzFa6jqgbvLo3OZ88B5NgAGQB KQvPFG1qz/gyQ== Message-ID: Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.18; envelope-from=Sughosha@proton.me; helo=mail-4318.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680509963; a=rsa-sha256; cv=none; b=e2XqdeAG0YmrdZ7hfAPOtGO2pmhsyWwV35Wxm+UP44+fkUnjI+kRT0cFlJB2Dt2a43p0ne +Ikv+D64ZNtYS01Ub0FO4QLPqHt+MQ2E/gNa9wcz4/7gPfKdlSIeZD8Y0YvB78kESZHvN4 BDkdOEx9mrJm+lQeiY+ubZuelERBu/LRXEnmIIG5qM+jBDYoOpSy1Aqs7NyBmVxfkNYxc0 DYERPiytTWcJwQtY7vEOF0/Xy93I1YVLzt3ON3eBEGrwFS9+L2RCgOxLmEHCliSmrCpV2a RwFVDIvie0Hr8pxZbMhRBquSLFjsJhsukVPUMwEhigT1WBKxxyFxxXUAI/P8HQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=GFOlpqpA; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680509963; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=a2EgiPTY1mPWjE2DAA91ZwuAecSiQscKf4v2V1VNJ5A=; b=rfGNn8HVauEG77bEWBZN8fDNsGa2jqXZ8cD0cmq0RqyJAr5efAfHJaCSDTl8+w7VXZcHkr pGH4gDrFyJO++wFLsY7MxHmtp5vmYaWhsK1gByZZ+lc0OA2Q6xwIegkJb3U6wKJaNhzF6F +YMZqTEdA7bIJtyNfW/roHHWuvGd7frbJ0zmHwq/zZOy3ly/9DmovPdvKv3wHwOXw+1oso feyB+JQyyE2F1DK1/3l1o5X4uNj67z+8OSzhTyHm1sDIZF/70WgQNlaLhn5hfAHiPECAw4 6lrusfo/W03GrbNCYxNOr5RXqzrjy1tnS61ySZ0e0ZulqeW4KPInTryprSaysg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=GFOlpqpA; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.82 X-Spam-Score: -3.82 X-Migadu-Queue-Id: C4EC61C30A X-TUID: C2maR4kREojR * gnu/packages/postmarketos.scm: New file. (pmbootstrap): New public variable. * gnu/packages/local.mk (GNU_SYSTEM_MODULES): Add the new file. --- gnu/local.mk | 1 + gnu/packages/postmarketos.scm | 68 +++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 gnu/packages/postmarketos.scm diff --git a/gnu/local.mk b/gnu/local.mk index 186d82a..92848b2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -502,6 +502,7 @@ GNU_SYSTEM_MODULES =3D=09=09=09=09\ %D%/packages/poedit.scm=09=09=09=09\ %D%/packages/polkit.scm=09=09=09\ %D%/packages/popt.scm=09=09=09=09\ + %D%/packages/postmarketos=09=09=09\ %D%/packages/printers.scm=09=09=09\ %D%/packages/profiling.scm=09=09=09\ %D%/packages/prolog.scm=09=09=09\ diff --git a/gnu/packages/postmarketos.scm b/gnu/packages/postmarketos.scm new file mode 100644 index 0000000..9de45ec --- /dev/null +++ b/gnu/packages/postmarketos.scm @@ -0,0 +1,68 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2023 Sughosha +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages postmarketos) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system python) + #:use-module (gnu packages admin) + #:use-module (gnu packages bash) + #:use-module (gnu packages linux) + #:use-module (gnu packages tls) + #:use-module (gnu packages version-control)) + +(define-public pmbootstrap + (package + (name "pmbootstrap") + (version "1.51.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pmbootstrap" version)) + (sha256 + (base32 + "08g55fh24n3wpva7d1ps6fnk65ik49wfycjpwrjs9w0889zlwsl1")))) + (build-system python-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (replace 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out= ") + "/bin/pmbootstrap") + `("PATH" =3D ("/run/setuid-programs" ,(getenv "PAT= H"))) + `("GUIX_PYTHONPATH" =3D + (,(getenv "GUIX_PYTHONPATH")))))) + ;; Dissociate "sudo" as setuid-programs is preferred + (add-after 'sanity-check 'dissociate-sudo + (lambda* (#:key outputs inputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (sudo (assoc-ref inputs "sudo"))) + (substitute* (string-append out "/bin/pmbootstrap"= ) + (((string-append ":" sudo "/sbin")) + "") + (((string-append ":" sudo "/bin")) + "")))))))) + (native-inputs (list sudo)) + (inputs (list bash-minimal git openssl procps)) + (home-page "https://git.sr.ht/~postmarketos/pmbootstrap") + (synopsis "Bootstrap a postmarketOS system") + (description + "This package provides a sophisticated chroot / build / flash tool to + develop and install postmarketOS.") + (license license:gpl3+))) -- libgit2 1.5.1