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
I'm not sure this is a ports issues, nor that using slashes is inherently better than using commas (I'd pick pipes "|" myself). Let the maintainer decide...
This also happens when just adding "USE_GCC=yes" to build with gcc47 (seen when trying to build openldap24-client).
Ping? No activity in over a year, and the bug still occurs with USE_GCC=yes.
This needs a patch to progress. Justin (jhibbits) is willing to commit a fix for this now over 1 year old issue. I've offered to review and approve it given successful QA results. Xin, it would be great if you could respond/reply to this issue with alternate instructions before the above occurs, otherwise Justin is happy to take care of it. Last call prior to maintainer-timeout
Sorry for the delay, I've committed John's proposed change.
A commit references this bug: Author: delphij Date: Wed Oct 14 01:07:03 UTC 2015 New revision: 399232 URL: https://svnweb.freebsd.org/changeset/ports/399232 Log: Use pipe sign (|) instead of comma (,) when doing sed. This fixes a problem when the variable portion of sed command contains comma, for instance, when USE_GCC=4.9. PR: 192297 Submitted by: marino Changes: head/net/openldap24-server/Makefile
Thanks Xin, does this also need to be MFC'd to quarterlies?
Thanks, Xin! I had a patch all set, then saw your commit.
(In reply to Kubilay Kocak from comment #7) Done.
A commit references this bug: Author: delphij Date: Wed Oct 14 23:21:24 UTC 2015 New revision: 399301 URL: https://svnweb.freebsd.org/changeset/ports/399301 Log: MFH: r399232 Use pipe sign (|) instead of comma (,) when doing sed. This fixes a problem when the variable portion of sed command contains comma, for instance, when USE_GCC=4.9. PR: 192297 Submitted by: marino Requested by: koobs Approved by: ports-secteam Changes: _U branches/2015Q4/ branches/2015Q4/net/openldap24-server/Makefile