Opened 13 years ago

Closed 13 years ago

#30451 closed defect (fixed)

Tomcat5 patch fails due to ".." path component

Reported by: nic@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc:
Port: tomcat5

Description

I just did:

sudo port selfupdate
sudo port clean --all tomcat5
sudo port install tomcat5

Log ends with:

:debug:extract euid/egid changed to: 503/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Fri Jul 29 16:08:14 CEST 2011
:debug:patch Executing org.macports.patch (tomcat5)
:notice:patch --->  Applying patches to tomcat5
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/java/tomcat5/files/patch-catalina.sh
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_tomcat5/tomcat5/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_tomcat5/tomcat5/work/apache-tomcat-5.5.25-src/build" && /usr/bin/patch -p0'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_tomcat5/tomcat5/work/apache-tomcat-5.5.25-src/build" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/java/tomcat5/files/patch-catalina.sh'
:info:patch /usr/bin/patch: **** rejecting file name with ".." component: ../container/catalina/src/bin/catalina.sh
:info:patch shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_java_tomcat5/tomcat5/work/apache-tomcat-5.5.25-src/build" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/java/tomcat5/files/patch-catalina.sh'" returned error 2
:error:patch Target org.macports.patch returned: shell command failed (see log for details)
:debug:patch Backtrace: shell command failed (see log for details)
    while executing
"command_exec patch "" "< '$patch'""
    (procedure "portpatch::patch_main" line 35)
    invoked from within
"$procedure $targetname"

Attachments (1)

main.log (41.2 KB) - added by nic@… 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by nic@…

Attachment: main.log added

comment:1 Changed 13 years ago by nic@…

Cc: nic@… added

Cc Me!

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Cc: nic@… removed
Summary: Tomcat5 install on Lion failsTomcat5 patch fails due to ".." path component

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

Keywords: lion removed

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed in r81450.

You still won't be able to build tomcat5 on Snow Leopard and later though; see #25740.

Note: See TracTickets for help on using tickets.