[MacPorts] #22889: clojure-contrib with erring CLASSPATH
#22889: clojure-contrib with erring CLASSPATH ---------------------------------------+------------------------------------ Reporter: trier@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.8.1 Keywords: clojure contrib classpath | Port: clojure-contrib ---------------------------------------+------------------------------------ After installing clojure, then the latest clojure-contrib port (see Ticket: 22752 ), I start up clojure and try to load from the clojure- contrib library, but I don't get very far. {{{ Clojure 1.0.0- user=> (require 'clojure.contrib.str-utils) java.io.FileNotFoundException: Could not locate clojure/contrib/str_utils__init.class or clojure/contrib/str_utils.clj on classpath: (NO_SOURCE_FILE:0) }}} I tried setting the CLASSPATH manually to include the clojure-contrib.jar file which was installed in /opt/local/share/java/clojure/lib, but I still get the same problem. -- Ticket URL: <http://trac.macports.org/ticket/22889> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH ---------------------------------------+------------------------------------ Reporter: trier@… | Owner: ian.eure@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: clojure contrib classpath | Port: clojure-contrib ---------------------------------------+------------------------------------ Changes (by macsforever2000@…): * cc: ian.eure@… (removed) * owner: macports-tickets@… => ian.eure@… * priority: High => Normal -- Ticket URL: <http://trac.macports.org/ticket/22889#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH ---------------------------------------+------------------------------------ Reporter: trier@… | Owner: ian.eure@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: clojure contrib classpath | Port: clojure-contrib ---------------------------------------+------------------------------------ Comment(by ian.eure@…): This may be a bug in the clojure port's `clj` script; it ignores `$CLASSPATH`. The correct way to add elements to the classpath appears to be via the `.clojure` file: {{{ $ echo /opt/local/share/java/clojure/lib/clojure-contrib.jar >> .clojure $ clj Clojure 1.0.0- user=> (require 'clojure.contrib.str-utils) nil user=> }}} However, I have a patch to make it respect `$CLASSPATH`. -- Ticket URL: <http://trac.macports.org/ticket/22889#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH ---------------------------------------+------------------------------------ Reporter: trier@… | Owner: mdippery@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: clojure contrib classpath | Port: clojure ---------------------------------------+------------------------------------ Changes (by ieure@…): * owner: ian.eure@… => mdippery@… * port: clojure-contrib => clojure -- Ticket URL: <http://trac.macports.org/ticket/22889#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH ---------------------------------------+------------------------------------ Reporter: trier@… | Owner: mdippery@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: clojure contrib classpath | Port: clojure ---------------------------------------+------------------------------------ Comment(by mdippery@…): Patch looks fine for me, I'd go ahead and commit it. -- Ticket URL: <http://trac.macports.org/ticket/22889#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH ---------------------------------+------------------------------------------ Reporter: trier@… | Owner: mdippery@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: haspatch | Port: clojure clojure-contrib ---------------------------------+------------------------------------------ Changes (by jmr@…): * cc: ieure@… (added) * keywords: clojure contrib classpath => haspatch * port: clojure => clojure clojure-contrib -- Ticket URL: <https://trac.macports.org/ticket/22889#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH ---------------------------------+------------------------------------------ Reporter: trier@… | Owner: mdippery@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: haspatch | Port: clojure clojure-contrib ---------------------------------+------------------------------------------ Comment(by conradwt@…): This issue still happens on Clojure 1.2.0. For example, I'm seeing the following issues: {{{ Clojure 1.2.0 user=> (take 10 fibs) java.lang.Exception: Unable to resolve symbol: fibs in this context (NO_SOURCE_FILE:2) user=> (require 'clojure.contrib.str-utils) java.io.FileNotFoundException: Could not locate clojure/contrib/str_utils__init.class or clojure/contrib/str_utils.clj on classpath: (NO_SOURCE_FILE:0) user=> (. Math pi) java.lang.NoSuchFieldException: pi (NO_SOURCE_FILE:4) user=> (triple 10) java.lang.Exception: Unable to resolve symbol: triple in this context (NO_SOURCE_FILE:5) }}} -- Ticket URL: <https://trac.macports.org/ticket/22889#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22889: clojure-contrib with erring CLASSPATH --------------------------------------+-------------------------------- Reporter: trier@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: haspatch Port: clojure clojure-contrib | --------------------------------------+-------------------------------- Changes (by raimue@…): * owner: mdippery@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/22889#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts