Received: (at 62640) by debbugs.gnu.org; 4 Jun 2025 15:24:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 04 11:24:12 2025 Received: from localhost ([127.0.0.1]:50916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uMpyO-0007un-2L for submit <at> debbugs.gnu.org; Wed, 04 Jun 2025 11:24:12 -0400 Received: from mx0.riseup.net ([198.252.153.6]:35040) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <nandre@HIDDEN>) id 1uMpyK-0007u2-81; Wed, 04 Jun 2025 11:24:09 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4bCBFF6yj6z9wtt; Wed, 4 Jun 2025 15:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1749050642; bh=3TdbMfWwBeOmywnJo3cqrZmuWmQmgOedlclv9EbjXwQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q8LkP1Bl7Zag6Rl7y27i4X4E6YlVc21iNq8M8hOCtDZpafu5v5NL/AW94kIiZoG82 6l1P4bGWzAJRXalg7+K8WrslYdf9lvHyTSwHW5eCBP2wu8Jz300y5y9v1OW/87el4h FkO4D+4wM+ZKciocOhn+xX88nLJjoDZFSwxkrcs4= X-Riseup-User-ID: B0B0483C84E236FEA76BE0CBE078F0A65C7DA07BEBA3C70DBF1C04D7FC42547F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4bCBFD4k0qzFsRf; Wed, 4 Jun 2025 15:24:00 +0000 (UTC) Date: Wed, 4 Jun 2025 12:23:53 -0300 From: =?iso-8859-1?Q?Andr=E9?= Batista <nandre@HIDDEN> To: Herman Rimm <herman@HIDDEN> Subject: Re: [PATCH v5] gnu: Add pmbootstrap. Message-ID: <aEBlCRTFrvjXWG-K@andel> References: <3c4fc10fc9cf18685baf7343fd07b5ad650753c9.1748679476.git.herman@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3c4fc10fc9cf18685baf7343fd07b5ad650753c9.1748679476.git.herman@HIDDEN> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN>, control <at> debbugs.gnu.org, 62640 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) user guix usertag 62640 reviewed-looks-good quit sáb 31 mai 2025 às 10:32:15 (1748698335), herman@HIDDEN enviou: > From: Sughosha <Sughosha@HIDDEN> > > * gnu/packages/postmarketos.scm: New file. > * gnu/packages/local.mk (GNU_SYSTEM_MODULES): Register file. > > Change-Id: Ib8347dd536738d2ea16a961c85308a0e43b98c1f > --- > Hi, > > Thanks again André. The wrap-required-programs phase now uses output, > ungexp and this-package-input. I also replaced the coreutils and git > inputs with their minimal counterparts, and this still works: > > $ guix shell --pure pmbootstrap -- pmbootstrap init > $ guix shell --pure pmbootstrap -- pmbootstrap export > Nice! LGTM, lets wait for someone to pick it up. Cheers
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 31 May 2025 08:33:55 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 31 04:33:54 2025 Received: from localhost ([127.0.0.1]:55366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uLHf6-0006LY-Bi for submit <at> debbugs.gnu.org; Sat, 31 May 2025 04:33:54 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:46917 helo=email.rimm.ee) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <herman@HIDDEN>) id 1uLHf0-0006JL-Sq for 62640 <at> debbugs.gnu.org; Sat, 31 May 2025 04:33:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1748680418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7ct1DwaiBPJqYAtlEWCr7o8n1Tlc07Wwftgf+3wZgGE=; b=mYTzprWIfvB9rhytaL+EJljA9BRdo0aS2p9NWgUHFkBv2JkFbHXGnYNbLBRh2c2xV8Rlje btfZNHPaD2iHcuEm0aT9BH6DzDeu1UgzB2KliVx69fa8++9Ozz9NWa+0ky1FQ/MXVvYqgR E2z4Lo54ao9Qm+FLj49+NI7olAm9TQ1csoy3tgBPEg7h5xlWPprlTCcyYPtzOpimOkIfB2 UcuPWijEFF5WV8hHqDyGSpJBvOOBIjI67mGNmwSEfrmN4TwBlmv3zhigtHfaOflwBZYFum I8z6TmkYlB7yNxw1DjtZMKsFcqMEOXa4DZSW4CwPV7Sk0v8duhp8wsmJ/kF/dA== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 34a73e2a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 31 May 2025 08:33:38 +0000 (UTC) From: Herman Rimm <herman@HIDDEN> To: 62640 <at> debbugs.gnu.org Subject: [PATCH v5] gnu: Add pmbootstrap. Date: Sat, 31 May 2025 10:32:15 +0200 Message-ID: <3c4fc10fc9cf18685baf7343fd07b5ad650753c9.1748679476.git.herman@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62640 Cc: =?UTF-8?q?Andr=C3=A9=20Batista?= <nandre@HIDDEN>, Sughosha <Sughosha@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) From: Sughosha <Sughosha@HIDDEN> * gnu/packages/postmarketos.scm: New file. * gnu/packages/local.mk (GNU_SYSTEM_MODULES): Register file. Change-Id: Ib8347dd536738d2ea16a961c85308a0e43b98c1f --- Hi, Thanks again André. The wrap-required-programs phase now uses output, ungexp and this-package-input. I also replaced the coreutils and git inputs with their minimal counterparts, and this still works: $ guix shell --pure pmbootstrap -- pmbootstrap init $ guix shell --pure pmbootstrap -- pmbootstrap export Cheers, Herman gnu/local.mk | 1 + gnu/packages/postmarketos.scm | 107 ++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 gnu/packages/postmarketos.scm diff --git a/gnu/local.mk b/gnu/local.mk index 2948bfb1bff..b56cfe34d75 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -567,6 +567,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/poedit.scm \ %D%/packages/polkit.scm \ %D%/packages/popt.scm \ + %D%/packages/postmarketos.scm \ %D%/packages/potassco.scm \ %D%/packages/power.scm \ %D%/packages/printers.scm \ diff --git a/gnu/packages/postmarketos.scm b/gnu/packages/postmarketos.scm new file mode 100644 index 00000000000..7bb7e788e34 --- /dev/null +++ b/gnu/packages/postmarketos.scm @@ -0,0 +1,107 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Sughosha <sughosha@HIDDEN> +;;; Copyright © 2025 Herman Rimm <herman@HIDDEN> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(define-module (gnu packages postmarketos) + #:use-module (gnu packages admin) + #:use-module (gnu packages android) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages check) + #:use-module (gnu packages linux) + #:use-module (gnu packages python-build) + #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) + #:use-module (guix build-system pyproject) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (ice-9 match)) + +(define-public pmbootstrap + (package + (name "pmbootstrap") + (version "3.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://gitlab.postmarketos.org/" + "postmarketOS/pmbootstrap.git")) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16naj8ykipbrs2a93zaxci1wl045cc9jn7rq8sy76d1rqlqb9mmw")))) + (build-system pyproject-build-system) + (arguments + (list + #:modules '((guix build pyproject-build-system) + (guix build utils) + (ice-9 match)) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'set-sudo + (lambda _ + (substitute* "pmb/config/sudo.py" + (("sudo\"") "/run/privileged/bin/sudo\"")))) + (add-after 'wrap 'wrap-required-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append #$output + "/bin/pmbootstrap") + '("PATH" ":" prefix + #$(map (match-lambda + ((input directory) + (file-append (this-package-input input) + "/" directory))) + '(("bash-minimal" "bin") + ("coreutils-minimal" "bin") + ("git-minimal" "bin") + ("multipath-tools" "sbin") + ("openssl" "bin") + ("procps" "bin") + ("tar" "bin") + ("util-linux" "bin") + ("util-linux" "sbin")))))))) + ;; The first two tests require a pmaports git repository in the workdir. + #:test-flags #~(list (string-append "--deselect=test/core/test_pkgrepo" + ".py::test_pkgrepo_pmaports") + (string-append "--deselect=test/parse/test_bootimg" + ".py::test_bootimg") + ;; RuntimeError: No package repositories specified? + (string-append "--deselect=test/parse/" + "test_deviceinfo.py::" + "test_random_valid_deviceinfos")))) + (native-inputs (list mkbootimg + python-pytest + python-setuptools + python-wheel + util-linux)) ; for losetup + (inputs (list bash-minimal + coreutils-minimal + git-minimal + multipath-tools + openssl + procps + tar + util-linux)) + (home-page "https://gitlab.com/postmarketOS/pmbootstrap") + (synopsis "Bootstrap a postmarketOS system") + (description + "This package provides a sophisticated chroot, build and flash tool +to develop and install postmarketOS.") + (license license:gpl3+))) base-commit: d3334af3958caad3617df5aa9ebe08c76285f345 -- 2.47.1
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 29 May 2025 19:39:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 29 15:39:56 2025 Received: from localhost ([127.0.0.1]:39292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uKj6Z-0008V6-MR for submit <at> debbugs.gnu.org; Thu, 29 May 2025 15:39:56 -0400 Received: from mx0.riseup.net ([198.252.153.6]:35744) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <nandre@HIDDEN>) id 1uKj6X-0008Ua-Cd for 62640 <at> debbugs.gnu.org; Thu, 29 May 2025 15:39:54 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4b7cC72Gp1z9vr0; Thu, 29 May 2025 19:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1748547587; bh=Nl8vplF166dP+f7XLOB3/zUwgTF2OcWqll7GMHb6Ckk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OsuzsxbYiOXaOGdBTEfP/MyDppr++fu9d/r2LvD6xYH64iVJY1WtUCro3k0YCvWHM 3Om1dhQiAS5HUcyTSCyl8Wv6wedhesJJ0D3IJFFxiPFHCb1JueT8TLnxblR419swr3 7JIEAdp7bLENe7Z119G5rwaHOru7F9xMnv/sYnS0= X-Riseup-User-ID: 52097CF7F72417D2EAB3B9FCCE172DAB6D02DEAD698347448980B8340696629F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4b7cC60cGpzFtZQ; Thu, 29 May 2025 19:39:45 +0000 (UTC) Date: Thu, 29 May 2025 16:39:37 -0300 From: =?iso-8859-1?Q?Andr=E9?= Batista <nandre@HIDDEN> To: Herman Rimm <herman@HIDDEN> Subject: Re: [bug#62640] [PATCH] gnu: Add pmbootstrap. Message-ID: <aDi3-Yi8ZVHDy0YI@andel> References: <MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me> <1fce4c8651be87d6611e2af30cdf4e24f97713c2.1748105428.git.herman@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1fce4c8651be87d6611e2af30cdf4e24f97713c2.1748105428.git.herman@HIDDEN> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN>, 62640 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Quite a lot of improvements! sáb 24 mai 2025 às 18:52:18 (1748123538), guix-patches@HIDDEN enviou: > (...) > + (arguments > + (list > + #:modules `((guix build pyproject-build-system) > + (guix build utils) > + (ice-9 match)) > + #:phases #~(modify-phases %standard-phases > + (add-after 'unpack 'set-sudo > + (lambda _ > + (substitute* "pmb/config/sudo.py" > + (("sudo\"") "/run/privileged/bin/sudo\"")))) > + (add-after 'wrap 'wrap-required-programs > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (wrap-program (string-append (assoc-ref outputs "out") > + "/bin/pmbootstrap") > + `("PATH" ":" prefix > + ,(map (match-lambda > + ((input directory) > + (string-append (assoc-ref inputs input) Even though this is fine, maintainers have been favoring the usage of 'this-package-inputs' and related functions that improve code semantics and readability. The same goes for gexps in place for the usual quote unquote dance. See: <https://guix.gnu.org/en/blog/2021/the-big-change> and <https://lists.gnu.org/archive/html/guix-commits/2022-09/msg00511.html> Also, a bit above, instead of 'assoc-ref outputs "out"', you may use #$output. Incidentally, the first link shows that I was really in the wrong as to the indentation comments in the previous mail. > + "/" directory))) > + '(("bash" "bin") > + ("coreutils" "bin") > + ("git" "bin") > + ("openssl" "bin") > + ("procps" "bin") > + ("multipath-tools" "sbin") Breaks alphabetical order, which was consistently respected otherwise. > + ("tar" "bin") > + ("util-linux" "bin") > + ("util-linux" "sbin")))))))) > + ;; The first two tests require a pmaports git repository in the workdir. > + #:test-flags #~(list (string-append "--deselect=test/core/test_pkgrepo" > + ".py::test_pkgrepo_pmaports") > + (string-append "--deselect=test/parse/test_bootimg" > + ".py::test_bootimg") > + ;; RuntimeError: No package repositories specified? > + (string-append "--deselect=test/parse/" > + "test_deviceinfo.py::" > + "test_random_valid_deviceinfos")))) But this is way clearer to me, thanks.. :) > + (native-inputs (list mkbootimg > + python-pytest > + python-setuptools > + python-wheel > + util-linux)) ; for losetup > + (inputs (list bash-minimal > + coreutils > + git > + multipath-tools > + openssl > + procps > + tar > + util-linux)) I could not check this, so more of a question: are this new inputs required for what? They seem to enlarge the package size quite a bit according to guix size. Cheers!
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 24 May 2025 16:53:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 24 12:53:32 2025 Received: from localhost ([127.0.0.1]:34643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uIs7k-0008R4-FY for submit <at> debbugs.gnu.org; Sat, 24 May 2025 12:53:32 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:52149 helo=email.rimm.ee) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <herman@HIDDEN>) id 1uIs7g-0008Q5-D6 for 62640 <at> debbugs.gnu.org; Sat, 24 May 2025 12:53:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1748105596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=putKCW/5npjOXmkYORhxa9pfKj1gDmslhjeed+oPIpo=; b=JZiRA1i7eJBwrLrz0XmraYyaP4NeeWepsJ6cBzQn6ylgxbJLP5HcoPh07p7sZJRhN9yH+Q SCBBbpccnrvbhIwZr8MvD+r6j4a6cgg9ICFlXUaR+n6z/ZVSVQZkux1mpYVSs6kih/yPmB KqWFMdK9nfnY1Xc0t9mPDgaL+PpR2WbPAO08xH24lgbL7CiIu9K8kobM/8i2SQj7WjMG3M ZS8NZok4r6hVks8IY8Yo1IlMbaX7MX/xdBuEDmgBBUzB9CBLIhNJDh2mlqart8wWQ3X+Ph ehtKZe0/M1ZLEAAAZ1S9qIkHwGuidNzW6IF97IGOkNyEYw9kHfCAkWgqvPxeBQ== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id bf229bf5 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 24 May 2025 16:53:16 +0000 (UTC) From: Herman Rimm <herman@HIDDEN> To: 62640 <at> debbugs.gnu.org Subject: [PATCH] gnu: Add pmbootstrap. Date: Sat, 24 May 2025 18:52:18 +0200 Message-ID: <1fce4c8651be87d6611e2af30cdf4e24f97713c2.1748105428.git.herman@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) From: Sughosha <Sughosha@HIDDEN> * gnu/packages/postmarketos.scm: New file. * gnu/packages/local.mk (GNU_SYSTEM_MODULES): Register file. Change-Id: Ib8347dd536738d2ea16a961c85308a0e43b98c1f --- gnu/local.mk | 1 + gnu/packages/postmarketos.scm | 107 ++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 gnu/packages/postmarketos.scm diff --git a/gnu/local.mk b/gnu/local.mk index 3730d272eae..a884110d381 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -566,6 +566,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/poedit.scm \ %D%/packages/polkit.scm \ %D%/packages/popt.scm \ + %D%/packages/postmarketos.scm \ %D%/packages/potassco.scm \ %D%/packages/power.scm \ %D%/packages/printers.scm \ diff --git a/gnu/packages/postmarketos.scm b/gnu/packages/postmarketos.scm new file mode 100644 index 00000000000..43e8caf2c80 --- /dev/null +++ b/gnu/packages/postmarketos.scm @@ -0,0 +1,107 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Sughosha <sughosha@HIDDEN> +;;; Copyright © 2025 Herman Rimm <herman@HIDDEN> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(define-module (gnu packages postmarketos) + #:use-module (gnu packages admin) + #:use-module (gnu packages android) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages check) + #:use-module (gnu packages linux) + #:use-module (gnu packages python-build) + #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) + #:use-module (guix build-system pyproject) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (ice-9 match)) + +(define-public pmbootstrap + (package + (name "pmbootstrap") + (version "3.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://gitlab.postmarketos.org/" + "postmarketOS/pmbootstrap.git")) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16naj8ykipbrs2a93zaxci1wl045cc9jn7rq8sy76d1rqlqb9mmw")))) + (build-system pyproject-build-system) + (arguments + (list + #:modules `((guix build pyproject-build-system) + (guix build utils) + (ice-9 match)) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'set-sudo + (lambda _ + (substitute* "pmb/config/sudo.py" + (("sudo\"") "/run/privileged/bin/sudo\"")))) + (add-after 'wrap 'wrap-required-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") + "/bin/pmbootstrap") + `("PATH" ":" prefix + ,(map (match-lambda + ((input directory) + (string-append (assoc-ref inputs input) + "/" directory))) + '(("bash" "bin") + ("coreutils" "bin") + ("git" "bin") + ("openssl" "bin") + ("procps" "bin") + ("multipath-tools" "sbin") + ("tar" "bin") + ("util-linux" "bin") + ("util-linux" "sbin")))))))) + ;; The first two tests require a pmaports git repository in the workdir. + #:test-flags #~(list (string-append "--deselect=test/core/test_pkgrepo" + ".py::test_pkgrepo_pmaports") + (string-append "--deselect=test/parse/test_bootimg" + ".py::test_bootimg") + ;; RuntimeError: No package repositories specified? + (string-append "--deselect=test/parse/" + "test_deviceinfo.py::" + "test_random_valid_deviceinfos")))) + (native-inputs (list mkbootimg + python-pytest + python-setuptools + python-wheel + util-linux)) ; for losetup + (inputs (list bash-minimal + coreutils + git + multipath-tools + openssl + procps + tar + util-linux)) + (home-page "https://gitlab.com/postmarketOS/pmbootstrap") + (synopsis "Bootstrap a postmarketOS system") + (description + "This package provides a sophisticated chroot, build and flash tool +to develop and install postmarketOS.") + (license license:gpl3+))) base-commit: 096dedd0bb13523002c814b001429c2f65b6f10d -- 2.47.1
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.André Batista <nandre@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 24 May 2025 16:26:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 24 12:26:38 2025 Received: from localhost ([127.0.0.1]:34382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uIrhl-0002Hj-Ke for submit <at> debbugs.gnu.org; Sat, 24 May 2025 12:26:38 -0400 Received: from mx1.riseup.net ([198.252.153.129]:58612) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <nandre@HIDDEN>) id 1uIrhj-0002Gc-F7; Sat, 24 May 2025 12:26:36 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4b4S8P0W3dzDsSD; Sat, 24 May 2025 16:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1748103989; bh=Z8hGjRv8q1Jt4jV6NZoeuiWU1Rd4pTmZ7JoYSBIOaAk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rPB0QinBzBwkjetFFYAwnggD1ROXuaIgwViYHxyQUTtj887gjRH988SIDR2ilK2CP lYMabLimjJW5hW5RvbbgTMRlETutBm83qdlrY3tuXc5XJV7e93dSzEq0/y06iVdoFb rv6ugptINsgd+Qals/Apm6pwFvCQFjIammuqJ9mc= X-Riseup-User-ID: 269D9E26D0353444922B9FA126AEB2DB0F96D9926D2E0A7ACE4F11D6753F699D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4b4S8M6158zFt4j; Sat, 24 May 2025 16:26:27 +0000 (UTC) Date: Sat, 24 May 2025 13:26:17 -0300 From: =?iso-8859-1?Q?Andr=E9?= Batista <nandre@HIDDEN> To: Herman Rimm <herman@HIDDEN> Subject: Re: [bug#62640] [PATCH v3] gnu: Add pmbootstrap. Message-ID: <aDHzKY5Z2RXwsBH8@andel> References: <MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me> <39f24b984cbc74b14a859046f3c466f295276738.1747654181.git.herman@HIDDEN> <aDDBThMTXIdu-AGg@andel> <lsv75ul52zn3l5czovjswkvjyyvfjznvhxdloqkrzlnmyyx5ea@cn4ft27y3qtx> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <lsv75ul52zn3l5czovjswkvjyyvfjznvhxdloqkrzlnmyyx5ea@cn4ft27y3qtx> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN>, control <at> debbugs.gnu.org, 62640 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) merge 62640 49577 quit sáb 24 mai 2025 às 14:59:48 (1748109588), herman@HIDDEN enviou: > (...) > > > > + (sha256 > > > + (base32 "16naj8ykipbrs2a93zaxci1wl045cc9jn7rq8sy76d1rqlqb9mmw")))) > > > + (build-system pyproject-build-system) > > > + (arguments > > > + (list #:test-flags > > > + ;; Tests require a pmaports git repository in the workdir. > > > + #~(list (string-append "--deselect=test/core/test_pkgrepo.py" > > > + "::test_pkgrepo_pmaports") > > > > This is a nitpick of mine, but I find it confusing when keys starting > > with '#' are followed by their arguments on another aligned line which > > also starts with '#' (a gexp this time, not another key). So, I'd suggest > > indenting the arguments with two spaces to ease reading. > > Like this? > > (arguments > (list #:test-flags > ;; Tests require a pmaports git repository in the workdir. > #~(list (string-append "--deselect=test/core/test_pkgrepo.py" > ...)))) > Precisely. > I would rather do it like this: > > (arguments > (list > ;; The first two tests require a pmaports git repository in the workdir. > #:test-flags #~(list (string-append "--deselect=test/core/test_pkgrepo" > ...)))) > This would be even better, IMO. But after reviewing some files, I think this is just my personal take on it, not a guix standard. So your patch, your take. > > Also, I would also have inserted this package directly on android.scm, > > since this tool is useful for android related activities and it seems > > overkill to create a new file for just one package. > > Besides handling the Android bootimg format, I don't think pmbootstrap > is Android related. Yes, the only other major PostmarketOS project is > pmaports, but I don't think there is an existing module where > pmbootstrap belongs. Should it be a more general module like: (gnu > packages smartphone)? > Makes sense. The only time I've used pmbootstrap was for analysing android images, so I've given this functionality undue primacy. I guess we may keep it as is for now and move it elsewhere on a separate commit if others see fit. > Can you please close or merge issue #49577, because the PyPi pmbootstrap > releases are apparently deprecated? > You may also do it by sending a mail to control <at> debbugs.gnu.org, as I've done here. There's no special priviledge to it. See: https://debbugs.gnu.org/server-control.html Note: I'm not a commiter, I'm just trying to help this patch get through by helping commiters with the review and giving it more visibility. Thanks!
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 24 May 2025 13:01:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 24 09:01:06 2025 Received: from localhost ([127.0.0.1]:58866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uIoUs-0004iq-1q for submit <at> debbugs.gnu.org; Sat, 24 May 2025 09:01:06 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:41893 helo=email.rimm.ee) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <herman@HIDDEN>) id 1uIoUo-0004hj-90 for 62640 <at> debbugs.gnu.org; Sat, 24 May 2025 09:01:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1748091654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YpHqAKjDToWpET0cJGmEytl7LZAhdjOj55W6T+jEhCQ=; b=VExvhEeJuPX8trqXjKZcRULbqq4HZWPixhivKMZxBAMIT7kaI5MGjYdlXHkjS94aylgllt blUfodeGO81BfZLD7WKtNeK1zhKL4TOMHjqdkNQ8GY2DwIjcbqfqaK3uJhYlWqitYjPU9O qxEkBylIwvCRNQmbmIgAxFfY7nTDsZWT+6b+qgeZJLRcj+bQWQ53YQIZF0Bw3Is+UlFmDt CZdY8cNDeu/S6YldQf6z+ELqDjGKVCutz4xymagd0EBQSOhSB+dmzIExGO0JWKEWWQlG8u O1VsbqlqNwMnm2GANd7UP5ihFG8CdLD63TctIyg4ggoMtOjSOZ9+rnGuK/wLaA== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 0e7caa17 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 24 May 2025 13:00:53 +0000 (UTC) Date: Sat, 24 May 2025 14:59:48 +0200 From: Herman Rimm <herman@HIDDEN> To: =?utf-8?B?QW5kcsOp?= Batista <nandre@HIDDEN> Subject: Re: [bug#62640] [PATCH v3] gnu: Add pmbootstrap. Message-ID: <lsv75ul52zn3l5czovjswkvjyyvfjznvhxdloqkrzlnmyyx5ea@cn4ft27y3qtx> References: <MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me> <39f24b984cbc74b14a859046f3c466f295276738.1747654181.git.herman@HIDDEN> <aDDBThMTXIdu-AGg@andel> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment Content-Transfer-Encoding: 8bit In-Reply-To: <aDDBThMTXIdu-AGg@andel> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN>, 62640 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi, On Fri, May 23, 2025 at 03:41:18PM -0300, André Batista wrote: > > diff --git a/gnu/local.mk b/gnu/local.mk > > index 3730d272eae..c4d5e6cb2e4 100644 > > --- a/gnu/local.mk > > +++ b/gnu/local.mk > > @@ -566,7 +566,8 @@ GNU_SYSTEM_MODULES = \ > > %D%/packages/poedit.scm \ > > %D%/packages/polkit.scm \ > > %D%/packages/popt.scm \ > > - %D%/packages/potassco.scm \ > > + %D%/packages/postmarketos.scm \ > > + %D%/packages/potassco.scm \ > > IMO, it would be better if you did not touch the potassco.scm line, since > this format change is unrelated to this commit. > > > +(define-public pmbootstrap > > + (package > > + (name "pmbootstrap") > > + (version "3.4.0") > > + (source > > + (origin > > + (method git-fetch) > > + (uri (git-reference > > + (url (string-append "https://gitlab.postmarketos.org/" > > + "postmarketOS/pmbootstrap")) > > + (commit version))) > > 'origin' is missing a file-name field which usually goes: > (file-name (git-file-name name version)) Thanks, I will make the appropriate changes for the next revision. I will also add a wrap phase so pmbootstrap can find the inputs' binaries. > > + (sha256 > > + (base32 "16naj8ykipbrs2a93zaxci1wl045cc9jn7rq8sy76d1rqlqb9mmw")))) > > + (build-system pyproject-build-system) > > + (arguments > > + (list #:test-flags > > + ;; Tests require a pmaports git repository in the workdir. > > + #~(list (string-append "--deselect=test/core/test_pkgrepo.py" > > + "::test_pkgrepo_pmaports") > > This is a nitpick of mine, but I find it confusing when keys starting > with '#' are followed by their arguments on another aligned line which > also starts with '#' (a gexp this time, not another key). So, I'd suggest > indenting the arguments with two spaces to ease reading. Like this? (arguments (list #:test-flags ;; Tests require a pmaports git repository in the workdir. #~(list (string-append "--deselect=test/core/test_pkgrepo.py" ...)))) I would rather do it like this: (arguments (list ;; The first two tests require a pmaports git repository in the workdir. #:test-flags #~(list (string-append "--deselect=test/core/test_pkgrepo" ...)))) > Also, I would also have inserted this package directly on android.scm, > since this tool is useful for android related activities and it seems > overkill to create a new file for just one package. Besides handling the Android bootimg format, I don't think pmbootstrap is Android related. Yes, the only other major PostmarketOS project is pmaports, but I don't think there is an existing module where pmbootstrap belongs. Should it be a more general module like: (gnu packages smartphone)? Can you please close or merge issue #49577, because the PyPi pmbootstrap releases are apparently deprecated? Cheers, Herman
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 23 May 2025 18:41:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 23 14:41:47 2025 Received: from localhost ([127.0.0.1]:50590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uIXKx-0003iG-Nj for submit <at> debbugs.gnu.org; Fri, 23 May 2025 14:41:47 -0400 Received: from mx0.riseup.net ([198.252.153.6]:48796) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <nandre@HIDDEN>) id 1uIXKt-0003hc-QO for 62640 <at> debbugs.gnu.org; Fri, 23 May 2025 14:41:41 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4b3vBj1SBjz9wBJ; Fri, 23 May 2025 18:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1748025693; bh=jOThOE6c7ShxTdkolMAOvTDUSFNWmqvbRY4VSWm3+/M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qxDeU6zziria9XPoMLrrXn3otdEHw5AhxPZu2GmUqpzmohlr8kvc6U/CTXUpP7cpg uylOpp97M73ezTSM/SeG98S4QQVI+R6ZYsBmewn0DNRtx/dmuR6caN+l8MoQDUak1g osfkHYANLjDuQyA/flwmw+VjpWLSt87VkpmyaIuk= X-Riseup-User-ID: 3D48D6F2838DA1564B5414D125A4FC00F280DB861155F541C6D36ECA40CEC154 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4b3vBg3KKczFv6V; Fri, 23 May 2025 18:41:31 +0000 (UTC) Date: Fri, 23 May 2025 15:41:18 -0300 From: =?iso-8859-1?Q?Andr=E9?= Batista <nandre@HIDDEN> To: Herman Rimm <herman@HIDDEN> Subject: Re: [bug#62640] [PATCH v3] gnu: Add pmbootstrap. Message-ID: <aDDBThMTXIdu-AGg@andel> References: <MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me> <39f24b984cbc74b14a859046f3c466f295276738.1747654181.git.herman@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <39f24b984cbc74b14a859046f3c466f295276738.1747654181.git.herman@HIDDEN> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN>, 62640 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Herman, seg 19 mai 2025 às 13:42:13 (1747672933), guix-patches@HIDDEN enviou: > From: Sughosha <Sughosha@HIDDEN> > > * gnu/packages/postmarketos.scm: New file. > * gnu/packages/local.mk (GNU_SYSTEM_MODULES): Register file. > > Change-Id: Ib8347dd536738d2ea16a961c85308a0e43b98c1f > --- > Hello, > > For v3: > version is bumped to 3.4.0; > source uses git-fetch; > three tests are skipped; > mkbootimg, python-setuptools, python-wheel and util-linux are added to > native-inputs; > multipath-tools is added to propagated-inputs. > > pmbootstrap uses kpartx from multipath-tools for e.g.: > $ pmbootstrap install --sdcard /dev/sda > If the kpartx invocations could be replaced with a store path, > then multipath-tools could be moved to (normal) inputs. > > Cheers, > Herman > > gnu/local.mk | 3 +- > gnu/packages/postmarketos.scm | 71 +++++++++++++++++++++++++++++++++++ > 2 files changed, 73 insertions(+), 1 deletion(-) > create mode 100644 gnu/packages/postmarketos.scm > > diff --git a/gnu/local.mk b/gnu/local.mk > index 3730d272eae..c4d5e6cb2e4 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -566,7 +566,8 @@ GNU_SYSTEM_MODULES = \ > %D%/packages/poedit.scm \ > %D%/packages/polkit.scm \ > %D%/packages/popt.scm \ > - %D%/packages/potassco.scm \ > + %D%/packages/postmarketos.scm \ > + %D%/packages/potassco.scm \ IMO, it would be better if you did not touch the potassco.scm line, since this format change is unrelated to this commit. > %D%/packages/power.scm \ > %D%/packages/printers.scm \ > %D%/packages/profiling.scm \ > diff --git a/gnu/packages/postmarketos.scm b/gnu/packages/postmarketos.scm > new file mode 100644 > index 00000000000..78e95fcbb5d > --- /dev/null > +++ b/gnu/packages/postmarketos.scm > @@ -0,0 +1,71 @@ > +;;; GNU Guix --- Functional package management for GNU > +;;; Copyright © 2023 Sughosha <sughosha@HIDDEN> > +;;; Copyright © 2025 Herman Rimm <herman@HIDDEN> > +;;; > +;;; 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 <http://www.gnu.org/licenses/>. > + > +(define-module (gnu packages postmarketos) > + #:use-module (gnu packages admin) > + #:use-module (gnu packages android) > + #:use-module (gnu packages bash) > + #:use-module (gnu packages check) > + #:use-module (gnu packages linux) > + #:use-module (gnu packages python-build) > + #:use-module (gnu packages tls) > + #:use-module (gnu packages version-control) > + #:use-module (guix build-system pyproject) > + #:use-module (guix gexp) > + #:use-module (guix git-download) > + #:use-module ((guix licenses) #:prefix license:) > + #:use-module (guix packages)) > + > +(define-public pmbootstrap > + (package > + (name "pmbootstrap") > + (version "3.4.0") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url (string-append "https://gitlab.postmarketos.org/" > + "postmarketOS/pmbootstrap")) > + (commit version))) 'origin' is missing a file-name field which usually goes: (file-name (git-file-name name version)) > + (sha256 > + (base32 "16naj8ykipbrs2a93zaxci1wl045cc9jn7rq8sy76d1rqlqb9mmw")))) > + (build-system pyproject-build-system) > + (arguments > + (list #:test-flags > + ;; Tests require a pmaports git repository in the workdir. > + #~(list (string-append "--deselect=test/core/test_pkgrepo.py" > + "::test_pkgrepo_pmaports") This is a nitpick of mine, but I find it confusing when keys starting with '#' are followed by their arguments on another aligned line which also starts with '#' (a gexp this time, not another key). So, I'd suggest indenting the arguments with two spaces to ease reading. Also, I would also have inserted this package directly on android.scm, since this tool is useful for android related activities and it seems overkill to create a new file for just one package. WDYT? Thanks for picking up this patch!
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 19 May 2025 11:43:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 19 07:43:40 2025 Received: from localhost ([127.0.0.1]:38560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uGyuA-00040Q-UM for submit <at> debbugs.gnu.org; Mon, 19 May 2025 07:43:40 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:43169 helo=email.rimm.ee) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <herman@HIDDEN>) id 1uGyu1-0003z3-R9 for 62640 <at> debbugs.gnu.org; Mon, 19 May 2025 07:43:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1747655000; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K9I59ZrXssLwzTEnEnZ3swy2J2uGcbngMS50up4uNjY=; b=Kls4CO7Z8AP4wjANC6auo3IC9Tsm4KihMGkcPUzg30LtIAc3EACuWRn+lA1NqtnzZpzg5s XaOTIHtNa6JK3hlxUK41NwUWfpaFBrIZYZDw86hGphLlqZYcXID+4nKGUeBpQme974uBz4 H9oT9MuMfyyAFRjzeIreeLB7kAfp6xsoNd8g226sWR+CutMrGVNu4GpGu+2BrccxMeTarW t03ffh6/b/CdrG+8PgdRwdhsQ4k0jd4I2ExEMpRriXOSbxzEm3mrSlXMkgUXDh+bwwVe5U MTcEhyuGuj6wcRe/5IlXucFNmF3/3F9Jz/d8eYvu1IzO2GLfUsZhGmXjoEKJcA== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 2fd8e0b0 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Mon, 19 May 2025 11:43:20 +0000 (UTC) From: Herman Rimm <herman@HIDDEN> To: 62640 <at> debbugs.gnu.org Subject: [PATCH v3] gnu: Add pmbootstrap. Date: Mon, 19 May 2025 13:42:13 +0200 Message-ID: <39f24b984cbc74b14a859046f3c466f295276738.1747654181.git.herman@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62640 Cc: Sughosha <Sughosha@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) From: Sughosha <Sughosha@HIDDEN> * gnu/packages/postmarketos.scm: New file. * gnu/packages/local.mk (GNU_SYSTEM_MODULES): Register file. Change-Id: Ib8347dd536738d2ea16a961c85308a0e43b98c1f --- Hello, For v3: version is bumped to 3.4.0; source uses git-fetch; three tests are skipped; mkbootimg, python-setuptools, python-wheel and util-linux are added to native-inputs; multipath-tools is added to propagated-inputs. pmbootstrap uses kpartx from multipath-tools for e.g.: $ pmbootstrap install --sdcard /dev/sda If the kpartx invocations could be replaced with a store path, then multipath-tools could be moved to (normal) inputs. Cheers, Herman gnu/local.mk | 3 +- gnu/packages/postmarketos.scm | 71 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/postmarketos.scm diff --git a/gnu/local.mk b/gnu/local.mk index 3730d272eae..c4d5e6cb2e4 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -566,7 +566,8 @@ GNU_SYSTEM_MODULES = \ %D%/packages/poedit.scm \ %D%/packages/polkit.scm \ %D%/packages/popt.scm \ - %D%/packages/potassco.scm \ + %D%/packages/postmarketos.scm \ + %D%/packages/potassco.scm \ %D%/packages/power.scm \ %D%/packages/printers.scm \ %D%/packages/profiling.scm \ diff --git a/gnu/packages/postmarketos.scm b/gnu/packages/postmarketos.scm new file mode 100644 index 00000000000..78e95fcbb5d --- /dev/null +++ b/gnu/packages/postmarketos.scm @@ -0,0 +1,71 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Sughosha <sughosha@HIDDEN> +;;; Copyright © 2025 Herman Rimm <herman@HIDDEN> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(define-module (gnu packages postmarketos) + #:use-module (gnu packages admin) + #:use-module (gnu packages android) + #:use-module (gnu packages bash) + #:use-module (gnu packages check) + #:use-module (gnu packages linux) + #:use-module (gnu packages python-build) + #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) + #:use-module (guix build-system pyproject) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages)) + +(define-public pmbootstrap + (package + (name "pmbootstrap") + (version "3.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://gitlab.postmarketos.org/" + "postmarketOS/pmbootstrap")) + (commit version))) + (sha256 + (base32 "16naj8ykipbrs2a93zaxci1wl045cc9jn7rq8sy76d1rqlqb9mmw")))) + (build-system pyproject-build-system) + (arguments + (list #:test-flags + ;; Tests require a pmaports git repository in the workdir. + #~(list (string-append "--deselect=test/core/test_pkgrepo.py" + "::test_pkgrepo_pmaports") + (string-append "--deselect=test/parse/test_bootimg.py" + "::test_bootimg") + ;; RuntimeError: No package repositories specified? + (string-append "--deselect=test/parse/test_deviceinfo.py" + "::test_random_valid_deviceinfos")))) + (native-inputs (list mkbootimg + python-pytest + python-setuptools + python-wheel + util-linux)) ; for losetup + (inputs (list bash-minimal git openssl procps)) + (propagated-inputs (list multipath-tools)) ; for kpartx + (home-page "https://gitlab.com/postmarketOS/pmbootstrap") + (synopsis "Bootstrap a postmarketOS system") + (description + "This package provides a sophisticated chroot, build and flash tool +to develop and install postmarketOS.") + (license license:gpl3+))) base-commit: 450a361532573a02389530a6a80b7821683ed41b -- 2.47.1
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at 62640) by debbugs.gnu.org; 3 Apr 2023 08:25:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 03 04:25:02 2023 Received: from localhost ([127.0.0.1]:43317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pjFUr-0005wM-Ep for submit <at> debbugs.gnu.org; Mon, 03 Apr 2023 04:25:02 -0400 Received: from mail-4325.protonmail.ch ([185.70.43.25]:34339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <Sughosha@HIDDEN>) id 1pjFUn-0005w2-I7 for 62640 <at> debbugs.gnu.org; Mon, 03 Apr 2023 04:25:00 -0400 Date: Mon, 03 Apr 2023 08:24:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1680510291; x=1680769491; bh=ppKhUoEbWAn3kvsV+AMm50Co6EE5aNO+YCusooTRDMQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=hvjGSG18wGpZWZbWeqTZX515iWBXDoBJiwDSrFfo8Frtp46LFp/idQyHOOzYrdvSs 3o0d9MgK2QH7cgjCT7HJjwF63GxWuY2VJKoQdeTP/zv0W32XCVbU+oiQHAMWZKOX+O F5G992v+6NhoPBRDaxGAKAVfY1NepgvUsNcwHI8xVBe55sTJs7uDoI7vts8mZ8wKda pR9o+nYb4s5rMLvLnovDOfZrmZIKTZ+Nvgp6GdvFmKxuxXzLQi8VCOkgDB7/7AN6js lypKmfhB54n2BjgJRiL+dzOoZvvEgP8UWfEDzZw4vgyKyihsrp3am/z9jFtQbduu7+ tQJ5YUnyORCbQ== To: "62640 <at> debbugs.gnu.org" <62640 <at> debbugs.gnu.org> From: Sughosha <Sughosha@HIDDEN> Subject: [PATCH v2] gnu: Add pmbootstrap. Message-ID: <pPkb5iqZT19LQLqcOCVOnD94Y9Y_nSvMYMYSP2N2krL3rZE5m9VMMc6bAkKc_4K5_75sPWRMhpBgaDGHQ2mTTheuwIS9xxnG5HYIr30IS7s=@proton.me> Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62640 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * 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..12e5f68 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.scm=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 <sughosha@HIDDEN> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(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
guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.Received: (at submit) by debbugs.gnu.org; 3 Apr 2023 08:18:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 03 04:18:22 2023 Received: from localhost ([127.0.0.1]:43311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pjFOQ-0005mF-Fm for submit <at> 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 <Sughosha@HIDDEN>) id 1pjFOM-0005m3-58 for submit <at> 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 <Sughosha@HIDDEN>) id 1pjFOL-0007yr-BJ for guix-patches@HIDDEN; 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 <Sughosha@HIDDEN>) id 1pjFOF-00042c-6w for guix-patches@HIDDEN; 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== To: "guix-patches@HIDDEN" <guix-patches@HIDDEN> From: Sughosha <Sughosha@HIDDEN> Subject: [PATCH] gnu: Add pmbootstrap. Message-ID: <MDlQnvmTSMdBOA-miRitrZEVpgtjih5PpVMCx7sTCkEKyb7WuDMgjNwLNrXU-yonYNvlUvepis5BZ_FYW4U7t-y5QW30P_f3NpFZha1cXe4=@proton.me> 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@HIDDEN; 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) * 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 <sughosha@HIDDEN> +;;; +;;; 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 <http://www.gnu.org/licenses/>. + +(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
Sughosha <Sughosha@HIDDEN>
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#62640
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.