[Pkg-ace-devel] Re: Bug#289158: mpc-ace: MPC needs ACE_ROOT and TAO_ROOT environment
variables
Marek Brudka
mbrudka@aster.pl
Sat, 15 Jan 2005 17:39:23 +0100
Hi Thomas,
User Thomas Girard wrote:
>
> Hi Marek,
>
> I have a quite simple fix, but I would like to discuss it with you. My
> fix is attached ; it simply define ACE_ROOT to be /usr/share/ace and
> export this in the GNUmakefile if there were no ACE_ROOT defined.
>
> This should fix the bug you reported, but there is another problem. I
> have added `export' keyword so that ACE_ROOT variable is seen when
> invoking for instance tao_idl. Because tao_idl *also* needs ACE_ROOT (at
> last it complains about it when it's missing).
>
> I believe there should be no `export' keyword, but all TAO and ACE
> programs should be altered to use /usr/share/ace instead of relying on
> ACE_ROOT.
>
> Comments and suggestions ?
I see we have a serious problem here. *_ROOT are used in many places in
ACE,
hence it is rather difficult to remove this dependency. I recall, I
prepared once a
RPM distribution for ACE. I did not even tried to modify ACE source to
get rid of
these variables. Instead I created a post-install script, which added
some variables
to system profile. It was easy for RedHat I used, because it had
/etc/profile.d/ folder,
where post-install scripts could write their settings eg.
/etc/profile.d/ace.sh with export
ACE_ROOT=/usr.
Do you know if Debian provides a similiar method for setup? I agree,
that all those
*_ROOT variables just pollute the environment, but this ensures that
everything is
configured correctly. Hove no other idea how to manage the problem
globally :-(
Regards
Marek Brudka