[Pkg-ace-devel] Bug#307253: /usr/share/doc/libtao-orbsvcs-dev/examples/GNUmakefile fails

Thomas Girard Thomas Girard <thomas.g.girard@free.fr>, 307253@bugs.debian.org
Mon, 02 May 2005 21:17:12 +0200


Stefan Strasser a =E9crit :
> Package: libtao-orbsvcs-dev
> Version: 5.4.2.1.0-3
> Severity: normal
>=20
>=20
> make[1]: Entering directory
> /usr/share/doc/libtao-orbsvcs-dev/examples/CosEC'
> make[2]: Entering directory
> /usr/share/doc/libtao-orbsvcs-dev/examples/CosEC/Factory'
> make[3]: Entering directory
> /usr/share/doc/libtao-orbsvcs-dev/examples/CosEC/Factory'
> make[3]: GNUmakefile.CosEC_Factory_Server: Datei oder Verzeichnis nicht
> gefunden
> make[3]: *** Keine Regel, um =BBGNUmakefile.CosEC_Factory_Server=AB zu
> erstellen.  Schluss.
> make[3]: Leaving directory
> /usr/share/doc/libtao-orbsvcs-dev/examples/CosEC/Factory'
> make[2]: *** [CosEC_Factory_Server] Fehler 2
> make[2]: Leaving directory
> /usr/share/doc/libtao-orbsvcs-dev/examples/CosEC/Factory'
> make[1]: *** [all] Fehler 2
> make[1]: Leaving directory /usr/share/doc/libtao-orbsvcs-dev/examples/C=
osEC'
> make: *** [all] Fehler 2

There are actually two errors:

1. ACE_ROOT environment variable must be defined to /usr/share/ace.
    Please note that defining ACE_ROOT is never necessary for everything
    you might write because MPC and tao_idl were patched for that.
    But it is here because the examples GNUmakefiles were not regenerated
    (to save some space) after patching MPC.

2. If you export ACE_ROOT=3D/usr/share/ace, then you'll get another error
    about a non existing makefile (GNUmakefile.CosEC_Factory_Server),
    which happen to exist in a compressed form.

Anyway, since you can't compile under the path where examples get
installed, I would recommend you to copy the example you want to play
with in a directory of yours, says $HOME/ex1. The following instructions
should help you. Note that you don't need to define $ACE_ROOT if you
perform all these steps. You will also need mpc-ace package.

   me@mymachine:~$ mkdir $HOME/ex1
   me@mymachine:~$ cp -a=20
/usr/share/doc/libtao-orbsvcs-dev/examples/CosEC $HOME/ex1
   me@mymachine:~$ cd $HOME/ex1
   me@mymachine:~/ex1$ find . -name '*.gz' | xargs gunzip
   me@mymachine:~/ex1$ mwc.pl -recurse -value_project install=3D.=20
-value_project libout=3D.
   me@mymachine:~/ex1$ make

I have tested this here and it works. This is rather complicated, but I
think these steps can't be avoided:
   o step 1 to 3 are needed because examples are in directory where you
     can't (or at least shouldn't) write.
   o step 4 is needed because big files in /usr/share/doc get compressed.
   o step 5 needs extra -value_project flags because example MPC
     fragments do not define file installation location, and therefore
     they default to $ACE_ROOT/bin and $ACE_ROOT/lib.

Hope this helps,

Thomas