[MacPorts] #29813: nvi: revise patches to not reference ..
MacPorts
noreply at macports.org
Mon Jun 13 02:09:17 PDT 2011
#29813: nvi: revise patches to not reference ..
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: toby@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | 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.
--
Ticket URL: <https://trac.macports.org/ticket/29813>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list