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#68278 - [clojure] missing new file: /usr/share/clojure/libexec/exec.jar

Attached to Project: Community Packages
Opened by Jacob O'Bryant (jobryant) - Friday, 16 October 2020, 02:31 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 19 October 2020, 10:09 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

The Clojure install script (https://download.clojure.org/install/linux-install-1.10.1.708.sh, the one used in clojure-1.10.1-10) has the line:

install -Dm644 clojure-tools/exec.jar "$clojure_lib_dir/libexec/exec.jar"

However, clojure-1.10.1-10 doesn't include that file:

$ pacman -Q clojure
clojure 1.10.1-10
$ pacman -Ql clojure
clojure /etc/
clojure /etc/profile.d/
clojure /etc/profile.d/clojure.sh
clojure /usr/
clojure /usr/bin/
clojure /usr/bin/clj
clojure /usr/bin/clojure
clojure /usr/share/
clojure /usr/share/clojure/
clojure /usr/share/clojure/deps.edn
clojure /usr/share/clojure/example-deps.edn
clojure /usr/share/clojure/libexec/
clojure /usr/share/clojure/libexec/clojure-tools-1.10.1.708.jar
clojure /usr/share/man/
clojure /usr/share/man/man1/
clojure /usr/share/man/man1/clj.1.gz
clojure /usr/share/man/man1/clojure.1.gz

This breaks a recent Clojure feature that lets you execute a given function from the command line: https://clojure.org/reference/deps_and_cli#_executing_a_function

Expected behavior:

$ clojure -X clojure.core/prn :foo "bar"
{:foo bar}

Actual behavior:

$ clojure -X clojure.core/prn :foo "bar"
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate clojure/run/exec__init.class, clojure/run/exec.clj or clojure/run/exec.cljc on classpath.

Full report at:
/tmp/clojure-390313302226605082.edn
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Monday, 19 October 2020, 10:09 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Sunday, 18 October 2020, 12:25 GMT
Thanks for reporting, I'll add this file.

Loading...