Opened 10 years ago

Closed 10 years ago

#29813 closed defect (fixed)

nvi: revise patches to not reference ..

Reported by: ryandesign (Ryan Schmidt) Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: vincent@…
Port: nvi


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 (1)

nvi-patches.diff (2.5 KB) - added by ryandesign (Ryan Schmidt) 10 years ago.
proposed patch

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by ryandesign (Ryan Schmidt)

Attachment: nvi-patches.diff added

proposed patch

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

Cc: vincent@… added
Keywords: haspatch added
Resolution: fixed
Status: newclosed

r83610 (maintainer timeout)

Note: See TracTickets for help on using tickets.