Package: libgtkada2-dev
Version: 2.8.1-5.1
Severity: minor
Hello.
First, thank you for providing this comment, much more usable than the
GNAT docs about project files.
I suggest the following change in /usr/share/ada/adainclude/gtkada2.gpr
--- gtkada2.gpr 2007-07-31 20:30:52.000000000 +0200
+++ gtkada2.gpr.new 2007-07-31 20:31:49.000000000 +0200
@@ -9,16 +9,16 @@
-- package Linker renames GtkAda2.Linker;
-- -- Alternatively, if you need additional switches:
-- -- package Linker is
--- -- for Default_Switches ("Ada") use (GtkAda2.Ada_Switches & ...)
+-- -- for Default_Switches ("Ada") use GtkAda2.Ada_Switches & ...
-- -- end Linker;
-- end Example;
project GtkAda2 is
for Source_Dirs use ("/usr/share/ada/adainclude/gtkada2");
for Object_Dir use "/usr/lib/ada/adalib/gtkada2";
- Ada_Switches := "-lgtkada2";
+ Ada_Switches := ("-lgtkada2");
Linker_Switches := Ada_Switches; -- better name for use in other projects
package Linker is
- for Default_Switches ("Ada") use (Linker_Switches);
+ for Default_Switches ("Ada") use Linker_Switches;
end Linker;
end GtkAda2;
The reason is that string concatenation results in ONE option
containing blanks (even if the quotes are not displayed when gnatmake
runs). For example,
for Default_Switches ("Ada") use ("-lgmp" & " myfile.o")
results in the command line
gnatlink .... -largs "-lgmp myfile.o"
being executed (the quotes are not echoed), and gnatlink complaining
not finding "-lgmp myfile.o".
Concatening an associative array of options with a new string is
correctly understood as successive "pragma Linker_Option ("...")", as
far as I have tested.
Bye.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-2-k7 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libgtkada2-dev depends on:
ii gnat-4.1 4.1.2-8 The GNU Ada compiler
ii libc6-dev 2.6-2 GNU C Library: Development Librari
ii libglade2-dev 1:2.6.1-1 development files for libglade
ii libgtk2.0-dev 2.10.13-1 Development files for the GTK+ lib
ii libgtkada-2.8 2.8.1-5.1 Ada binding for the GTK library
Versions of packages libgtkada2-dev recommends:
ii glade [glade-2] 2.12.1-7 GTK+ 2 User Interface Builder
ii libglu1-mesa-dev 6.5.2-7 The OpenGL utility library -- deve
ii libglu1-xorg-dev 1:7.2-5 transitional package for Debian et
ii libgtkada-gl-2.8 2.8.1-5.1 Ada binding for OpenGL
ii libgtkada-glade-2.8 2.8.1-5.1 Ada binding for Glade generated ap
ii libgtkada2-bin 2.8.1-5.1 Development files for libgtkada2
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]