Writing ebuild for #143226 I encountered an error in dev-ada/asis-gpl-4.1.3.2007. Something like: "gcc: Ada language not installed" The reason is hardcoded gcc name into asis sources. I found gnatgcc.patch in debian. It replace gcc with gnatgcc. It helps. Here is patch and fixed ebuild. Please assign this bug to ada@gentoo.org
Created attachment 129862 [details, diff] gnatgcc.patch
Created attachment 129863 [details] asis-gpl-4.1.3.2007-r1.ebuild fixed ebuild
Ah, sorry, this bug did not register with me when I waslooking at #143226. Indeed, this is the cause of that failure in examples. Fixed now (actually I did sed instead of patch and changed gcc -> gnatgcc at two more places, where it was not part of a comment or a string). George
George, could you please look at gnat ebuilds also, because there are similar errors in gnatpp & gnatstub: >gnatstub gtk-tree_model-asis_models.ads gcc: language ada not recognized gcc: language ada not recognized gcc: gtk-tree_model-asis_models.ads: linker input file unused because linking not done gnatpp -r gtk-tree_model-asis_models.ads gcc: language ada not recognized gcc: language ada not recognized gcc: /home/max/ada/asis/gtk-tree_model-asis_models.ads: linker input file unused because linking not done gnatpp: unexpected bug when opening a context(/home/max/ada/asis/gtk-tree_model-asis_models.ads) These are asis-based tools IMHO. (Content of gtk-tree_model-asis_models.ads doesn't matter)
Sorry, looks like I missed tools/gnatmetric/metrics-compute.adb last time, although it does not seem that much big of a deal by reading the source. Anyway, please try the asis-gpl-4.1.3.2007-r1.ebuild, I just added it to the tree. Don't forget to source /etc/profile after emerging! Also, I did not change the asis/a4g-contt.adb: if Dash_Idx > 0 then Contexts.Table (Cont).GCC := Locate_Exec_On_Path (Tool_Name (Tool_Name'First .. Dash_Idx) & "gcc"); end if; This looks like not a mere use of gcc as gnatgcc but rather looking for some xxx-gcc pattern. gnatstub to generate bodies fine here without this change. George
Thanks, asis-gpl-4.1.3.2007-r2 works fine for me.