aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-07-11 14:07:00 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-07-11 14:07:00 +0300
commit7760d28920a920791645c4485f1345af45ee7787 (patch)
tree99896e22ded88d0dcb97f41619f82b8d2f491f25
parent24edccba3d57bfd9b542a0eb9d0d945b5ccd93a4 (diff)
downloadguix-7760d28920a920791645c4485f1345af45ee7787.tar.gz
guix-7760d28920a920791645c4485f1345af45ee7787.zip
gnu: java-xz: Mark source as zipbomb.
* gnu/packages/java-compression.scm (java-xz)[source]: Download source as zipbomb. [argments]: Remove custom 'chdir phase.
-rw-r--r--gnu/packages/java-compression.scm8
1 files changed, 1 insertions, 7 deletions
diff --git a/gnu/packages/java-compression.scm b/gnu/packages/java-compression.scm
index 5f653bcc94..19b11954c1 100644
--- a/gnu/packages/java-compression.scm
+++ b/gnu/packages/java-compression.scm
@@ -291,7 +291,7 @@ It can be used as a replacement for the Apache @code{CBZip2InputStream} /
(name "java-xz")
(version "1.6")
(source (origin
- (method url-fetch)
+ (method url-fetch/zipbomb)
(uri (string-append "https://tukaani.org/xz/xz-java-" version ".zip"))
(sha256
(base32
@@ -301,12 +301,6 @@ It can be used as a replacement for the Apache @code{CBZip2InputStream} /
`(#:tests? #f; no tests
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'chdir
- (lambda _
- ;; Our build system enters the first directory in the archive, but
- ;; the package is not contained in a subdirectory
- (chdir "..")
- #t))
(add-before 'install 'generate-pom
(lambda _
(copy-file "maven/pom_template.xml" "pom.xml")