Bug 267904

Summary: Mk/Scripts/makesum.sh: Fix for distinfo files with nothing but a TIMESTAMP
Product: Ports & Packages Reporter: Tijl Coosemans <tijl>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me CC: ports-bugs
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Tijl Coosemans freebsd_committer freebsd_triage 2022-11-21 20:31:23 UTC
Created attachment 238230 [details]
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-12-25 22:15:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a51f972d1a9db6aa1bb93873b74674e4323049d

commit 4a51f972d1a9db6aa1bb93873b74674e4323049d
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2022-11-21 17:46:52 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2022-12-25 22:05:55 +0000

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

    PR:             267904

 Mk/Scripts/makesum.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)