Opened 13 years ago

Closed 12 years ago

#30156 closed defect (fixed)

rtf2latex2e fails during patching due to ".." path component

Reported by: ak@… Owned by: jmpp@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: terry@…, mark@…, dgh@…, haveaniceday87@…, jmsaxer@…, ryandesign (Ryan Carsten Schmidt)
Port: rtf2latex2e

Description

Hello, I have a problem with installing rtf2latex2e which crashes during the patching stage

:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rtf2latex2e/work/rtf2latex2eUnix-1.0fc1/Unix" && /usr/bin/patch -p0'
:info:patch patching file Makefile.in
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/tex/rtf2latex2e/files/patch-rtf2LaTeX2e.h.diff
: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_ports_tex_rtf2latex2e/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.5'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rtf2latex2e/work/rtf2latex2eUnix-1.0fc1/Unix" && /usr/bin/patch -p0'
:info:patch /usr/bin/patch: **** rejecting file name with ".." component: ../src/include/rtf2LaTeX2e.h
:info:patch shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rtf2latex2e/work/rtf2latex2eUnix-1.0fc1/Unix" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/tex/rtf2latex2e/files/patch-rtf2LaTeX2e.h.diff'" 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'""
    ("default" arm line 1)
    invoked from within
"switch -- [file extension $patch] {
            .Z -
            .gz {command_exec patch "$gzcat \"$patch\" | (" ")"}
            .bz2 {command_exec p..."
    (procedure "portpatch::patch_main" line 31)
    invoked from within
"$procedure $targetname"
:info:patch Warning: the following items did not execute (for rtf2latex2e): org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:patch Log for rtf2latex2e is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_rtf2latex2e/main.log

Any idea how to fix that?

Thanks, Adam

Attachments (3)

main.log (47.7 KB) - added by ak@… 13 years ago.
rtf2latex2e main.log
Portfile.rtf2latex2e.diff (2.1 KB) - added by macports@… 13 years ago.
Portfile.rtf2latex2e.2.diff (2.1 KB) - added by macports@… 13 years ago.

Download all attachments as: .zip

Change History (14)

Changed 13 years ago by ak@…

Attachment: main.log added

rtf2latex2e main.log

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jmpp@…

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

Summary: rtf2latex2e fails during patching on Leopard 10.5rtf2latex2e fails during patching due to ".." path component

The patches will need to be changed to not use .. in the file paths.

Changed 13 years ago by macports@…

Attachment: Portfile.rtf2latex2e.diff added

comment:3 Changed 13 years ago by macports@…

The rtf2latex2e has been updated to 2-0-1. I've updated the Portfile to work with that version.

comment:4 in reply to:  3 ; Changed 13 years ago by macports@…

Replying to macports@…:

The rtf2latex2e has been updated to 2-0-1. I've updated the Portfile to work with that version.

Oops, turns out it install, but then rtf2latex2e doesn't work. Working on it.

Changed 13 years ago by macports@…

Attachment: Portfile.rtf2latex2e.2.diff added

comment:5 in reply to:  4 ; Changed 13 years ago by macports@…

Replying to macports@…:

Replying to macports@…:

The rtf2latex2e has been updated to 2-0-1. I've updated the Portfile to work with that version.

Oops, turns out it install, but then rtf2latex2e doesn't work. Working on it.

Fixed.

comment:6 Changed 12 years ago by mark@…

Cc: mark@… added

Cc Me!

comment:7 Changed 12 years ago by mark@…

When will this appear in an official port distribution?

comment:8 in reply to:  5 ; Changed 12 years ago by jmsaxer@…

Does not seem to be fixed. I get the same error as mark. Any news on this?

comment:9 in reply to:  8 Changed 12 years ago by haveaniceday87@…

Replying to jmsaxer@…:

Does not seem to be fixed. I get the same error as mark. Any news on this?

Same here

comment:10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dgh@… haveaniceday87@… jmsaxer@… added
Keywords: haspatch added

Has duplicate #34173.

comment:11 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.