GNU bug report logs - #30334
[PATCH] gnu: Add dtrx.

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Sat, 3 Feb 2018 13:30:01 UTC

Severity: normal

Tags: patch

Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30334 in the body.
You can then email your comments to 30334 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#30334; Package guix-patches. (Sat, 03 Feb 2018 13:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 03 Feb 2018 13:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add dtrx.
Date: Sat,  3 Feb 2018 14:29:14 +0100
* gnu/packages.compression.scm (dtrx): New variable.
---
 gnu/packages/compression.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index ae6710b25..0d9a6bfcf 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2017 Stefan Reichör <stefan <at> xsteve.at>
 ;;; Copyright © 2017 Petter <petter <at> mykolab.ch>
 ;;; Copyright © 2017 Julien Lepiller <julien <at> lepiller.eu>
+;;; Copyright © 2018 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -53,10 +54,12 @@
   #:use-module (gnu packages backup)
   #:use-module (gnu packages base)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages cpio)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages file)
   #:use-module (gnu packages java)
   #:use-module (gnu packages maths)
+  #:use-module (gnu packages package-management)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check)
   #:use-module (gnu packages pkg-config)
@@ -2051,3 +2054,50 @@ faster by plzip, unless the @code{-b} option was used: lzip usually produces
 single-member files which can't be decompressed in parallel.")
     (license (list license:bsd-2        ; arg_parser.{cc,h}
                    license:gpl2+))))    ; everything else
