[MacPorts] #36096: Install of junit on OS X 10.8.1 fails at patch time
#36096: Install of junit on OS X 10.8.1 fails at patch time -----------------------------------------+---------------------------------- Reporter: james.mountifield@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: junit -----------------------------------------+---------------------------------- {{{ 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. -- Ticket URL: <https://trac.macports.org/ticket/36096> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36096: Install of junit on OS X 10.8.1 fails at patch time ----------------------------------+-------------------------------- Reporter: james.mountifield@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: junit | ----------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: james.mountifield@… (removed) Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/36096#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36096: Install of junit on OS X 10.8.1 fails at patch time ----------------------------------+-------------------------------- Reporter: james.mountifield@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: junit | ----------------------------------+-------------------------------- Comment (by james.mountifield@…): Right, thanks for the tip. I've managed to get junit to install! I did the following: 1. `chmod +s /usr/bin/patch` 2. port uninstall/clean/install junit (this failed, but post patching step) 3. `chmod -R 777 /opt/local/var/macports/build` (to fix the build permissions error introduced by the chmod above) 4. `port install junit` 5. `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. }}} -- Ticket URL: <https://trac.macports.org/ticket/36096#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36096: Install of junit on OS X 10.8.1 fails at patch time ----------------------------------+-------------------------------- Reporter: james.mountifield@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: worksforme | Keywords: Port: junit | ----------------------------------+-------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme Comment: Guess we'll call this closed then. -- Ticket URL: <https://trac.macports.org/ticket/36096#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts