GNU bug report logs -
#26625
[PATCH] gnu : Add unshield.
Previous Next
Reported by: manolis837 <at> gmail.com
Date: Sun, 23 Apr 2017 17:25:02 UTC
Severity: normal
Tags: fixed, patch
Done: Alex Kost <alezost <at> gmail.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 26625 in the body.
You can then email your comments to 26625 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Sun, 23 Apr 2017 17:25:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
manolis837 <at> gmail.com
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 23 Apr 2017 17:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Manolis Ragkousis <manolis837 <at> gmail.com>
* gnu/packages/compression.scm (unshield): New variable.
---
gnu/packages/compression.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 4793755c2..79029df5f 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2016 Kei Kebreau <kei <at> openmailbox.org>
;;; Copyright © 2016 Marius Bakke <mbakke <at> fastmail.com>
;;; Copyright © 2017 ng0 <contact.ng0 <at> cryptolab.net>
+;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -40,6 +41,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
+ #:use-module (guix build-system cmake)
#:use-module (gnu packages)
#:use-module (gnu packages assembly)
#:use-module (gnu packages autotools)
@@ -50,6 +52,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages valgrind)
+ #:use-module (gnu packages tls)
#:use-module (ice-9 match)
#:use-module ((srfi srfi-1) #:select (last)))
@@ -1159,6 +1162,28 @@ or junctions, and always follows hard links.")
;; expat-licenced (or ‘MIT’) code.
license:expat))))
+(define-public unshield
+ (package
+ (name "unshield")
+ (version "1.4.2")
+ (source
+ (origin (method url-fetch)
+ (uri (string-append "http://github.com/twogood/unshield/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0x7ps644yp5dka2zhb8w0ifqmw3d255jafpzfwv8xbcpgq6fmm2x"))))
+ (build-system cmake-build-system)
+ (inputs
+ `(("zlib" ,zlib)
+ ("openssl" ,openssl)))
+ (arguments
+ `(#:tests? #f)) ; no test target
+ (home-page "https://github.com/twogood/unshield")
+ (synopsis "Tool to extract CAB files.")
+ (description "Extracts CAB files from InstallShield installers")
+ (license license:expat)))
+
(define-public unrar
(package
(name "unrar")
--
2.12.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Mon, 24 Apr 2017 14:53:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26625 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
manolis837 <at> gmail.com writes:
> * gnu/packages/compression.scm (unshield): New variable.
[...]
> @@ -40,6 +41,7 @@
> #:use-module (guix build-system gnu)
> #:use-module (guix build-system perl)
> #:use-module (guix build-system python)
> + #:use-module (guix build-system cmake)
> #:use-module (gnu packages)
> #:use-module (gnu packages assembly)
> #:use-module (gnu packages autotools)
> @@ -50,6 +52,7 @@
> #:use-module (gnu packages pkg-config)
> #:use-module (gnu packages python)
> #:use-module (gnu packages valgrind)
> + #:use-module (gnu packages tls)
Please try to keep module imports, inputs, etc alphabetically sorted,
when they are so from before.
> +(define-public unshield
> + (package
> + (name "unshield")
> + (version "1.4.2")
> + (source
> + (origin (method url-fetch)
> + (uri (string-append "http://github.com/twogood/unshield/archive/"
> + version ".tar.gz"))
> + (sha256
> + (base32
> + "0x7ps644yp5dka2zhb8w0ifqmw3d255jafpzfwv8xbcpgq6fmm2x"))))
> + (build-system cmake-build-system)
> + (inputs
> + `(("zlib" ,zlib)
> + ("openssl" ,openssl)))
> + (arguments
> + `(#:tests? #f)) ; no test target
There is a test script shipped with the source, can you try replacing
the "check" phase with code that executes "./run_tests"?
> + (home-page "https://github.com/twogood/unshield")
> + (synopsis "Tool to extract CAB files.")
> + (description "Extracts CAB files from InstallShield installers")
So synopses should not end with punctuations, but descriptions do. `guix
lint` should warn about this. It would be good to have a little more
information here as well.
Maybe something like this (minimal variant):
(synopsis "Extract CAB files from InstallShield installers")
(description
"@command{unshield} is a tool and library for extracting @file{.cab}
archives from InstallShield installers.")
If this software works with the "normal" .cab files commonly found in MS
Windows systems, it would be good to encapsulate that information too.
Otherwise LGTM.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Tue, 02 May 2017 10:58:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26625 <at> debbugs.gnu.org (full text, mbox):
Hello Marius,
Thank you for looking into the patch.
The tests needed some work to be able to run in guix, but they work now.
If everythin is okay, I will push it to master.
Thank you,
Manolis
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Tue, 02 May 2017 10:58:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 26625 <at> debbugs.gnu.org (full text, mbox):
From: Manolis Ragkousis <manolis837 <at> gmail.com>
* gnu/packages/compression.scm (unshield): New variable.
---
gnu/packages/compression.scm | 76 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 4793755c2..b333e6ded 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2016 Kei Kebreau <kei <at> openmailbox.org>
;;; Copyright © 2016 Marius Bakke <mbakke <at> fastmail.com>
;;; Copyright © 2017 ng0 <contact.ng0 <at> cryptolab.net>
+;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -37,6 +38,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
@@ -46,10 +48,13 @@
#:use-module (gnu packages backup)
#:use-module (gnu packages base)
#:use-module (gnu packages check)
+ #:use-module (gnu packages curl)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages valgrind)
+ #:use-module (gnu packages zip)
#:use-module (ice-9 match)
#:use-module ((srfi srfi-1) #:select (last)))
@@ -1159,6 +1164,77 @@ or junctions, and always follows hard links.")
;; expat-licenced (or ‘MIT’) code.
license:expat))))
+(define-public unshield
+ (package
+ (name "unshield")
+ (version "1.4.2")
+ (source
+ (origin (method url-fetch)
+ (uri (string-append "http://github.com/twogood/unshield/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0x7ps644yp5dka2zhb8w0ifqmw3d255jafpzfwv8xbcpgq6fmm2x"))))
+ (build-system cmake-build-system)
+ (inputs
+ `(("zlib" ,zlib)
+ ("openssl" ,openssl)
+ ;; test data that is otherwise downloaded with curl
+ ("unshield-avigomanager11b22.zip"
+ ,(origin
+ (method url-fetch)
+ (uri (string-append "https://www.dropbox.com/s/8r4b6752swe3nhu/\"
+unshield-avigomanager11b22.zip?dl=1"))
+ (sha256
+ (base32 "0fwq7lih04if68wpwpsk5wjqyvh32db76a41sq6gbx4dn1lc3ddn"))
+ (file-name "unshield-avigomanager11b22.zip")))
+ ("unshield-the-feeble-files-spanish.zip"
+ ,(origin
+ (method url-fetch)
+ (uri (string-append "https://www.dropbox.com/s/1ng0z9kfxc7eb1e/\"
+unshield-the-feeble-files-spanish.zip?dl=1"))
+ (sha256
+ (base32 "1k5cw6vnpja8yjlnhx5124xrw9i8s1l539hfdqqrqz3l5gn0bnyd"))
+ (file-name "unshield-the-feeble-files-spanish.zip")))))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (arguments
+ `(#:out-of-source? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key inputs #:allow-other-keys)
+ (for-each (lambda (i)
+ (copy-file (assoc-ref inputs i)
+ (string-append "test/v0/" i)))
+ '("unshield-avigomanager11b22.zip"
+ "unshield-the-feeble-files-spanish.zip"))
+ (substitute* (find-files "test/" "/*\\.sh")
+ ;; Tests expect the unshield binary in a specific
+ ;; location.
+ (("/var/tmp/unshield/bin/unshield")
+ (string-append (getcwd) "/src/unshield"))
+ ;; We no longer need to download the data.
+ ((".?URL=.*$") "")
+ (("curl -(|f)sSL -o test.zip .*") ""))
+ (substitute* "test/v0/avigomanager.sh"
+ (("test.zip")
+ (string-append (getcwd)
+ "/test/v0/unshield-avigomanager11b22.zip")))
+ (substitute* "test/v0/the-feeble-files-spanish.sh"
+ (("test.zip")
+ (string-append (getcwd)
+ "/test/v0/unshield-the-feeble-files-spanish.zip")))))
+ (replace 'check
+ (lambda _
+ (zero? (system* "./run-tests.sh")))))))
+ (home-page "https://github.com/twogood/unshield")
+ (synopsis "Extract CAB files from InstallShield installers")
+ (description
+ "@command{unshield} is a tool and library for extracting @file{.cab}
+ archives from InstallShield installers.")
+ (license license:expat)))
+
(define-public unrar
(package
(name "unrar")
--
2.12.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Sun, 04 Jun 2017 08:07:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 26625 <at> debbugs.gnu.org (full text, mbox):
Hey Marius,
I don't know if you have seen the updated version of the patch so I am
pinging you :)
If you don't have any objections to the updated version, I will push it
to master.
Manolis
On 05/02/2017 01:57 PM, manolis837 <at> gmail.com wrote:
> Hello Marius,
>
> Thank you for looking into the patch.
>
> The tests needed some work to be able to run in guix, but they work now.
>
> If everythin is okay, I will push it to master.
>
> Thank you,
> Manolis
>
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Sun, 04 Jun 2017 12:04:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 26625 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Manolis Ragkousis <manolis837 <at> gmail.com> writes:
> Hey Marius,
>
> I don't know if you have seen the updated version of the patch so I am
> pinging you :)
>
> If you don't have any objections to the updated version, I will push it
> to master.
Please add a #t at the end of the pre-check phase since (substitute*...)
has an unspecified return value. The rest LGTM, thanks!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26625
; Package
guix-patches
.
(Sun, 04 Jun 2017 15:12:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 26625 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Done and pushed to master.
Thank you,
Manolis
[signature.asc (application/pgp-signature, attachment)]
Added tag(s) fixed.
Request was from
Alex Kost <alezost <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 07 Jun 2017 19:53:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
26625 <at> debbugs.gnu.org and manolis837 <at> gmail.com
Request was from
Alex Kost <alezost <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 07 Jun 2017 19:53:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Jul 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 289 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.