Bug 295703 - math/lean4: fix build on FreeBSD 14.x (failure of ar)
Summary: math/lean4: fix build on FreeBSD 14.x (failure of ar)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-29 18:59 UTC by Chad Jacob Milios
Modified: 2026-05-30 02:33 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chad Jacob Milios 2026-05-29 18:59:08 UTC
sorry i didnt log the error (some failure of `ar`) and i'm not entirely certain why but using FreeBSD 14.4-RELEASE-p5/amd64 i was unable to build lean4-4.30.0_1 successfully until adding

BINARY_ALIAS+= ar=llvm-ar

(this resolves to /usr/bin/llvm-ar so no need to add a build dependency on ports llvm)

probably some limited range of OSVERSION for which to apply this; im not sure if llvm-xyz even still exists where GNU/GPL xyz has been removed after MIT/BSD xyz has been blessed (havent taken the plunge to 15.x+ here yet)
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2026-05-29 23:35:39 UTC
(In reply to Chad Jacob Milios from comment #0)

Thanks for your report!

I also noticed before on some other ports that ar is somehow different on 14.

I will commit the fix shortly.

Yuri
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-05-30 02:33:10 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0690cc2869fa56ae49b22a5020807459f959bc11

commit 0690cc2869fa56ae49b22a5020807459f959bc11
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-05-30 02:04:32 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-05-30 02:32:42 +0000

    math/lean4: Fix build on 14

    PR:             295703
    Reported by:    Chad Jacob Milios <milios@ccsys.com>

 math/lean4/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)