Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75803 - New ebuild for dev-ada/gps v. 2.1.0 (from source, not -bin)
Summary: New ebuild for dev-ada/gps v. 2.1.0 (from source, not -bin)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 251875
  Show dependency tree
 
Reported: 2004-12-27 08:33 UTC by Bobby D. Bryant
Modified: 2017-11-21 20:48 UTC (History)
5 users (show)

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


Attachments
/usr/portage/dev-ada/gps/gps-2.1.0.ebuild (gps-2.1.0.ebuild,4.20 KB, text/plain)
2004-12-27 08:35 UTC, Bobby D. Bryant
Details
GPS snapshots ebuild (gps-cvs-bin-4.2.0.ebuild,1.21 KB, text/plain)
2007-09-24 22:18 UTC, gentoo
Details
/usr/portage/dev-ada/gps/gps-4.0.2.ebuild (gps-4.0.2.ebuild,2.86 KB, text/plain)
2007-09-27 17:24 UTC, gentoo
Details
/usr/portage/dev-ada/gps/files/gps-4.0.2-gtkada.patch (gps-4.0.2-gtkada.patch,4.97 KB, patch)
2007-09-27 17:24 UTC, gentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bobby D. Bryant 2004-12-27 08:33:59 UTC
Here's a draft gps-2.1.0.ebuild. (Notice that it builds from sources, as opposed to the binary gps-bin-2.1.0 package submitted as bug #75631.)

It depends on the new gtkada-2.4.0.ebuild, available as an attachment to bug # 75630.

I also show a dependency on gnat-3.41, since that is the only compiler I can test it with.  In principle that dependency can be removed after testing.  Meanwhile, since gnat-3.41 is in ~x86, I made this gps ebuild ~x86 as well.

There is a TODO list in the .ebuild, but meanwhile it installs and seems to run OK as it is, modulo the debugger ptys problem.  (Not a gentoo-specific problem: see http://lists.adacore.com/pipermail/gps-users/2004-December/000314.html.)
Comment 1 Bobby D. Bryant 2004-12-27 08:35:35 UTC
Created attachment 46971 [details]
/usr/portage/dev-ada/gps/gps-2.1.0.ebuild
Comment 2 Bobby D. Bryant 2004-12-28 07:02:06 UTC
I added the IUSE="ptys" so that GPS would build without ptys unless specifically requested, but when invoking the debugger from within GPS you still get the complaint mentioned earlier.

However, a non-Gentoo user on the gps-users mailing list reports that compiling after configuring --without-ptys does not fix the problem for him, either, so I think that can be considered an application bug rather than an ebuild bug.

See http://lists.adacore.com/pipermail/gps-users/2004-December/000325.html
Comment 3 Hal Engel 2006-08-23 15:40:46 UTC
GPS is now up to version 4.1.  Would it be possible to get a more recent version in portage?  Version 3.1 is now GPL (has been for some time).  Source rpms can be found here:

http://sourceforge.net/project/showfiles.php?group_id=12974
Comment 4 gentoo 2007-09-24 22:18:44 UTC
Created attachment 131809 [details]
GPS snapshots ebuild

Attached is an ebuild for the daily GPS snapshots.
https://libre.adacore.com/gps/snapshot.html

So that Gentoo users at least can get a more recent version. ;)

I will try to write a new source ebuild, too.
Comment 5 gentoo 2007-09-27 17:24:16 UTC
Created attachment 132032 [details]
/usr/portage/dev-ada/gps/gps-4.0.2.ebuild

Okay, here we go. New gps-source build.

You also need the gtkada-patch.

I don't know the exact deps, so it could be that some are missing.

You need to fetch the src manually. So grab it from:
http://libre.adacore.com/dynamic/view/sources/gps-4.0.2-gpl-src.tgz?version=2007&config=x86-linux&filename=gps-4.0.2-gpl-src.tgz
or
ftp://42productions.org/gnat/2007/x86-linux/sources/gps-4.0.2-gpl-src.tgz

Have fun!
Comment 6 gentoo 2007-09-27 17:24:51 UTC
Created attachment 132033 [details, diff]
/usr/portage/dev-ada/gps/files/gps-4.0.2-gtkada.patch
Comment 7 Kevin F. Quinn (RETIRED) gentoo-dev 2007-09-29 12:09:06 UTC
I get the following:

gnatgcc -c -g -gnatec=/var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/gps/gnat.adc -O2 -gnatn -gnatws -I- -gnatA /var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/kernel/src/gps-kernel-command_api.adb
gnatgcc -c -g -gnatec=/var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/gps/gnat.adc -gnatn -gnatpg -O2 -gnatws -g -I- -gnatA /var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/gnat/prj-ext.adb
gnatgcc -c -g -gnatec=/var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/gps/gnat.adc -O2 -gnatn -gnatws -I- -gnatA /var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/kernel/src/task_manager-gui.adb
gnatgcc -c -g -gnatec=/var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/gps/gnat.adc -O2 -gnatn -gnatws -I- -gnatA /var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/widgets/src/gtkada-tree_view.adb
gnatmake: "gtkada-intl.adb" not found
make[1]: *** [internal-build] Error 4
make: *** [default] Error 2

anything spring to mind?

