git: c9bc2a71a212 - main - sysutils/heirloom: Fix with LLVM 21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Apr 2026 12:23:53 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c9bc2a71a2129e4c222c8043c7261635b83b08ba
commit c9bc2a71a2129e4c222c8043c7261635b83b08ba
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2026-04-29 12:22:12 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-04-29 12:23:38 +0000
sysutils/heirloom: Fix with LLVM 21
FreeBSD 16-CURRENT recently imported LLVM 21. Seemingly ambiguous
code as in the patch is now flagged as an error.
MFH: 2026Q2
---
sysutils/heirloom/files/patch-id_id.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sysutils/heirloom/files/patch-id_id.c b/sysutils/heirloom/files/patch-id_id.c
new file mode 100644
index 000000000000..bd05fe97747e
--- /dev/null
+++ b/sysutils/heirloom/files/patch-id_id.c
@@ -0,0 +1,11 @@
+--- id/id.c.orig 2005-05-29 05:55:41.000000000 -0700
++++ id/id.c 2026-04-29 05:10:14.534846000 -0700
+@@ -265,7 +265,7 @@
+ me = 0;
+ uid = euid = pwd->pw_uid;
+ gid = egid = pwd->pw_gid;
+- } else if (argc < optind > 1) {
++ } else if (argc < optind && optind > 1) {
+ usage();
+ } else
+ #endif /* SUS */