Bug 267904 - Mk/Scripts/makesum.sh: Fix for distinfo files with nothing but a TIMESTAMP
Summary: Mk/Scripts/makesum.sh: Fix for distinfo files with nothing but a TIMESTAMP
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2022-11-21 20:31 UTC by Tijl Coosemans
Modified: 2022-12-25 22:18 UTC (History)
1 user (show)

See Also:


Attachments
patch (924 bytes, patch)
2022-11-21 20:31 UTC, Tijl Coosemans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)