[MacPorts] #29871: ld64: revise patches to not reference ..
#29871: ld64: revise patches to not reference .. -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: mfeiri@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ld64 -------------------------------------+-------------------------------------- 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 ld64 results in the following: {{{ DEBUG: Executing org.macports.patch (ld64) ---> Applying patches to ld64 ---> Applying /Users/rschmidt/macports/dports/devel/ld64/files/patch- lldb_private-libunwind.diff DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_ld64/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_devel_ld64/work/ld64-123.2" && /usr/bin/patch -p0' /usr/bin/patch: **** rejecting file name with ".." component: ../libunwind/include/libunwind.h shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_ld64/work/ld64-123.2" && /usr/bin/patch -p0 < '/Users/rschmidt/macports/dports/devel/ld64/files /patch-lldb_private-libunwind.diff'" returned error 2 }}} See #29813 for an example of how I fixed this same problem for the nvi port. -- Ticket URL: <https://trac.macports.org/ticket/29871> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29871: ld64: revise patches to not reference .. --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: mfeiri@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: ld64 | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: r80306 -- Ticket URL: <https://trac.macports.org/ticket/29871#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts