[Bug 257027] Mk/Scripts/smart_makepatch.sh: Force diff to produce the patch file instead of "Binary files ... differ" message

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 06 Jul 2021 20:21:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257027

            Bug ID: 257027
           Summary: Mk/Scripts/smart_makepatch.sh: Force diff to produce
                    the patch file instead of "Binary files ... differ"
                    message
           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: sunpoet@FreeBSD.org

Patch:
https://people.FreeBSD.org/~sunpoet/patch/Mk-Scripts-smart_makepatch.sh.txt

Force diff to produce the patch file instead of "Binary files ... differ"
message
It helps avoid generating wrong patches, e.g. patch-grpc.gemspec in r567838
[1].

from diff manpage:
    -a --text
        Treat all files as ASCII text.  Normally diff will simply print
        “Binary files ... differ” if files contain binary characters.
        Use of this option forces diff to produce a diff.

[1]
https://cgit.freebsd.org/ports/diff/net/rubygem-grpc130/files/patch-grpc.gemspec?id=073c1c710a0c7254820adab9920c1903ace83fae

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