Opened 12 years ago

Closed 12 years ago

#36787 closed defect (fixed)

commons-fileupload losing JAVA_HOME on Mountain Lion

Reported by: vikingjs@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: commons-fileupload

Description

Java moved in Mountain Lion; this appears to be the same trouble as in #35786 and #35811 .

The interesting part of the log file:

:info:build Error: JAVA_HOME is not defined correctly.
:info:build   We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-fileupload/commons-fileupload/work/commons-fileupload-1.2.2-src" && ant dist -Dfinal.name=commons-fileupload -Dnoget=true

Attachments (1)

main.log (6.7 KB) - added by vikingjs@… 12 years ago.
log file of failed upgrade

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by vikingjs@…

Attachment: main.log added

log file of failed upgrade

comment:1 Changed 12 years ago by vikingjs@…

I apologize for not setting the port in the ticket; hopefully the right people will see it.

Changing

build.env                        CLASSPATH=${prefix}/share/java/servlet23-api.jar:${prefix}/share/java/junit.jar \
                                        HOME=${workpath}

to

build.env-append                        CLASSPATH=${prefix}/share/java/servlet23-api.jar:${prefix}/share/java/junit.jar \
                                        HOME=${workpath}

fixed the problem. If I have time this evening I'll go back and read over the instructions for how to create a proper patch file.

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Port: commons-fileupload added

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.