Opened 13 years ago
Closed 13 years ago
#29813 closed defect (fixed)
nvi: revise patches to not reference ..
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | tobypeterson |
---|---|---|---|
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 (1)
Change History (2)
Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | nvi-patches.diff added |
---|
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | vincent@… added |
---|---|
Keywords: | haspatch added |
Resolution: | → fixed |
Status: | new → closed |
r83610 (maintainer timeout)
Note: See
TracTickets for help on using
tickets.
proposed patch