These are chat archives for fiji/fiji

2nd
Mar 2017
Curtis Rueden
@ctrueden
Mar 02 2017 22:32
Run all of Fiji from the CLI without installing anything except Maven and jrun!
jrun sc.fiji:fiji:LATEST
Or run just core ImageJ2:
jrun net.imagej:imagej
All you need is $HOME/.jrunrc with the following contents:
[repositories]
imagej.public = https://maven.imagej.net/content/groups/public
Philipp Hanslovsky
@hanslovsky
Mar 02 2017 22:43
Fails for me with a mktemp error:
./jrun net.imagej:imagej                                                                                                                                                                                                                                                          (⚓ ) 25s master :: 12m :: ⬡
mktemp: too few X's in template ‘jrun’
./jrun: line 161: /pom.xml: Permission denied
./jrun: line 175: /build.log: Permission denied
Failed to bootstrap the artifact. Here is the log:
cat: /build.log: No such file or directory
$ mktemp --version 
mktemp (GNU coreutils) 8.26
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering and Eric Blake.
I'll try to figure it out

This way it works:

diff --git a/jrun b/jrun
index 13cda55..dd9efa7 100755
--- a/jrun
+++ b/jrun
@@ -145,7 +145,7 @@ test -n "$c" && dep="$dep<classifier>$c</classifier>"

 # Synthesize a dummy Maven project.

-tmpDir=$(mktemp -d -t jrun)
+tmpDir=$(mktemp -d)

 for repository in "${repositories[@]}"
 do

I was able to run the SciJava REPL to confirm.

This works as well: tmpDir=$(mktemp -d -t jrunXXX)
Philipp Hanslovsky
@hanslovsky
Mar 02 2017 23:07
@ctrueden What version of tar do you use? My tar cannot extract .jar files
$ tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Philipp Hanslovsky
@hanslovsky
Mar 02 2017 23:42
I submitted pull requests with fixes that work for me. Could be a mac < - > linux issue, so needs to be tested before a merge