GNU bug report logs - #37457
[PATCH] gnu: Add makeself-safeextract.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Pierre Neidhardt <mail@HIDDEN>; Keywords: patch; Done: Pierre Neidhardt <mail@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.
bug closed, send any further explanations to 37457 <at> debbugs.gnu.org and Pierre Neidhardt <mail@HIDDEN> Request was from Pierre Neidhardt <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 37457 <at> debbugs.gnu.org:


Received: (at 37457) by debbugs.gnu.org; 27 Sep 2019 07:58:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 27 03:58:22 2019
Received: from localhost ([127.0.0.1]:45799 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iDl8w-0001Hp-0Z
	for submit <at> debbugs.gnu.org; Fri, 27 Sep 2019 03:58:22 -0400
Received: from relay12.mail.gandi.net ([217.70.178.232]:48407)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1iDl8t-0001Hf-9W
 for 37457 <at> debbugs.gnu.org; Fri, 27 Sep 2019 03:58:20 -0400
Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76])
 (Authenticated sender: pierre@HIDDEN)
 by relay12.mail.gandi.net (Postfix) with ESMTPSA id 68FB720000A;
 Fri, 27 Sep 2019 07:58:17 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#37457] [PATCH] gnu: Add makeself-safeextract.
In-Reply-To: <87k19uix2h.fsf@HIDDEN>
References: <20190919103552.1415-1-mail@HIDDEN> <87k19uix2h.fsf@HIDDEN>
Date: Fri, 27 Sep 2019 09:58:16 +0200
Message-ID: <87y2yab27b.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 37457
Cc: 37457 <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: -0.2 (/)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Done, thanks!

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2NwRgACgkQm9z0l6S7
zH+9UAf9G4FAOBi5K9ISABNNNgxxWgzEkRT2JgAd+i0wct9MsCxFJDFbCM2+IwGO
v9P+vG3GOzvil5H0/S2+8j2YsTUxarJ226ImwSDRXC0k6DRn4dqkQ/JFG5dfpT/3
uREVzML7UVTi1aC2W9MbP+IUbv40wmcbE2kXD5VNuu/aXhET70cpbaaOR5MxtlLi
EaAGY7hAFoemoB+5YvRqHgVxWf78BsLGtFWfsOzH2HIilMGTnmFbARxpTzw661A/
6UQrzWdFhQjXDDEzFk0xcAhc6znKdlXm5S8vAHOJ4dL1a/NQXZV9pBQVOFUakct3
eJAx2aAyMUrDj7KttiszN54h+A3beA==
=sFnf
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#37457; Package guix-patches. Full text available.

Message received at 37457 <at> debbugs.gnu.org:


Received: (at 37457) by debbugs.gnu.org; 26 Sep 2019 21:09:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 26 17:09:46 2019
Received: from localhost ([127.0.0.1]:45410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iDb1G-0000er-98
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2019 17:09:46 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:50758)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iDb1E-0000ei-Lk
 for 37457 <at> debbugs.gnu.org; Thu, 26 Sep 2019 17:09:45 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id D5DDC8BDE8;
 Thu, 26 Sep 2019 23:09:43 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 8T0fuGjM5VC2; Thu, 26 Sep 2019 23:09:43 +0200 (CEST)
Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id B93848BDE6;
 Thu, 26 Sep 2019 23:09:42 +0200 (CEST)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>
