[Bug 267777] devel/cdialog: Makefile corrupts examples

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 15 Nov 2022 09:03:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267777

            Bug ID: 267777
           Summary: devel/cdialog: Makefile corrupts examples
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: kidon@posteo.de
                CC: jcpierri@gmail.com
             Flags: maintainer-feedback?(jcpierri@gmail.com)
                CC: jcpierri@gmail.com

The Makefile of the port has the following pre-patch macro for the samples
directory:

pre-patch-EXAMPLES-on:
        @${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i ""
"s|dialog|cdialog|g" {} \;

This leads to corrupted sample configurations (*.rc). The macro should be
changed to:

pre-patch-EXAMPLES-on:
        @${FIND} ${WRKSRC}/samples/ -type f -not -name "*.rc" -exec
${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;

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