[Bug 192297] New: [openldap24-server] post-patch CFLAGS injection fails because of bad sed separator

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 31 20:19:40 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192297

            Bug ID: 192297
           Summary: [openldap24-server] post-patch CFLAGS injection fails
                    because of bad sed separator
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: software-freebsd at interfasys.ch

I guess it depends on what you're using in your CFLAGS, but we do have commas
in ours which make this Makefile command fail
@${REINPLACE_CMD} -e 's,^OPT =.*,OPT = ${CFLAGS},g' 
with
sed: 1: "s,^OPT =.*,OPT = -O2 -p ...": bad flag in substitute command: '-'

using slashes worked for me
@${REINPLACE_CMD} -e 's/^OPT =.*/OPT = ${CFLAGS}/g' 

YMMV

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list