(using dev-ada/gtkada-2.10.0, dev-ada/xmlada-2.2.0, dev-lang/gnat-gcc-4.1.2)


emerge --info
Portage 2.1.3.11 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 AMD Athlon(tm) XP 2500+
Timestamp of tree: Sat, 29 Sep 2007 10:00:07 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -ggdb2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe -ggdb2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs collision-protect cvs distlocks fixpackages installsources metadata-transfer pax sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/ http://mirror.qubenet.net/mirror/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en it de es fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/tree"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apache2 arts audiofile berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cli cracklib crypt cups dbus dri dts dv dvb dvd dvdr dvdread encode fam fax ffmpeg firefox flac flash foomaticdb fortran gcj gdbm gif gpm gs gstreamer gtk gtk2 hal iconv imagemagick imap imlib ipod ipv6 isdnlog jack java javascript jbig jpeg jpeg2k kde ldap lesstif mad mbrola midi mime ming mmap mmx mmxext mng mp3 mpeg mplayer mudflap nas ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pda pdf perl png ppds pppd pygtk python qt3 qt4 quicktime readline reflection rle ruby samba session speex spell spl sse sse2 ssl svg tcl tcltk tcpd test tetex theora threads tidy tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vdr vim-syntax vorbis wifi win32codecs wmf x264 x86 xine xinerama xml xmlrpc xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en it de es fr" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 8 gentoo 2007-10-06 09:51:23 UTC
(In reply to comment #7)

This seems to be a problem with gtkada not installing gtkada-intl.adb. But gnat-gpl doesn't give an error. Only gnat-gcc.

Maybe you can try emerging with gnat-gpl.
Comment 9 George Shapovalov (RETIRED) gentoo-dev 2007-10-06 15:28:25 UTC
Yes, I believe the latest GPS is supposed to be built with and Ada-2005 capable compiler, so it should depend on gnat-gpl-2007 directly. I was considering introducing a new virtual - virtual/ada and populating it with ada-1983, ada-1995 and ada-2005. Then, packages that require Ada-2005 could depend on an appropriate version of this virtual, plus they will need to chack for the right version of gnat to be active in pkg_setup.

And finally, just a note of reassurance :).
I am monitoring this bug and will add the ebuild, but first I wanted to finalize xmlada and probably update gtkada, as I plan to organize where stuff gets installed a bit better  and provide *working* project files (new locations will be reflected in all the usual vars, so the change should be transparent). 


George
Comment 10 Hal Engel 2008-04-30 22:49:36 UTC
I ran into an issue with the 4.0.2 ebuild in that it requires virtual/gnat and for what ever reason having gnat-gpl-4.1.3-2007 installed caused this the throw an error.

# emerge dev-ada/gps
Calculating dependencies -
!!! All ebuilds that could satisfy "virtual/gnat" have been masked.
!!! One of the following masked packages is required to complete your request:
- virtual/gnat-4.2 (masked by: ~amd64 keyword)
- virtual/gnat-4.1 (masked by: ~amd64 keyword)
- virtual/gnat-3.4 (masked by: ~amd64 keyword)

I removed the dependency on virtual/gnat (thinking it should be OK because I had gnat-gpl-4.1.3-2007 installed) and it failed farther into the build because it can not locate the /usr/lib/gtkada directory which it appears is specified in the gtkada.gpr file.  gtkada.gpr is located in the gtkada directory in the gps source code tree.  When testing hand builds of gps I ran into the same issue in that same file and this needed to be hand modified to get gps to build (IE. I changed:

for Object_Dir use "/usr/lib/gtkada";

to

for Object_Dir use "/usr/lib";

).  It appears this file needs to be patched to make the ebuild work.  I did a quick test by modifying this file by hand after the ebuild had unpacked the tarball but before the actual build had started to see if the build would work and it made it farther but failed on what looks like a gtkada related error. 

gnatgcc -c -g -gnatec=/var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/gps/gnat.adc -O2 -gnatn -gnatws -I- -gnatA /var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/views/src/bookmark_views.adb
bookmark_views.adb:603:24: no candidate interpretations match the actuals:
bookmark_views.adb:603:56: expected type "GObject" defined at glib-object.ads:46
bookmark_views.adb:603:56: found private type "System.Address"
bookmark_views.adb:603:56:   ==> in call to "Set" at gtk-tree_store.ads:140
bookmark_views.adb:603:56:   ==> in call to "Set" at gtk-tree_store.ads:133
bookmark_views.adb:603:56:   ==> in call to "Set" at gtk-tree_store.ads:126
bookmark_views.adb:603:56:   ==> in call to "Set" at gtk-tree_store.ads:119
bookmark_views.adb:603:56:   ==> in call to "Set" at gtk-tree_store.ads:112
gnatmake: "/var/tmp/portage/dev-ada/gps-4.0.2/work/gps-4.0.2/views/src/bookmark_views.adb" compilation error
make[1]: *** [internal-build] Error 4
make: *** [default] Error 2

And this is where I am stuck.  Any ideas about what I need to do to get this to work?
Comment 11 Tupone Alfredo gentoo-dev 2017-11-21 20:48:58 UTC
dev-ada/gps-2017 added to the tree