[Bug 267904] Mk/Scripts/makesum.sh: Fix for distinfo files with nothing but a TIMESTAMP

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 21 Nov 2022 20:31:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267904

            Bug ID: 267904
           Summary: Mk/Scripts/makesum.sh: Fix for distinfo files with
                    nothing but a TIMESTAMP
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: tijl@FreeBSD.org
                CC: ports-bugs@FreeBSD.org

Created attachment 238230
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238230&action=edit
patch

If you run 'make makesum' in devel/gettext it produces a distinfo file with
just a timestamp line.  If you then run 'make makesum' in devel/gettext-runtime
(uses the same distinfo file) there's an obscure error.  It is caused by a grep
in makesum.sh that doesn't match anything in this case and returns 1.  This can
be ignored.  The attached patch adds '|| true' to the grep command.

-- 
You are receiving this mail because:
You are on the CC list for the bug.