New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #29813 (closed defect: fixed)

Opened 2 years ago

Last modified 21 months ago

nvi: revise patches to not reference ..

Reported by: ryandesign@… Owned by: toby@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: vincent@…
Port: nvi

Description

jeremyhu has alerted me to the fact that some versions of /usr/bin/patch on Mac OS X have a "security enhancement" that makes them refuse to patch files higher up than the current directory. On such systems, trying to install nvi results in the following:

--->  Applying patches to nvi
--->  Applying /Users/rschmidt/macports/dports/editors/nvi/files/patch-common__db.h
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_rschmidt_macports_dports_editors_nvi/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_editors_nvi/work/nvi-1.81.6/dist" && /usr/bin/patch -p0'
/usr/bin/patch: **** rejecting file name with ".." component: ../common/db.h
shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_editors_nvi/work/nvi-1.81.6/dist" && /usr/bin/patch -p0 < '/Users/rschmidt/macports/dports/editors/nvi/files/patch-common__db.h'" returned error 2

The attached patch fixes this.

Attachments

nvi-patches.diff (2.5 KB) - added by ryandesign@… 2 years ago.
proposed patch

Change History

Changed 2 years ago by ryandesign@…

proposed patch

comment:1 Changed 21 months ago by ryandesign@…

  • Keywords haspatch added
  • Status changed from new to closed
  • Resolution set to fixed
  • Cc vincent@… added

r83610 (maintainer timeout)

Note: See TracTickets for help on using tickets.