Ticket #29813 (closed defect: fixed)
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
Change History
Note: See
TracTickets for help on using
tickets.


proposed patch