[MacPorts] #65667: Unable to use backslash in configure flags

MacPorts noreply at macports.org
Sun Aug 14 10:42:15 UTC 2022


#65667: Unable to use backslash in configure flags
------------------------+--------------------
 Reporter:  mohd-akram  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.7.2
 Keywords:              |       Port:
------------------------+--------------------
 I'm trying to build this port (attached), and need to escape the < and >
 characters in a flag, but MacPorts ends up wrapping the entire thing in
 braces.


 {{{
 configure.cppflags-append  -DDB_H_ABS_PATH=\\<db.h\\>
 }}}

 Result:


 {{{
 CFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include {-DDB_H_ABS_PATH=\<db.h\>}
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65667>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list