mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
build-system/ant: Avoid usage of (guix build syscalls).
* guix/build/ant-build-system.scm (strip-jar-timestamps): Use MKDTEMP from Guile core rather than MKDTEMP!. * guix/build/java-utils.scm (install-jar-file-with-pom): Likewise.
This commit is contained in:
parent
fa9ad4b482
commit
a6343af221
2 changed files with 2 additions and 4 deletions
|
@ -19,7 +19,6 @@
|
|||
|
||||
(define-module (guix build ant-build-system)
|
||||
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
|
||||
#:use-module (guix build syscalls)
|
||||
#:use-module (guix build utils)
|
||||
#:use-module (sxml simple)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -201,7 +200,7 @@ (define* (strip-jar-timestamps #:key outputs
|
|||
repack them. This is necessary to ensure that archives are reproducible."
|
||||
(define (repack-archive jar)
|
||||
(format #t "repacking ~a\n" jar)
|
||||
(let* ((dir (mkdtemp! "jar-contents.XXXXXX"))
|
||||
(let* ((dir (mkdtemp "jar-contents.XXXXXX"))
|
||||
(manifest (string-append dir "/META-INF/MANIFEST.MF")))
|
||||
(with-directory-excursion dir
|
||||
(invoke "jar" "xf" jar))
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
(define-module (guix build java-utils)
|
||||
#:use-module (guix build utils)
|
||||
#:use-module (guix build syscalls)
|
||||
#:use-module (guix build maven pom)
|
||||
#:use-module (guix build maven plugin)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -83,7 +82,7 @@ (define (install-jar-file-with-pom jar pom-file inputs)
|
|||
"Unpack the jar archive, add the pom file, and repack it. This is necessary
|
||||
to ensure that maven can find dependencies."
|
||||
(format #t "adding ~a to ~a\n" pom-file jar)
|
||||
(let* ((dir (mkdtemp! "jar-contents.XXXXXX"))
|
||||
(let* ((dir (mkdtemp "jar-contents.XXXXXX"))
|
||||
(manifest (string-append dir "/META-INF/MANIFEST.MF"))
|
||||
(pom (get-pom pom-file))
|
||||
(artifact (pom-artifactid pom))
|
||||
|
|
Loading…
Reference in a new issue