[MacPorts] #18740: subversion-javahlbindings failing with jUnit/hamcrest
#18740: subversion-javahlbindings failing with jUnit/hamcrest ------------------------------+--------------------------------------------- Reporter: shoanm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: subversion-javahlbindings ------------------------------+--------------------------------------------- I am getting the following error: {{{ DEBUG: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_junit/work/junit4.5 && javac -d classes -cp /opt/local/share/java/hamcrest-core.jar -sourcepath src src/junit/framework/JUnit4TestAdapter.java src/org/junit/internal/AssumptionViolatedException.java:3: cannot access org.hamcrest.Description bad class file: /opt/local/share/java/hamcrest- core.jar(org/hamcrest/Description.class) class file has wrong version 50.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.hamcrest.Description; ^ 1 error Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_junit/work/junit4.5 && javac -d classes -cp /opt/local/share/java/hamcrest-core.jar -sourcepath src src/junit/framework/JUnit4TestAdapter.java" returned error 1 Command output: src/org/junit/internal/AssumptionViolatedException.java:3: cannot access org.hamcrest.Description bad class file: /opt/local/share/java/hamcrest- core.jar(org/hamcrest/Description.class) class file has wrong version 50.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.hamcrest.Description; ^ 1 error Warning: the following items did not execute (for junit): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: The following dependencies failed to build: junit Error: Status 1 encountered during processing. }}} I have also attempted to reinstall hamcrest-core, but it didn't help resolve the problem. I also attempted uninstalling and reinstalling junit. It didn't help. Any advice? Thanks in advance. Peace, Shoan. -- Ticket URL: <http://trac.macports.org/ticket/18740> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: subversion-javahlbindings failing with jUnit/hamcrest ------------------------------+--------------------------------------------- Reporter: shoanm@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: subversion-javahlbindings ------------------------------+--------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => dluke@… -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) ------------------------------+--------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: subversion-javahlbindings ------------------------------+--------------------------------------------- Changes (by dluke@…): * owner: dluke@… => nox@… Comment: This appears to be a junit build problem, so I'm reassigning the ticket to the junit maintainer. One thing I would try would be to remove both hamcrest and junit and then just try to install subversion-javahlbindings. Make sure to do something like: {{{ port -f uninstall junit hamcrest port clean --all junit hamcrest }}} to make sure you clean out archives if you have archive mode turned on. -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) ------------------------------+--------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: subversion-javahlbindings ------------------------------+--------------------------------------------- Comment(by shoanm@…): Replying to [comment:2 dluke@…]:
Make sure to do something like:
{{{ port -f uninstall junit hamcrest port clean --all junit hamcrest }}}
I get the same error. -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) ------------------------------+--------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: junit ------------------------------+--------------------------------------------- Changes (by dluke@…): * port: subversion-javahlbindings => junit -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) ------------------------------+--------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: junit ------------------------------+--------------------------------------------- Comment(by nox@…): Please try again with junit 4.6. -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) -------------------------------+-------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: junit | -------------------------------+-------------------------------------------- Changes (by nox@…): * status: new => closed * resolution: => fixed Comment: I'll take this silence for a "yes, it works now". -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) -----------------------------+---------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Component: ports Version: 1.7.0 | Resolution: fixed Keywords: | Port: junit -----------------------------+---------------------------------------------- Comment(by vulcan_@…): sorry, doing port upgrade junit gives me this today --- /opt/local root# port upgrade junit ---> Building junit Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_junit/work/junit4.6 && javac -d classes -cp /opt/local/share/java/hamcrest-core.jar -sourcepath src src/junit/framework/JUnit4TestAdapter.java" returned error 1 Command output: src/org/junit/internal/AssumptionViolatedException.java:3: cannot access org.hamcrest.Description bad class file: /opt/local/share/java/hamcrest- core.jar(org/hamcrest/Description.class) class file has wrong version 50.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.hamcrest.Description; ^ 1 error Error: Unable to upgrade port: 1 --- I am on Mac OS X 10.4.11 with port version: 1.710 this error comes up after -d sync and selfupdate so i have the latest dist packages -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) -----------------------------+---------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Component: ports Version: 1.7.0 | Resolution: fixed Keywords: | Port: junit -----------------------------+---------------------------------------------- Comment(by vulcan_@…): Replying to [comment:6 nox@…]:
I'll take this silence for a "yes, it works now".
hope this get signalled somehow .. it is not fixed yet -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) -------------------------------+-------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: junit | -------------------------------+-------------------------------------------- Comment(by nox@…): It is fixed. You need to upgrade hamcrest-core before. I don't know why port haven't upgraded it itself. Please check that `port installed hamcrest-core` returns 1.1_2. If hamcrest-core is not outdated, reinstall it and try again to rebuild junit. -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18740: junit build failure (was subversion-javahlbindings failing with jUnit/hamcrest) -------------------------------+-------------------------------------------- Reporter: shoanm@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: junit | -------------------------------+-------------------------------------------- Comment(by craig.cottingham@…): Either this is not fixed, or instructions given above are incomplete. Mac OS X 10.4.11, Java 1.6.0-dp-b88-34. {{{ craigc@tabitha:~$ sudo port clean --all junit hamcrest-core subversion- javahlbindings ---> Cleaning junit ---> Cleaning hamcrest-core ---> Cleaning subversion-javahlbindings craigc@tabitha:~$ sudo port install subversion-javahlbindings ---> Fetching hamcrest-core ---> Attempting to fetch hamcrest-1.1.tgz from http://hamcrest.googlecode.com/files/ ---> Verifying checksum(s) for hamcrest-core ---> Extracting hamcrest-core ---> Configuring hamcrest-core ---> Building hamcrest-core ---> Staging hamcrest-core into destroot ---> Installing hamcrest-core @1.1_2 ---> Activating hamcrest-core @1.1_2 ---> Cleaning hamcrest-core ---> Fetching junit ---> Attempting to fetch junit4.6.zip from http://voxel.dl.sourceforge.net/junit ---> Verifying checksum(s) for junit ---> Extracting junit ---> Configuring junit ---> Building junit Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_junit/work/junit4.6 && javac -d classes -cp /opt/local/share/java/hamcrest-core.jar -sourcepath src src/junit/framework/JUnit4TestAdapter.java" returned error 1 Command output: src/org/junit/internal/AssumptionViolatedException.java:3: cannot access org.hamcrest.Description bad class file: /opt/local/share/java/hamcrest- core.jar(org/hamcrest/Description.class) class file has wrong version 50.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import org.hamcrest.Description; ^ 1 error Error: The following dependencies failed to build: junit Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/18740#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts