Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191090 - dev-ada/asis-gpl-4.1.3.2007 - Hardcoded gcc name into ASIS (Ada)
Summary: dev-ada/asis-gpl-4.1.3.2007 - Hardcoded gcc name into ASIS (Ada)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: ada team [OBSOLETE]
URL: http://packages.debian.org/sid/libasi...
Whiteboard:
Keywords:
Depends on:
Blocks: 143226
  Show dependency tree
 
Reported: 2007-09-02 20:29 UTC by Maxim Reznik
Modified: 2007-09-18 14:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gnatgcc.patch (gnatgcc.patch,468 bytes, patch)
2007-09-02 20:30 UTC, Maxim Reznik
Details | Diff
asis-gpl-4.1.3.2007-r1.ebuild (asis-gpl-4.1.3.2007-r1.ebuild,3.23 KB, text/plain)
2007-09-02 20:31 UTC, Maxim Reznik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Reznik 2007-09-02 20:29:13 UTC
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
Comment 1 Maxim Reznik 2007-09-02 20:30:24 UTC
Created attachment 129862 [details, diff]
gnatgcc.patch
Comment 2 Maxim Reznik 2007-09-02 20:31:46 UTC
Created attachment 129863 [details]
asis-gpl-4.1.3.2007-r1.ebuild

fixed ebuild
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2007-09-04 14:08:20 UTC
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
Comment 4 Maxim Reznik 2007-09-08 12:51:02 UTC
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)
Comment 5 George Shapovalov (RETIRED) gentoo-dev 2007-09-14 13:32:49 UTC
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

Comment 6 Maxim Reznik 2007-09-18 14:30:08 UTC
Thanks, asis-gpl-4.1.3.2007-r2 works fine for me.