Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#32861 - [clojure] treatment of command line options in /usr/bin/clj

Attached to Project: Community Packages
Opened by Taegil Bae (esrevinu) - Monday, 26 November 2012, 08:33 GMT
Last edited by Alexander F. Rødseth (xyproto) - Wednesday, 28 November 2012, 11:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

$ clj -j "-Dclojure.compile.path=." -v
Exception in thread "main" java.io.FileNotFoundException: -v (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at clojure.lang.Compiler.loadFile(Compiler.java:6909)
at clojure.main$load_script.invoke(main.clj:283)
at clojure.main$script_opt.invoke(main.clj:343)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)

Treating command line options of /usr/bin/clj is buggy.
my fix:
--- /usr/bin/clj.orig 2012-11-26 17:26:34.848109723 +0900
+++ /usr/bin/clj 2012-11-26 17:27:21.315428859 +0900
@@ -89,8 +89,8 @@
repl=0
verbose=0

-for arg in "$@"; do
- case $arg in
+while true; do
+ case $1 in
-h|--help)
echo "$usage"; exit 1;;
-J|--java-cmd)


Additional info:
* package version(s)
1.4.0-1
* config and/or log files etc.

Steps to reproduce:
1. Enter the following command in shell
clj -j "-Dclojure.compile.path=." -v
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Wednesday, 28 November 2012, 11:44 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Monday, 26 November 2012, 20:44 GMT
Thanks for reporting, I'll look into this.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 28 November 2012, 11:44 GMT
Fixed the package, the updated version will appear in [community] shortly.

Loading...