Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2014 20:19:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192297] New: [openldap24-server] post-patch CFLAGS injection fails because of bad sed separator
Message-ID:  <bug-192297-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: software-freebsd@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192297-13>