Created attachment 245404 [details] Fix for CC/GNATMAKE When setting USES=ada:12 CC gets set to gnatmake. This is wrong as it breaks build systems where CC needs to build single C objects. E.g.: https://poudriere.herrhotzenplotz.de/data/release-latest-main/2023-09-30_20h57m21s/logs/errors/ghdl-3.0.0_2.log This patch instead sets CC to gcc and GNATMAKE to gnatmake. I needed to do this in order to get cad/ghdl to build with lang/gnat12. I have not tested this with any other ports but I assume that this was a hack for some other port. Therefore ports that depend on this hack may need to be patched separately, the current USES ada.mk is simply wrong. I will cross-link the bugs related to this later as I submit them. NOTE: I had to file the bug in "Individual Ports" because the submission form doesn't allow me to file bugs for the ports framework. Who knows...
See follow up here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274239
I don't know much about Ada, so I am a wrong person to be assigned.
Could we get an exp-run for all consumers of USES=ada for this one? (thanks to meena for the suggestion) I do not know enough about ada to judge this patch, but it looks reasonable and if it doesn't break anything, it's probably fine.
There are less than 10 users of USES=ada, not enough for an exp-run. You can test yourself.
Okay. Will commit if all ports with USES=ada build succesfully.
I think the test needs to be done with "USES=ada:12". I am currently waiting on poudriere-testport to complete against devel/matreshka and devel/alire, with the attached patch.
devel/matreshka: 12.4, 13.2, and main on amd64 poudriere-testport OK devel/alire : 12.4, 13.2, and main on amd64 poudriere-testport OK
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5b5f129463d4d119478e0ff5ca613b7d29edfe53 commit 5b5f129463d4d119478e0ff5ca613b7d29edfe53 Author: Nico Sonack <nsonack@herrhotzenplotz.de> AuthorDate: 2023-10-01 17:01:26 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-19 07:07:28 +0000 Mk/Uses/ada.mk: Don't set CC to gnatmake but to gcc Setting CC to gnatmake breaks compiling simple C objects. Instead set it to the correct compiler frontend and set GNATMAKE to gnatmake. Signed-off-by: Nico Sonack <nsonack@herrhotzenplotz.de> PR: 274238 Mk/Uses/ada.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thank you for your contribution.