[Bug 233460] net/miniupnpc: use textproc/gsed for install's GNU-isms

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 24 02:27:19 UTC 2018


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

            Bug ID: 233460
           Summary: net/miniupnpc: use textproc/gsed for install's
                    GNU-isms
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: kevans at freebsd.org
                CC: dinoex at FreeBSD.org, johans at FreeBSD.org
                CC: dinoex at FreeBSD.org, johans at FreeBSD.org

Created attachment 199505
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199505&action=edit
svn(1) diff against net/miniupnpc

Hi,

The install bits of this port attempt this: sed
's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\117/' 

There are two problems of attempting to do this with our sed:

1.) \s is a GNU extension; our sed will pass this through as an escaped \s and
regex(3) will interpret it as an escaped ordinary 's'.

2.) \117 is likely expecting character represented by \117 to be inserted, but
this will not behave accordingly

Fix this by plopping gsed in place of sed for this port. #1 will be explicitly
disallowed in a future version of regex(3), making this ideal for now.

Thanks,

Kyle Evans

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


More information about the freebsd-ports-bugs mailing list