Subject: Re: [bug#37457] [PATCH] gnu: Add makeself-safeextract.
References: <20190919103552.1415-1-mail@HIDDEN>
Date: Thu, 26 Sep 2019 23:09:42 +0200
In-Reply-To: <20190919103552.1415-1-mail@HIDDEN> (Pierre Neidhardt's
 message of "Thu, 19 Sep 2019 12:35:52 +0200")
Message-ID: <87k19uix2h.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 37457
Cc: 37457 <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: -0.0 (/)

Hello,

Pierre Neidhardt <mail@HIDDEN> skribis:

> * gnu/packages/compression.scm (makeself-safeextract): New variable.

[...]

> +      (synopsis "Extract makeself and mojo archives without running untr=
usted code")
> +      (description "A simple script to unpack makeself-generated
> +self-extractors without running the possibly untrusted shell script.")

What about:

  This package provides a script to unpack self-extracting archives
  generated by @command{makeself} or @command{mojo} without running the
  possibly untrusted extraction shell script.

?

(I didn=E2=80=99t know about these things.)

Otherwise LGTM, thanks!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#37457; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Sep 2019 10:36:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 19 06:36:21 2019
Received: from localhost ([127.0.0.1]:55180 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iAtnM-0008Ds-Rs
	for submit <at> debbugs.gnu.org; Thu, 19 Sep 2019 06:36:21 -0400
Received: from lists.gnu.org ([209.51.188.17]:50190)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1iAtnK-0008Dj-I7
 for submit <at> debbugs.gnu.org; Thu, 19 Sep 2019 06:36:15 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54109)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <mail@HIDDEN>) id 1iAtnI-0002xg-IS
 for guix-patches@HIDDEN; Thu, 19 Sep 2019 06:36:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1iAtnG-0006aC-Fc
 for guix-patches@HIDDEN; Thu, 19 Sep 2019 06:36:11 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:43441)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1iAtnG-0006Z7-3p
 for guix-patches@HIDDEN; Thu, 19 Sep 2019 06:36:10 -0400
X-Originating-IP: 92.169.116.127
Received: from localhost.localdomain (lfbn-1-4117-127.w92-169.abo.wanadoo.fr
 [92.169.116.127]) (Authenticated sender: mail@HIDDEN)
 by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id C5CF520016
 for <guix-patches@HIDDEN>; Thu, 19 Sep 2019 10:36:07 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add makeself-safeextract.
Date: Thu, 19 Sep 2019 12:35:52 +0200
Message-Id: <20190919103552.1415-1-mail@HIDDEN>
X-Mailer: git-send-email 2.23.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-Received-From: 217.70.183.200
X-Spam-Score: -0.4 (/)
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.1 (--)

* gnu/packages/compression.scm (makeself-safeextract): New variable.
---
 gnu/packages/compression.scm | 49 +++++++++++++++++++++++++++++++++++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index bda43bfd18..9785fa7a60 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -22,7 +22,7 @@
 ;;; Copyright © 2017 Julien Lepiller <julien@HIDDEN>
 ;;; Copyright © 2018 Rutger Helling <rhelling@HIDDEN>
 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@HIDDEN>
-;;; Copyright © 2018 Pierre Neidhardt <mail@HIDDEN>
+;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@HIDDEN>
 ;;; Copyright © 2019 Nicolas Goaziou <mail@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -48,6 +48,7 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system trivial)
   #:use-module (gnu packages)
   #:use-module (gnu packages assembly)
   #:use-module (gnu packages autotools)
@@ -2000,3 +2001,49 @@ external compressors: the compressor to be used for each format is configurable
 at run time, and must be installed separately.")
     (license (list license:bsd-2        ; arg_parser.{cc,h}
                    license:gpl2+))))    ; the rest
+
+(define-public makeself-safeextract
+  (let ((commit "1a95e121fa8e3c02d307ae37b9b7834e616c3683"))
+    (package
+      (name "makeself-safeextract")
+      (version (git-version "0.0.0" "1" commit))
+      (home-page "https://github.com/ssokolow/makeself_safeextract")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url home-page)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1anlinaj9lvfi8bn00wp11vzqq0f9sig4fm9yrspisx31v0z4a2c"))))
+      (build-system trivial-build-system)
+      (inputs
+       `(("python" ,python-2)
+         ("p7zip" ,p7zip)
+         ("unzip" ,unzip)))
+      (arguments
+       `(#:modules ((guix build utils))
+         #:builder
+         (begin
+           (use-modules (guix build utils))
+           (let* ((name "makeself_safeextract")
+                  (source (string-append (assoc-ref %build-inputs "source")
+                                         "/" name ".py"))
+                  (bin (string-append (assoc-ref %outputs "out") "/bin"))
+                  (target (string-append bin "/" name))
+                  (python (string-append (assoc-ref %build-inputs "python") "/bin"))
+                  (7z (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z"))
+                  (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
+             (setenv "PATH" (string-append (getenv "PATH") ":" python))
+             (mkdir-p bin)
+             (copy-file source target)
+             (substitute* target
+               (("'7z'") (format #f "'~a'" 7z))
+               (("'unzip'") (format #f "'~a'" unzip)))
+             (patch-shebang target)))))
+      (synopsis "Extract makeself and mojo archives without running untrusted code")
+      (description "A simple script to unpack makeself-generated
+self-extractors without running the possibly untrusted shell script.")
+      (license license:gpl3+))))
-- 
2.23.0





Acknowledgement sent to Pierre Neidhardt <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#37457; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 27 Sep 2019 08:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.