gnu: classpath-bootstrap: Remove call to free.
Fixes <https://bugs.gnu.org/36685>. * gnu/packages/java.scm (classpath-bootstrap)[arguments]: Add build phase "remove-call-to-free" to let us build ant-bootstrap later.
This commit is contained in:
parent
65542a8852
commit
4fb59c9e4d
|
@ -152,6 +152,17 @@ and binary format defined in The Java Virtual Machine Specification.")
|
||||||
"--disable-gjdoc")
|
"--disable-gjdoc")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
;; XXX: This introduces a memory leak as we remove a call to free up
|
||||||
|
;; memory for the file name string. This was necessary because of a
|
||||||
|
;; runtime error that would have prevented us from building
|
||||||
|
;; ant-bootstrap later. See https://issues.guix.gnu.org/issue/36685
|
||||||
|
;; for the gnarly details.
|
||||||
|
(add-after 'unpack 'remove-call-to-free
|
||||||
|
(lambda _
|
||||||
|
(substitute* "native/jni/java-io/java_io_VMFile.c"
|
||||||
|
(("result = cpio_isFileExists.*" m)
|
||||||
|
(string-append m "\n//")))
|
||||||
|
#t))
|
||||||
(add-after 'install 'install-data
|
(add-after 'install 'install-data
|
||||||
(lambda _ (invoke "make" "install-data"))))))
|
(lambda _ (invoke "make" "install-data"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Reference in New Issue