+
+
+(define-public dtrx
+  (package
+    (name "dtrx")
+    (version "7.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://brettcsmith.org/2007/"
+                           "dtrx/dtrx-" version ".tar.gz"))
+       (sha256
+        (base32 "15yf4n27zbhvv0byfv3i89wl5zn6jc2wbc69lk5a3m6rx54gx6hw"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:python ,python-2))
+    (inputs
+     `(("binutils" ,binutils) ; ar
+       ("bzip2" ,bzip2) ; bzcat
+       ("cabextract" ,cabextract)
+       ("cpio" ,cpio) ; cpio
+       ("gzip" ,gzip) ; zcat
+       ;; ("lha" ,lha) missing in guix
+       ("p7zip" ,p7zip) ; 7z
+       ("rpm" ,rpm) ; rpm2cpio
+       ("tar" ,tar)
+       ;; ("unrar" ,unrar) ; abandoned upstream
+       ("unshield" ,unshield)
+       ("unzip" ,unzip)
+       ("xz" ,xz))) ; lzcat, xzcat
+    (home-page "http://www.brettcsmith.org/2007/dtrx/")
+    (synopsis "Intelligently extract multiple archive types")
+    (description "@command{dtrx} extracts archives in a number of different
+formats, so you don't have to remember the flags for each archive command.
+Just use the same command for all your archive files, and they'll never
+frustrate you again.
+
+In addition to providing one command to handle many different archive types,
+@command{dtrx} also aids the user by extracting contents consistently.  By
+default, everything will be written to a dedicated directory that’s named
+after the archive.  dtrx will also change the permissions to ensure that the
+owner can read and write all those files.
+
+It currently supports tar, zip (including self-extracting .exe files), cpio,
+rpm, deb, gem, 7z, cab, rar, and InstallShield files.  It can also decompress
+files compressed with gzip, bzip2, lzma, xz, or compress.")
+    (license license:gpl3+)))
-- 
2.13.6





Information forwarded to guix-patches <at> gnu.org:
bug#30334; Package guix-patches. (Tue, 13 Feb 2018 23:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 30334 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 30334 <at> debbugs.gnu.org
Subject: Re: [bug#30334] [PATCH] gnu: Add dtrx.
Date: Wed, 14 Feb 2018 00:15:32 +0100
[Message part 1 (text/plain, inline)]
Hartmut Goebel <h.goebel <at> crazy-compilers.com> writes:

> * gnu/packages.compression.scm (dtrx): New variable.

[...]

> @@ -53,10 +54,12 @@
>    #:use-module (gnu packages backup)
>    #:use-module (gnu packages base)
>    #:use-module (gnu packages check)
> +  #:use-module (gnu packages cpio)
>    #:use-module (gnu packages curl)
>    #:use-module (gnu packages file)
>    #:use-module (gnu packages java)
>    #:use-module (gnu packages maths)
> +  #:use-module (gnu packages package-management)
>    #:use-module (gnu packages perl)
>    #:use-module (gnu packages perl-check)
>    #:use-module (gnu packages pkg-config)

I wonder if there are other places to put this package.  (gnu packages
compression) is starting to have a lot of top-level cross-module
references.  Though I'm not sure what consequences it has in practice.

> +(define-public dtrx
> +  (package
> +    (name "dtrx")
> +    (version "7.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://brettcsmith.org/2007/"
> +                           "dtrx/dtrx-" version ".tar.gz"))
> +       (sha256
> +        (base32 "15yf4n27zbhvv0byfv3i89wl5zn6jc2wbc69lk5a3m6rx54gx6hw"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:python ,python-2))
> +    (inputs
> +     `(("binutils" ,binutils) ; ar
> +       ("bzip2" ,bzip2) ; bzcat
> +       ("cabextract" ,cabextract)
> +       ("cpio" ,cpio) ; cpio
> +       ("gzip" ,gzip) ; zcat
> +       ;; ("lha" ,lha) missing in guix
> +       ("p7zip" ,p7zip) ; 7z
> +       ("rpm" ,rpm) ; rpm2cpio
> +       ("tar" ,tar)
> +       ;; ("unrar" ,unrar) ; abandoned upstream

The canonical unrar is also non-free, so I think we should remove this
line entirely, so that we don't direct potential contributors to it.

> +       ("unshield" ,unshield)
> +       ("unzip" ,unzip)
> +       ("xz" ,xz))) ; lzcat, xzcat

Does dtrx actually keep references to all of these (as verified with
`guix gc -R`)?

> +    (home-page "http://www.brettcsmith.org/2007/dtrx/")
> +    (synopsis "Intelligently extract multiple archive types")
> +    (description "@command{dtrx} extracts archives in a number of different
> +formats, so you don't have to remember the flags for each archive command.
> +Just use the same command for all your archive files, and they'll never
> +frustrate you again.
> +
> +In addition to providing one command to handle many different archive types,
> +@command{dtrx} also aids the user by extracting contents consistently.  By
> +default, everything will be written to a dedicated directory that’s named
> +after the archive.  dtrx will also change the permissions to ensure that the
> +owner can read and write all those files.
> +
> +It currently supports tar, zip (including self-extracting .exe files), cpio,
> +rpm, deb, gem, 7z, cab, rar, and InstallShield files.  It can also decompress
> +files compressed with gzip, bzip2, lzma, xz, or compress.")

I think we should not mention formats that are not currently supported,
so as to not confuse users who search for e.g. rar and tries installing
this.  Or maybe remove this last paragraph entirely to ease maintenance,
WDYT?  Just in case there is a new upstream release after all these
years.

LGTM otherwise (assuming it works!).
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#30334; Package guix-patches. (Mon, 23 Apr 2018 13:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 30334 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 30334 <at> debbugs.gnu.org
Subject: Re: [bug#30334] [PATCH] gnu: Add dtrx.
Date: Mon, 23 Apr 2018 15:00:14 +0200
Hey Hartmut,

Any update on this patch?

Thanks,
Ludo’.




Reply sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
You have taken responsibility. (Mon, 23 Apr 2018 13:40:01 GMT) Full text and rfc822 format available.

Notification sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
bug acknowledged by developer. (Mon, 23 Apr 2018 13:40:02 GMT) Full text and rfc822 format available.

Message #16 received at 30334-close <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: Ludovic Courtès <ludo <at> gnu.org>,
 30334-close <at> debbugs.gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: Re: [bug#30334] [PATCH] gnu: Add dtrx.
Date: Mon, 23 Apr 2018 15:39:51 +0200
Sorry, I'm currently short in time and will not be able to finish this
some when soon. Closing.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 22 May 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 313 days ago.

Previous Next


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