Opened 12 years ago
Closed 12 years ago
#36096 closed defect (worksforme)
Install of junit on OS X 10.8.1 fails at patch time
Reported by: | james.mountifield@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ||
Port: | junit |
Description
System Version: OS X 10.8.1 (12B19) Kernel Version: Darwin 12.1.0
vpn17:~ mounty$ sudo port version Version: 2.1.2
vpn17:~ mounty$ xcodebuild -version Xcode 4.4.1 Build version 4F1003
When attempting to run install subversion-javahlbindings
I get an error when trying to install junit as a dependency:
vpn17:~ mounty$ sudo port MacPorts 2.1.2 Entering interactive mode... ("help" for help, "quit" to quit) [Users/mounty] > uninstall junit [Users/mounty] > clean --all junit ---> Cleaning junit [Users/mounty] > install junit ---> Computing dependencies for junit ---> Fetching archive for junit ---> Attempting to fetch junit-4.6_2.darwin_12.noarch.tbz2 from http://packages.macports.org/junit ---> Attempting to fetch junit-4.6_2.darwin_12.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/junit ---> Attempting to fetch junit-4.6_2.darwin_12.noarch.tbz2 from http://lil.fr.packages.macports.org/junit ---> Fetching distfiles for junit ---> Attempting to fetch junit4.6.zip from http://cdnetworks-us-2.dl.sourceforge.net/project/junit/junit/4.6 ---> Verifying checksum(s) for junit ---> Extracting junit ---> Applying patches to junit Error: org.macports.patch for port junit returned: command execution failed Please see the log file for port junit for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_junit/junit/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port junit failed
I have reviewed the PriblemHotlist and have confirmed that the xcode licenses is accepted for both the current user, and root. I tried with an alternative compiler as described, but the error occurs before that stage.
Having looked at the log file (attached) I see the patch command fails. Running the same patch command manually as root also fails.
Attachments (2)
Change History (6)
Changed 12 years ago by james.mountifield@…
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | james.mountifield@… removed |
---|
The interesting part is how the patch command fails:
:info:patch /usr/bin/patch: **** Can't rename file src/main/java/org/junit/matchers/package-info.java to src/main/java/org/junit/matchers/package-info.java.orig : Permission denied
That shouldn't happen. I wonder why it doesn't have permission on your system. It works fine for me.
Changed 12 years ago by james.mountifield@…
Attachment: | main.2.log added |
---|
main.log log file from jnuit work dir
comment:3 Changed 12 years ago by james.mountifield@…
Right, thanks for the tip. I've managed to get junit to install!
I did the following:
chmod +s /usr/bin/patch
- port uninstall/clean/install junit (this failed, but post patching step)
chmod -R 777 /opt/local/var/macports/build
(to fix the build permissions error introduced by the chmod above)port install junit
chmod -s /usr/bin/patch
My original task of installing the Subversion JavaHL packages can now complete, so I'm happy
[usr/bin] > install subversion-javahlbindings ---> Computing dependencies for subversion-javahlbindings ---> Fetching archive for subversion-javahlbindings ---> Attempting to fetch subversion-javahlbindings-1.7.6_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/subversion-javahlbindings ---> Attempting to fetch subversion-javahlbindings-1.7.6_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/subversion-javahlbindings ---> Attempting to fetch subversion-javahlbindings-1.7.6_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/subversion-javahlbindings ---> Fetching distfiles for subversion-javahlbindings ---> Verifying checksum(s) for subversion-javahlbindings ---> Extracting subversion-javahlbindings ---> Applying patches to subversion-javahlbindings ---> Configuring subversion-javahlbindings ---> Building subversion-javahlbindings ---> Staging subversion-javahlbindings into destroot Warning: subversion-javahlbindings installs files outside the common directory structure. ---> Installing subversion-javahlbindings @1.7.6_0 ---> Activating subversion-javahlbindings @1.7.6_0 ---> Cleaning subversion-javahlbindings ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.
comment:4 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Guess we'll call this closed then.
Log file for port junit