Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37267 - ADA_INCLUDE_PATH & ADA_OBJECTS_PATH is Not Properly Set
Summary: ADA_INCLUDE_PATH & ADA_OBJECTS_PATH is Not Properly Set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-04 18:54 UTC by Warren W. Gay VE3WWG
Modified: 2006-01-17 15:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Warren W. Gay VE3WWG 2004-01-04 18:54:25 UTC
When various Ada (GNAT) components are installed, the directory /etc/env.d
collects environment setting files (that are presumably sourced). The
present arrangment only works when one Ada component is installed. When
more than one component is installed, only the last project's setting
of ADA_INCLUDE_PATH and ADA_OBJECTS_PATH prevails.

For example, if I have in /etc/env.d the files:

55adasockets
55florist
55gtkada

present, indicating that AdaSockets, Florist and GtkAda ebuilds are
installed, the environment variable ADA_INCLUDE_PATH is set to the
value "/usr/lib/ada/adainclude/gtkada", which appears to be from
the last file sourced (55gtkada).  The value of this variable should
be (in this example):

/usr/lib/ada/adainclude/adasockets:/usr/lib/ada/adainclude/florist:/usr/...

IOTW, it should be similar to the PATH variable, where the different directories
are appended in order.

Reproducible: Always
Steps to Reproduce:
1.Install AdaSockets
2.Install Florist
3.Install GtkAda

(all of this assumes that the GNAT compiler is installed)

Actual Results:  
The ADA_INCLUDE_PATH & ADA_OBJECTS_PATH contain only the value from
the last (sort order) Ada package (GtkAda in the example given).

Expected Results:  
The ADA_INCLUDE_PATH & ADA_OBJECTS_PATH should contain a list of ebuild
pathnames, separated by a colon (colon dropped if only one directory is
specified, since it is a separator).

The avoidance procedure is to either hardcode your environment variables
ADA_INCLUDE_PATH & ADA_OBJECTS_PATH, or script your own environment sourcing
script to run as part of your own login procedure.

emerge info data below:

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-
r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/share/config /var/bind /var/qmail/c
ontrol"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo http://csociety-
ftp.ecn.purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.pu
rdue.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ 
http://gentoo.seren.com/gentoo rsync://gentoo.seren.com/gentoo http://gentoo.ch
em.wisc.edu/gentoo/ http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo 
ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp:/
/mirrors.tds.net/gentoo rsync://mirrors.tds.net/gentoo 
http://gentoo.netnitco.net http://mirror.tucdemonic.org/gentoo/ http://mirror
.clarkson.edu/pub/distributions/gentoo/ http://lug.mtu.edu/gentoo/ 
rsync://lug.mtu.edu/distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acl alsa apache2 apm avi berkdb cdr crypt cups curl dga 
directfb doc dvd dvdr emacs encode esd ethereal fbcon fir
ebird foomaticdb freetds gdbm ggi gif gnome gpm gtk gtk2 imlib informix innodb 
ipv6 joystick jpeg ldap leim libg++ libwww mad mikmod
 mmx motif mozilla mpeg mpi mysql ncurses nocardbus oci8 odbc oggvorbis opengl 
oss pam pdflib png postgres qt quicktime readline sdl
 slp spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 
xinerama xml xml2 xmms xv zlib"
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2006-01-17 15:16:32 UTC
This was a problem with env-update. Solved long since, working for ages..

Closing the bug.

George