GNU bug report logs -
#63783
r-dismo bundles pre-built jars
Previous Next
Reported by: Ricardo Wurmus <rekado <at> elephly.net>
Date: Mon, 29 May 2023 12:17:01 UTC
Severity: normal
Done: Ricardo Wurmus <rekado <at> elephly.net>
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 63783 in the body.
You can then email your comments to 63783 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#63783
; Package
guix
.
(Mon, 29 May 2023 12:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 29 May 2023 12:17:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The files dismo.jar and maxent.jar in the r-dismo package don’t have any
associated source code and are not built from source.
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#63783
; Package
guix
.
(Thu, 01 Jun 2023 21:10:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 63783 <at> debbugs.gnu.org (full text, mbox):
Ricardo Wurmus <rekado <at> elephly.net> writes:
> The files dismo.jar and maxent.jar in the r-dismo package don’t have any
> associated source code and are not built from source.
The source code for maxent.jar is here:
https://github.com/mrmaxent/Maxent
Here’s a draft of a package definition:
--8<---------------cut here---------------start------------->8---
(define-public java-maxent
(package
(name "java-maxent")
(version "3.4.4")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mrmaxent/Maxent")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"12q7hhly76l77vm8w8v9icga2gn6xs0bw33a7wb7zikcmvizcyp0"))))
(build-system ant-build-system)
(arguments
(list
#:tests? #false ;there are none
#:jdk icedtea-8
#:phases
#~(modify-phases %standard-phases
(replace 'build
(lambda _
(with-directory-excursion "gnu/getopt/"
(invoke "make"))
;; See https://github.com/mrmaxent/Maxent/pull/11
(substitute* "density/Extractor.java"
(("float") "double"))
(apply invoke "javac" "-cp" (getcwd) "-g"
(find-files "density" "\\.java$"))
(apply invoke "javac" "-cp" (getcwd) "-g"
(find-files "ptolemy/plot" "\\.java$"))
(apply invoke "javac" "-cp" (getcwd) "-g"
(find-files "com" "\\.java$"))
(apply invoke "javac" "-cp" (getcwd) "-g"
(find-files "gui" "\\.java$"))
(apply invoke "jar" "cvfm" "maxent.jar"
(cons* "density/mc.mf"
"density/parameters.csv"
(append (find-files "density" "\\.class$")
(find-files "density" "\\.html$")
(find-files "gnu/getopt" ".*")
(find-files "gui/layouts" "\\.class$*")
(find-files "com/macfaq/io" "\\.class$*")
(find-files "density/tools" "\\.class$*")
(find-files "ptolemy/plot" "\\.class$*"))))))
(replace 'install
(lambda _
(install-file "maxent.jar"
(string-append #$output "/share/java/maxent/")))))))
(native-inputs
(list gnu-make))
(home-page "http://biodiversityinformatics.amnh.org/open_source/maxent")
(synopsis "Model species geographic distributions")
(description
"Maxent is a stand-alone Java application for modelling species
geographic distributions.")
(license license:expat)))
--8<---------------cut here---------------end--------------->8---
The sources in ptolemy/plot cannot be built yet, because we’re missing a
package for either https://ptolemy.berkeley.edu/ptolemyII/index.htm or
https://ptolemy.berkeley.edu/ptolemyclassic/pt0.7.1/index.htm.
We cannot use the Makefile to “make compile” or “make distribution”
because it starts by building ParamPre.java, which can only be built
when Parameters.java has been compiled. So perhaps there’s a need for
bootstrapping. In the above package definition we’re using some .java
files that have been generated through unknown means.
The very small sources for dismo.jar are actually included in the dismo
package itself, they just have unexpected names.
--
Ricardo
Reply sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
You have taken responsibility.
(Fri, 02 Jun 2023 09:44:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
bug acknowledged by developer.
(Fri, 02 Jun 2023 09:44:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 63783-done <at> debbugs.gnu.org (full text, mbox):
Fixed with commit bb27e3b8b13b4dbbb698b3ff5a4f6cf5793e9d5c.
--
Ricardo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 30 Jun 2023 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 316 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.