debian/0000755000000000000000000000000012236551671007176 5ustar debian/control0000644000000000000000000001346712236547250010612 0ustar Source: libgtkada Section: libs Priority: optional Maintainer: Ludovic Brenta Uploaders: Nicolas Boulenguez Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.2), gnat, gnat-4.6, dh-ada-library (>= 5.4), pkg-config, libgnomeui-dev, libbonoboui2-dev, libgtk2.0-dev (>= 2.24.0), libgtkgl2.0-dev, libgdk-pixbuf2.0-dev, libcairo-dev, libpango1.0-dev, libglib2.0-dev, libx11-dev, libglu1-mesa-dev | libglu-dev, libgl1-mesa-dev | libgl-dev # dh-ada-library 5.4 stops linking doc directories. # *-dev are detailed in rules, and shoud be repeated in Depends: *-dev below. Build-Depends-Indep: texinfo, texlive-fonts-recommended, texlive-generic-recommended, texlive-latex-base, transfig, netpbm, ghostscript Standards-Version: 3.9.5 Homepage: http://libre.adacore.com/libre/tools/gtkada Vcs-Browser: http://www.ada-france.org:8081/branch/changes/org.debian.libgtkada2 Vcs-Mtn: www.ada-france.org org.debian.libgtkada2 XS-Testsuite: autopkgtest Package: libgtkada2.24.1-dev Section: libdevel Architecture: any Depends: ${ada:Depends}, libgtkada-bin (=${binary:Version}), libcairo-dev, libgdk-pixbuf2.0-dev, libglib2.0-dev, libgtk2.0-dev (>= 2.24.0), libpango1.0-dev, libx11-dev, ${misc:Depends} Suggests: libgnomeada2.24.1-dev (= ${binary:Version}), libgtkglada2.24.1-dev (= ${binary:Version}), libgtkada-doc (= ${binary:Version}) Description: Ada binding for the GTK+ GUI (development files) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the development files and static libraries. Package: libgnomeada2.24.1-dev Section: libdevel Architecture: any Depends: ${ada:Depends}, libgnomeui-dev, libbonoboui2-dev, ${misc:Depends} Suggests: libgtkada-doc (=${binary:Version}) Description: Ada binding for the GNOME GUI (development files) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the development files and static libraries for GNOME extensions. Package: libgtkglada2.24.1-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, ${ada:Depends}, libgtkgl2.0-dev, libglu1-mesa-dev | libglu-dev, libgl1-mesa-dev | libgl-dev Suggests: libgtkada-doc (= ${binary:Version}) Description: Ada binding for GTK+ OpenGL extensions (development files) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the development files and static libraries for the OpenGL extensions. Package: libgtkada-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: ${misc:Depends}, ${ada:Depends} Recommends: gdb (>= 6.8), ${ada:Recommends} Suggests: ${ada:Suggests} Description: Ada binding for the GTK+ GUI (debugging symbols) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the debugging symbols. Package: libgnomeada-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: ${misc:Depends}, ${ada:Depends} Recommends: gdb (>= 6.8), ${ada:Recommends} Suggests: ${ada:Suggests} Description: Ada binding for the GNOME GUI (debugging symbols) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the debugging symbols for the GNOME extensions. Package: libgtkglada-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: ${ada:Depends}, ${misc:Depends} Recommends: gdb (>= 6.8), ${ada:Recommends} Suggests: ${ada:Suggests} Description: Ada binding for GTK+ OpenGL extensions (debugging symbols) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the debugging symbols for the OpenGL extensions. Package: libgtkada2.24.1 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ada binding for the GTK+ GUI (dynamic library) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This library will let you run Ada applications compiled with GTK+. Package: libgnomeada2.24.1 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ada binding for the GNOME GUI (dynamic library) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This library will let you run Ada applications compiled with GNOME. Package: libgtkglada2.24.1 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ada binding for GTK+ OpenGL extensions (dynamic library) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language . This library will let you run GtkAda applications compiled with OpenGL support. Package: libgtkada-bin Section: devel Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: gnat, libgtkada-doc (=${binary:Version}) Replaces: libgtkada2-bin Breaks: libgtkada2-bin Description: Ada binding for the GTK+ GUI (development utilities) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains development utilities (gtkada-dialog and gtkada-config). Package: libgtkada-doc Section: doc Architecture: all Depends: ${misc:Depends} Suggests: gnat Replaces: libgtkada2-doc Breaks: libgtkada2-doc Description: Ada binding for the GTK+ GUI (documentation) GtkAda is a library that allows programmers to write GTK+ applications in the Ada programming language. . This package contains the User's Guide and Reference Manual for GtkAda, in HTML, Info, PDF and ASCII formats. debian/gtkada-config.sed0000644000000000000000000000330012236547250012363 0ustar #!/bin/sh DEB_HOST_MULTIARCH="@DEB_HOST_MULTIARCH@" gtkada_LDLIBS="@gtkada_LDLIBS@" gtkada_SOVERSION="@gtkada_SOVERSION@" prefix=/usr libdir=${prefix}/lib/${DEB_HOST_MULTIARCH} alidir=${prefix}/lib/${DEB_HOST_MULTIARCH}/ada/adalib/gtkada includedir=${prefix}/share/ada/adainclude/gtkada gtk_libs="-L${libdir} ${gtkada_LDLIBS}" cflags_static="-aI${includedir} -aO${alidir}" cflags_relocatable="-aI${includedir} -aO${alidir}" libs_relocatable="-L${libdir} -lgtkada ${gtk_libs}" libs_static="${libdir}/libgtkada.a ${gtk_libs}" usage() { cat <&2 exit 1 ;; --static) libtype=static ;; --prefix) echo $prefix exit 0 ;; --version|-v) echo ${gtkada_SOVERSION} exit 0 ;; --libs) show_libs=1 show_cflags=0 ;; --cflags) show_libs=0 show_cflags=1 ;; *) usage 1>&2 exit 1 ;; esac shift done result="" if [ $show_cflags = 1 ]; then if [ $libtype = static ]; then result="$cflags_static" else result="$cflags_relocatable" fi if [ $show_libs = 1 ]; then result="$result -largs " fi fi if [ $show_libs = 1 ]; then if [ $libtype = static ]; then result="${result}${libs_static}" else result="${result}${libs_relocatable}" fi fi echo $result debian/tools.gpr0000644000000000000000000000253212236547250011050 0ustar -- Build gtkada-dialog for Debian. -- Copyright (C) 2012-2013 Nicolas Boulenguez -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . with "gtkada.gpr"; project Tools is for Languages use ("Ada"); for Source_Dirs use ("../src/tools"); for Object_Dir use "../src/tools/obj"; for Main use ("gdialog.adb"); package Compiler is for Default_Switches ("Ada") use External_As_List ("ADAFLAGS", " "); end Compiler; package Binder is for Default_Switches ("Ada") use ("-E"); end Binder; package Builder is for Executable ("gdialog.adb") use "gtkada-dialog"; end Builder; package Linker is for Default_Switches ("Ada") use External_As_List ("LDFLAGS", " "); end Linker; end Tools; debian/gnomeada_lib_static/0000755000000000000000000000000012236547250013144 5ustar debian/gtkglada_obj_dynamic/0000755000000000000000000000000012236547250013310 5ustar debian/gtkglada_lib_static/0000755000000000000000000000000012236547250013147 5ustar debian/gtkglada.gpr0000644000000000000000000000352712236547250011473 0ustar -- Build GTKGLAda for Debian. -- Copyright (C) 2012-2013 Nicolas Boulenguez -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . with "gtkada.gpr"; library project Gtkglada is Soversion := External ("gtkglada_SOVERSION"); Ldlibs := External_As_List ("gtkglada_LDLIBS", " "); type Library_Kind is ("dynamic", "static"); Kind : Library_Kind := External ("KIND"); for Library_Name use Project'Name; case Kind is when "dynamic" => for Library_Version use "lib" & Project'Library_Name & ".so." & Soversion; -- Build-time options use to link the shared library. for Library_Options use External_As_List ("LDFLAGS", " ") & Ldlibs; when "static" => null; end case; for Library_Kind use Kind; for Languages use ("Ada"); for Source_Dirs use ("../src/opengl"); for Library_Dir use Project'Name & "_lib_" & Project'Library_Kind; for Object_Dir use Project'Name & "_obj_" & Project'Library_Kind; package Compiler is for Default_Switches ("Ada") use External_As_List ("ADAFLAGS", " "); end Compiler; package Binder is for Default_Switches ("Ada") use ("-E"); end Binder; -- No linker package is needed as no project imports this one. end Gtkglada; debian/copyright0000644000000000000000000000663612236547250011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: GtkAda Source: https://libre.adacore.com/libre/download/ Comment: All the content available on libre.adacore.com is licensed under the terms of the pure GPL, despite the fact that AdaCore have not yet adjusted the licensing boilerplate in documentation. . This is stated for example at http://lists.adacore.com/pipermail/gtkada/2009-June/003789.html. The actual license is a decision of AdaCore. Please contact them at libre@adacore.com for any clarification. . . This is confirmed in COPYING and README. . In a previous version of Debian, libgtkada2 2.4.0 was licensed under the terms of the GNAT-Modified GNU General Public License (GMGPL). This new version is licensed under the terms of the pure GPL. As a consequence, it is no longer legal to distribute proprietary software that incorporates this library. If your program uses GtkAda, and if you wish your program to use licensing terms incompatible with the GPL, you have three choices: . - distribute your program in source form only, and require your licensees to build it for themselves. Your sources need not be under GPL, since they are not linked to GtkAda. . - contact AdaCore, the upstream author, at sales@adacore.com, and purchase a GMGPL license for GtkAda. . - do not distribute your program at all. . You may be tempted to retrieve the sources from AdaCore's CVS repository. Be warned that doing so will still grant you a pure GPL license, despite the fact that AdaCore have not yet adjusted the licensing boilerplate in source files. In Debian, I have removed the "special exception" language only to remove confusion. It is not I who changed the actual license, it is AdaCore. Contact them at libre@adacore.com for any clarification. Files: * Copyright: 1998-2011 Emmanuel Briot 1998-2011 Joel Brobecker 1998-2011 Arnaud Charlet 1998-2011 Nicolas Setton 2000-2011 ACT-Europe 2000 Helix Code 1997-1998 Janne Löf 2008-2009 Sam Hocevar License: GPL-2+ This file is free software; you can redistribute it and/or modify it under terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- or FITNESS FOR A PARTICULAR PURPOSE. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2003-2013 Ludovic Brenta 2012-2013 Nicolas Boulenguez License: GPL-3+ This file is free software; you can redistribute it and/or modify it under terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- or FITNESS FOR A PARTICULAR PURPOSE. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. debian/source/0000755000000000000000000000000012236547250010474 5ustar debian/source/format0000644000000000000000000000001412236547250011702 0ustar 3.0 (quilt) debian/gnomeada_obj_static/0000755000000000000000000000000012236547250013150 5ustar debian/changelog0000644000000000000000000011005012236550735011045 0ustar libgtkada (2.24.1-14) unstable; urgency=low [ Jean-Baptiste Lallement ] * Add missing dependency 'libglu1-mesa-dev | libglu-dev' to libgtkglada2.24.1-dev. (LP: #1244896) (Closes: #727753) This completes the work-around for #720991 explained in debian/rules. [ Nicolas Boulenguez ] * Standards-Version: 3.9.5 without changes. * source/options: use default compressor for Debian diff. -- Nicolas Boulenguez Thu, 07 Nov 2013 00:33:29 +0100 libgtkada (2.24.1-13) unstable; urgency=low * Revert "share library_dir" changes, which sometimes FTBFS: dynamic/static variants of same ALI may conflict depending on compilation order. * control (Build-Depends): provide concrete mesa-dev before virtual gl-dev. * rules: let info page search images in /usr/share/doc/. Only duplicate versioned project for -arch and after the first one exists. * source.lintian-overrides: correct syntax. -- Nicolas Boulenguez Wed, 28 Aug 2013 14:14:04 +0200 libgtkada (2.24.1-12) unstable; urgency=low [Martin Pitt Mon, 26 Aug 2013 20:14:26 +0200 libgtkada (2.24.1-11) unstable; urgency=low * copyright: now machine-readable. * lintian-overrides: a patch removing a non DFSG license must contain it * rules, patches/01-doc.diff: typo in manpage, COPYING as license. -- Nicolas Boulenguez Mon, 22 Jul 2013 19:24:27 +0200 libgtkada (2.24.1-10) unstable; urgency=low * Add -lm to the gtkada.gpr link list (Closes: #695055). Patch from Thorsten Glaser. -- Nicolas Boulenguez Mon, 15 Jul 2013 19:14:24 +0200 libgtkada (2.24.1-9) unstable; urgency=low * control: Testsuite field used by automatic checkers. Closes: #692679. Removed obsolete DM-Upload-Allowed field. Standards-Version: 3.9.3 -> 3.9.4 without changes. Build-Depends: explicit direct dependency on pkg-config. * tools.gpr: does not need C flags for Ada only sources. * debian/*: use my debian mail address. * tests: valid test names may not contain underscores. And must not write to stderr if successful. * Build-Depends, gtkglada.gpr: use libgtkgl-2.0 instead of src/opengl/*.c. * rules: updated run-tests target, cosmetic changes in comments. * rules, ada_libraries, control, *.gpr: replaced gprbuild with gnatmake. Each library needs its own obj subdirectory for each build. Order of linker options becomes compatible with architectures where --as-needed is the default. I hope that is Closes: #695055 and various shlibs-symbol-not-found. -- Nicolas Boulenguez Tue, 11 Jun 2013 11:05:41 +0200 libgtkada (2.24.1-8) unstable; urgency=low * debian/patches/no_gtkextra.patch: revive, upstream's testgtk still depends on GtkExtra which is dead upstream and no longer in Debian. Closes: #686781. * debian/patches/04-testgtk.patch (testgtk.gpr): force linking with libGLU.so since libgtkglada.so is not linked to it. -- Ludovic Brenta Wed, 5 Sep 2012 22:51:30 +0200 libgtkada (2.24.1-7) unstable; urgency=low * debian/control (Build-Depends): tighten to gprbuild (>= 2011-2). Fixes FTBFS caused by #679061. -- Ludovic Brenta Tue, 26 Jun 2012 21:39:40 +0200 libgtkada (2.24.1-6) unstable; urgency=low * control: Build-Depend dpkg-dev (>= 1.16.2) so that build-arch is preferred to build, see http://wiki.debian.org/Build-Depends-Indep (this caused a FTBS on mips/mipsel). * rules: prepend CPPFLAGS to CFLAGS before exporting to projects (hardening preprocessor flags were ignored). -- Nicolas Boulenguez Fri, 22 Jun 2012 21:23:55 +0200 libgtkada (2.24.1-5) unstable; urgency=low [Nicolas Boulenguez] * rules, *.gpr, ada_libraries: switched to dh_ada_library. * rules, control, compat: dh (>= 9) should handle build target. * control: Standards-Version: 3.9.3 (no changes) -dev packages cannot be Multi-Arch: same as they embed a project file whose content mentions lib/TRIPLET subdirectories (Closes: #669998). -dbg packages can be Multi-Arch: same without Pre-Depends as they do not need the linker at install time. * rules: Standard /usr/share/dpkg/default.mk from dpkg-dev (>= 1.16.1) Gprbuild now selects gnatgcc instead of gcc automatically. * tests: import versioned project, to test both versions in one go. * patches/include_only_glib_h: documented. [Ludovic Brenta] * Build-Depend: dh-ada-library >= 2 to avoid a bug affecting gtkada. -- Nicolas Boulenguez Thu, 10 May 2012 23:49:34 +0200 libgtkada (2.24.1-4) unstable; urgency=low [Nicolas Boulenguez] * Internal dependencies are very redundant because the package names contain version numbers. We generate them with deb-substvars to ease next ali or so version bump. This implies a lintian override. * Correct -v option in test. [Ludovic Brenta] * debian/patches/include_only_glib_h.patch: new. Closes: #665570. -- Ludovic Brenta Sat, 24 Mar 2012 23:45:17 +0100 libgtkada (2.24.1-3) unstable; urgency=low [Nicolas Boulenguez] * debian/control: remove dependencies on ada-compiler virtual package. [Ludovic Brenta] * debian/rules: do not compile with -gnatE (dynamic elaboration checks). -- Ludovic Brenta Sat, 11 Feb 2012 13:20:35 +0100 libgtkada (2.24.1-2) unstable; urgency=low * debian/control: add Breaks and Replaces clauses for all -dev packages. -- Ludovic Brenta Sun, 15 Jan 2012 21:08:53 +0100 libgtkada (2.24.1-1) unstable; urgency=low * New upstream release (revision 175477). * Package renamings pursuant to Debian Policy for Ada: libgnomeada2.24.0 -> libgnomeada2.24.1 libgnomeada2.24.0-dev -> libgnomeada2.24.1-dev libgtkada2.24.0 -> libgtkada2.24.1 libgtkada2.24.0-dev -> libgtkada2.24.1-dev libgtkglada2.24.0 -> libgtkglada2.24.1 libgtkglada2.24.0-dev -> libgtkglada2.24.1-dev * debian/patches/01-doc.patch: refresh. -- Ludovic Brenta Sun, 15 Jan 2012 15:13:25 +0100 libgtkada (2.24.0-4) unstable; urgency=low * control: Replaces: and Breaks: former packages with conflicting files: libgtkada2-bin, libgtkada2-doc. Closes: #651543. -- Nicolas Boulenguez Mon, 12 Dec 2011 17:55:37 +0100 libgtkada (2.24.0-3) unstable; urgency=low * rules: typo (gcc was used instead of gnatgcc) * README.*, libgtkada-doc.examples, source/local-options: restored four files ignored by mtn * .mtn-ignore: patched to avoid this from now on * watch: style in comment -- Nicolas Boulenguez Fri, 09 Dec 2011 22:36:52 +0100 libgtkada (2.24.0-2) unstable; urgency=low * debian/rules (build): do nothing. This makes debian/rules compatible with architecture-dependent-only and architecture-independent-only builds (dpkg-buildpackage -B, -A). -- Ludovic Brenta Wed, 7 Dec 2011 22:28:38 +0100 libgtkada (2.24.0-1) unstable; urgency=low [Nicolas Boulenguez] * New upstream release. * Rename the source package from libgtkada2 to libgtkada. * Package renamings pursuant to Debian Policy for Ada: libgnomeada2.14.2 -> libgnomeada2.24.0 libgnomeada2.14.2-dbg -> libgnomeada-dbg libgnomeada2.14.2-dev -> libgnomeada2.24.0-dev libgtkada-gl2.14.2 -> libgtkglada2.24.0 - -> libgtkglada-dbg (new package) - -> libgtkglada2.24.0-dev (new package) libgtkada-glade2.14.2 -> (removed, support dropped upstream) libgtkada2-bin -> libgtkada-bin libgtkada2-doc -> libgtkada-doc libgtkada2.14.2 -> libgtkada2.24.0 libgtkada2.14.2-dbg -> libgtkada-dbg libgtkada2.14.2-dev -> libgtkada2.24.0-dev * Build with gnat-4.6. * Switch to dpkg-source 3.0 (quilt) format * control: (Homepage) added (Architecture) "any" instead of an explicit list (Section) avoided redundancy between source and binaries (Standard-Versions) 3.9.2 Conflicts/Replaces removed with gcc change, due to debian-ada-policy. * copyright: DEP-5 * patches: DEP-3 * lintian override: GNAT needs an executable stack * watch: explains why uscan won't work. * doc-base registrations * patch to compile with hardening flags, new dpkg default. * bypass upstream build system, that was not intended to build two versions of the libraries at the same time. Closes: #585611. [Ludovic Brenta] * control (Uploaders): add Nicolas. (DM-Upload-Allowed): yes. -- Ludovic Brenta Tue, 6 Dec 2011 23:31:12 +0100 libgtkada2 (2.14.2-5) unstable; urgency=low * Interim upload before the transition to gnat-4.6. * debian/gnomeada2.gpr: correct an embarrassing thinko. Closes: #646115. * debian/control (Build-Depend, Depend): remove gnat, which has transitioned to 4.6 and b-d on gnat-4.4 instead. -- Ludovic Brenta Fri, 21 Oct 2011 22:48:13 +0200 libgtkada2 (2.14.2-4) unstable; urgency=low * debian/patch/example_makefiles.patch: new. Thanks, Olivier Henley. * debian/rules (configure-stamp): correct the paths. Closes: #587533. -- Ludovic Brenta Thu, 8 Jul 2010 10:55:03 +0200 libgtkada2 (2.14.2-3) unstable; urgency=low * debian/control (Architecture): add armel. Closes: #568442. (Standards-Version): bump to 3.8.4 with no changes required. (*-dev): depend on gnat, ada-compiler. (*-doc, *-dbg, *-bin): suggest gnat, ada-compiler. (*-bin): recommend glade, not glade-2. Change the short description (lintian warning). (XS-VCS-*): replace with VCS-* (lintian warning). (Depends): add ${misc:Depends} everywhere (lintian warning). * debian/rules: (libgtkada2.14.2-dev): generate gtkada.gpr and gnomeada.gpr from gtkada2.gpr and gnomada2.gpr. Closes: #580118. (binary-arch): fix a thinko (lintian warning). * Fix lintian errors: ancient-autotools-helper-file config.guess 2001-09-04 ancient-autotools-helper-file config.sub 2001-09-04 - debian/control (Build-Depends): add autotools-dev. - debian/rules (clean): delete the two files. (configure-stamp): symlink them from /usr/share/misc, provided by autotools-dev. See also #585611. -- Ludovic Brenta Sat, 12 Jun 2010 12:59:08 +0200 libgtkada2 (2.14.2-2) unstable; urgency=low [Nicolas Boulenguez] * debian/patches/02-commands.patch: Call gate2-in.exe in the location where debian/rules installs it. -- Ludovic Brenta Sat, 24 Apr 2010 11:20:38 +0200 libgtkada2 (2.14.2-1) unstable; urgency=low [Olivier Scalbert] * New upstream version taken from Subversion revision 149669 (gtkada-2.14.2-branchpoint). Closes: #542417. * debian/patches/rename_gdialog_to_gtkada-dialog.patch: remove, merged upstream. * debian/patches/02-commands.patch, debian/patches/04-testgtk.patch, debian/patches/gtkada-config.patch, debian/patches/no_gtkextra.patch: adjust to new upstream release. * Do not built against libgtk+2.0-extra. Closes: #534872. [Ludovic Brenta] * Migrate to gnat-4.4. Closes: #560177. * debian/control (Architectures): remove alpha (see http://gcc.gnu.org/PR42073). (Section): move -dbg packages to debug. (Description): s/Ada 95/Ada/g. (Build-Depends): move some dependencies to... (Build-Depends-Indep): here. Also add texlive-fonts-recommended and texlive-latex-base, needed for proper generation of the documentation. * -dev package renamings per Debian Policy for Ada: libgtkada2-dev -> libgtkada2.14.2-dev libgnomeada2-dev -> libgnomeada2.14.2-dev * Shared library package renamings due to new soname: libgtkada2.12 -> libgtkada2.14.2 libgnomeada2.12 -> libgnomeada2.14.2 libgtkada-glade2.12 -> libgtkada-gl2.14.2 libgtkada-gl2.12 -> libgtkada-gl2.14.2 * Debugging symbols package renamings due to new soname: libgtkada2.12-dbg -> libgtkada2.14.2-dbg libgnomeada2.12-dbg -> libgnomeada2.14.2-dbg * debian/rules: - extract aliversion and soversion from debian/control. - convert .gif to .png for inclusion in the PDF version of the doc. - separate build-arch from build-indep to support dpkg-buildpackage -A and -B. * debian/patches/compiler_options.patch: build without -fstack-check which is broken in gnat-4.4 on x86 (see http://gcc.gnu.org/PR20548). * debian/patches/sonames.patch: use the full three-part version number as the soversion. * debian/patches/01-doc.patch: - Move the Info documentation to "GNU Ada Tools". - Rename gtkada_{ug,rm} to gtkada2_{ug,rm}. - Correct the version number in the documentation. - Correct the license of the documentation from GFDL with invariant sections to GPLv2 or later, as required by upstream who claims that everything on libre.adacore.com, including the Subversion repository, is pure GPL. * debian/patches/linker_options.patch: new: - link libgnomeada2.so, libgtkada_glade2.so and libgtkada2_gl.so against libgtkada2.so. - link all libraries against libgnat.so. - link libgtkada2.so and libgtkada2_gl.so against libX11.so. - pass --as-needed to the linker to eliminate unneeded dependencies. -- Ludovic Brenta Mon, 28 Dec 2009 15:24:01 +0100 libgtkada2 (2.12.0-4) unstable; urgency=low [Michael Trim] * debian/patches/rename_gdialog_to_gtkada-dialog.patch: new; rename the gdialog binary to gtkada-dialog. Avoids a conflict with the gdialog binary provided by zenity. Patch from upstream Subversion revision 146020. Closes: #497464. * debian/patches/sonames.patch, debian/patches/object_directories.patch, debian/patches/01-doc.patch, debian/control, debian/rules: adjust to apply to gtkada-dialog instead of gdialog. [Ludovic Brenta] * debian/control: - use ${binary:Version} instead of ${source:Version}. - (Standards-Version): update to 3.8.2 with no changes required. * debian/README.Debian: update some version numbers and fix typos. -- Ludovic Brenta Sat, 20 Jun 2009 15:14:18 +0200 libgtkada2 (2.12.0-3) unstable; urgency=low * debian/patches/gtkada-config.patch: new; adjust the output of gtkada-config to Debian. Closes: #497407. -- Ludovic Brenta Sun, 1 Mar 2009 19:39:21 +0100 libgtkada2 (2.12.0-2) unstable; urgency=low * Correct the project files to add a Library_ALI_Dir and correct the Library_Name. -- Ludovic Brenta Thu, 31 Jul 2008 18:10:47 +0200 libgtkada2 (2.12.0-1) unstable; urgency=low * New upstream version taken from Subversion revision 125361. Closes: #475743, #490418. * Apply patch from Raphaël Hertzog to become compliant with source format 3.0. Update Standards-Version to 3.8.0. Closes: #485097. * debian/patches/*.patch: adjust to the new upstream release. * debian/control (libgtkada2-dbg, libgnomeada2-dbg): change priority to extra to match the overrides file. * debian/rules (DH_COMPAT): move to a new debian/compat file. (SHELL): remove, become compatible with dash. Adjust to the new upstream version. * testgtk/testgtk.mak: merge into debian/patches/04-testgtk.patch. * debian/patches/03-dgate.patch, debian/patches/05-ia64.patch.patch, debian/patches/06-415137.patch: remove, obsolete. * debian/patches/00-makefiles.patch: split into several smaller patches. -- Ludovic Brenta Tue, 22 Jul 2008 23:21:37 +0200 libgtkada2 (2.8.1-6) unstable; urgency=low * Gratefully acknowledge the non-maintainer upload. Thanks, Kees. * patches/02-commands.patch (gtkada-config): fix the directory for .ali files. Closes: #402505. * patches/06-415137.patch: new. Closes: #415137. * debian/gtkada2.gpr: clarify the documentation, and replace the & concatenation operator, which was incorrect, with a comma which is correct. Closes: #435440. -- Ludovic Brenta Thu, 3 Aug 2007 00:09:37 +0200 libgtkada2 (2.8.1-5.1) unstable; urgency=low * Non-maintainer upload. * debian/control: tetex->texlive transition to fix FTBFS (Closes: #421140). -- Kees Cook Wed, 23 May 2007 13:25:51 -0700 libgtkada2 (2.8.1-5) unstable; urgency=low * patches/00-makefiles.patch: pass @CFLAGS@ to configure, instead of the hardcoded flags. * debian/control (libgtkada2-dbg, libgnomeada2-dbg): new packages for the detached debugging symbols. Closes: #411450. * debian/rules (binary-arch): build them. Bump DH_COMPAT to 5. Use all available processors when building. -- Ludovic Brenta Mon, 19 Feb 2007 11:06:01 +0100 libgtkada2 (2.8.1-4) unstable; urgency=low * Clean up the diff.gz, it was preventing 00-makefiles.patch from applying cleanly. -- Ludovic Brenta Sat, 7 Oct 2006 21:34:33 +0200 libgtkada2 (2.8.1-3) unstable; urgency=low * patches/00-makefiles.patch (src/Makefile.in (obj-tools)): do not depend on glade, because that would build a static library from the PIC object files. * patches/05-ia6.patch: new, fixes FTBFS on ia64. -- Ludovic Brenta Sat, 7 Oct 2006 15:20:59 +0200 libgtkada2 (2.8.1-2) unstable; urgency=medium * debian/control (Build-Depend): add tetex-bin, now necessary for the docs. Fixes FTBFS. -- Ludovic Brenta Tue, 26 Sep 2006 22:21:31 +0200 libgtkada2 (2.8.1-1) unstable; urgency=low * New upstream release. Closes: #358300, #380587. * debian/control: - (Maintainer): change email address: now a full DD! - (Build-Depends): add gnat (>= 4.1) and quilt. - New ABI; rename library packages to -2.8 instead of -2.4. - (Standards-Version): bump to 3.7.2 with no changes. - (libgtkada2-dev, libgnomeada2-dev): Depend on gnat-4.1. - (Architecture): set to alpha amd64 hppa kfreebsd-i386 i386 ia64 powerpc s390 sparc. - (libgtkada2-bin): new package. Closes: #299482. * debian/rules: - (patch-stamp, unpatch): use quilt. - split the utilities into their own package, for multilib support. * debian/*.patch: move to patches/*.patch; update. * debian/00-makefiles.patch: - change the sonames as described in README.Debian - do not link the library object files statically into dgate, gdialog. - place the object files in separate directories for the static and shared (-fPIC) libraries, avoiding the need to delete them. * debian/README.Debian: explain the change of license to pure GPL. -- Ludovic Brenta Tue, 12 Sep 2006 22:32:04 +0200 libgtkada2 (2.4.0-8) unstable; urgency=low * debian/control: Build-depend on libglu1-xorg-dev | libglu1-mesa-dev instead of xlibmesa-glu-dev | libglu-dev, due to the recent upload of X.org 6.9. -- Ludovic Brenta Tue, 2 May 2006 19:44:02 +0200 libgtkada2 (2.4.0-7) unstable; urgency=low * debian/rules (regexp): accept any character in the Debian upload number. Closes: #359897. -- Ludovic Brenta Sat, 1 Apr 2006 12:48:49 +0200 libgtkada2 (2.4.0-6) unstable; urgency=low * Add kfreebsd-i386 to the list of supported architectures. Thanks, Aurélien Jarno. Build-depend on gnat (>= 3.15p-19). Closes: #345086. -- Ludovic Brenta Sat, 7 Jan 2006 18:28:15 +0100 libgtkada2 (2.4.0-5) unstable; urgency=low * Change maintainer's email address. -- Ludovic Brenta Fri, 26 Aug 2005 15:37:11 +0000 libgtkada2 (2.4.0-4) unstable; urgency=low * debian/rules (binary-arch): fix lintian warning, missing-depends-line on libgtkada-2.4, by calling dh_shlibdeps. * debian/rules (clean): removes files that are generated during build. * debian/README.Debian: update to new package names. * The previous upload also Closes: #295919. -- Ludovic Brenta Sun, 6 Mar 2005 17:09:52 +0100 libgtkada2 (2.4.0-3) unstable; urgency=low * debian/libgtkada2-dev.preinst: new; remove /usr/share/doc/libgtkada2-dev -> libgtkada2-0. Closes: #295918. * debian/control: fix typos in Recommends. * Thanks to Aaron M. Ucko for reporting the two above bugs. -- Ludovic Brenta Sat, 19 Feb 2005 16:20:45 +0100 libgtkada2 (2.4.0-2) unstable; urgency=low * The sonames of the shared libraries have changed. Change binary package names (with Conflicts and Replaces): libgnomeada2 -> libgnomeada-2.4 libgtkada2-0 -> libgtkada-2.4 libgtkada2-gl -> libgtkada-gl-2.4 libgtkaga2-glade -> libgtkada-glade-2.4 Closes: #293652. * The upstream release also Closes: #249663, #249664, #272663. -- Ludovic Brenta Sat, 5 Feb 2005 23:44:37 +0100 libgtkada2 (2.4.0-1) unstable; urgency=low * New upstream version. -- Ludovic Brenta Tue, 4 Jan 2005 07:49:46 +0100 libgtkada2 (2.2.1-7) unstable; urgency=low * debian/sourceforge_960804.patch: new patch to solve a bug in gtkextra: not possible to type capital letters with shift. * debian/rules: symlink /usr/bin/gate2 to /usr/bin/gate, per user request. Also link dgate2 to dgate. Closes: #273228. -- Ludovic Brenta Tue, 28 Sep 2004 18:06:06 +0200 libgtkada2 (2.2.1-6) unstable; urgency=low * debian/rules: fix typo, /use -> /usr. Closes: #269010. * debian/rules: export SHELL=/bin/bash, we use bashisms. * debian/watch: new file, per request from Matthias Klose. -- Ludovic Brenta Tue, 31 Aug 2004 20:21:42 +0200 libgtkada2 (2.2.1-5) unstable; urgency=low * Acknowledge NMU. * gtk-marshallers.adb: Made code compliant with AI-229. Closes: #249665. * Apply patch from Jeffrey Creem so we can compile against GTK+ 2.4. * Handle dots in build numbers, for future NMUs. * Compile gl_h.ads and glu_h.ads; provide the corresponding .ali files. * Provide a Makefile and a project file for testgtk, suitable for use with /usr/share/ada/adainclude/gtkada2.gpr. * libgtkada2-dev: split into libgtkada2-dev and libgnomeada2-dev, so that libgtkada2-dev does not depend on GNOME. Closes: #258733. * Update Standards-Version to 3.6.1.1. * Build-Depend on libpopt-dev. * Build-Depend on debhelper (>= 4.2.13) instead of (>> 4.1.0), so we don't have to chmod the *.ali files anymore. Remove the postinst scripts. -- Ludovic Brenta Sun, 18 Jul 2004 12:13:13 +0200 libgtkada2 (2.2.1-4) unstable; urgency=low * Recompile with gnat 3.15p-7 in a new chroot. Closes: #233911. (-4, because debian/rules cannot handle NMU versions). -- Matthias Klose Sun, 7 Mar 2004 09:51:19 +0100 libgtkada2 (2.2.1-3) unstable; urgency=low * Recompile with gnat 3.15p-7. Closes: #233911. * Do not provide the INSTALL file; fixes a lintian warning. -- Ludovic Brenta Mon, 23 Feb 2004 16:04:33 +0100 libgtkada2 (2.2.1-2) unstable; urgency=low * Install /usr/bin/gtkada-config as a symlink to /usr/bin/gtkada2-config. Closes: #225117. * Install documentation files, the user's guide and reference manuals in /usr/share/doc/libgtkada2-doc; not /usr/share/doc/libgtkada2. * Conflict with, and Replace, libgtkada1-dev. -- Ludovic Brenta Thu, 12 Feb 2004 16:59:45 +0100 libgtkada2 (2.2.1-1) unstable; urgency=low * New upstream version. * Move /usr/bin/gate2-in.exe to /usr/lib/ada/adalib/gtkada2/bin/, so we don't need to provide a man page for it. * generate.pl: rename to generate2 instead of generate2.pl, as per Debian policy. * Provide a manpage for generate2. * Provide a manpage for gdialog2. -- Ludovic Brenta Thu, 27 nov 2003 02:18:20 +0100 libgtkada2 (2.2.0-7) unstable; urgency=low * Add texinfo to the build dependencies. -- Matthias Klose Mon, 17 Nov 2003 23:15:10 +0100 libgtkada2 (2.2.0-6) unstable; urgency=low * Move man pages from the -doc to the -dev package. -- Matthias Klose Wed, 12 Nov 2003 00:50:43 +0100 libgtkada2 (2.2.0-5) unstable; urgency=low * Fixed gtkada2-config; it gave a wrong path for the *.ali files. * Added testgtk in -doc as part of the examples. * Added a project file, /usr/share/ada/adainclude/gtkada2.gpr. * Do not compress the source code for the examples, otherwise the user can't compile them. -- Ludovic Brenta Thu, 11 Sep 2003 10:16:53 +0200 libgtkada2 (2.2.0-4) unstable; urgency=low * The *.ali files for glib, gdk, gtk, and pango were missing from /usr/lib/ada/adalib/gtkada2. * Do not remove debugging symbols from static libraries. -- Ludovic Brenta Thu, 21 Aug 2003 20:07:48 +0200 libgtkada2 (2.2.0-3) unstable; urgency=low * Moved *.ad[bs] to /usr/share/ada/adainclude/gtkada2. * Moved *.ali to /usr/lib/adalib/gtkada2. * Reflected above changes in gtkada2-config. * Explicitly link libgtkada2.so against libgnat-3.15p.so.1, so that libgtkada2-0 depends on libgnat-3.15p-1 (dh_shlibdeps takes care of that). * Same for libgtkada2-gl, libgtkada2-glade, and libgtkada2-gnome. * Restrict architectures to i386 powerpc sparc because gnat only exists there. * libgtkada2-dev now Depends on gnat (>= 3.15p). * The above changes are to comply with Florian Weimer's recommended GNU Ada Environment Specification (http://cert.uni-stuttgart.de/files/ada/gnae) * Build-Depend on perl, needed to generate HTML documentation. * Rebuild the static library without -fPIC. * Bump Standards-Version to 2.6.0 (from 2.5.8) -- Ludovic Brenta Tue, 19 Aug 2003 12:49:31 +0200 libgtkada2 (2.2.0-2) unstable; urgency=low * New support binaries in /usr/bin: gate2, dgate2, gtkada2-config, generate2.pl, and gate2-in.exe. * New binary package libgtkada2-doc with full documentation in ASCII, HTML and Info formats (no PostScript). * Added missing files to /usr/include/gtkada2: *.ad[bs] -- Ludovic Brenta Fri, 1 Aug 2003 17:02:54 +0200 libgtkada2 (2.2.0-1) unstable; urgency=low * Renamed the packages and libraries to libgtkada2 instead of libgtkada1 to prevent conflicts; both versions may be installed. * Compiled with, and build-depends on, gnat-3.15p-1 which I packaged. * Changed the Makefile.in's to use $(ADAC) instead of $(CC) when compiling Ada source code. * Removed package libgtkada-art. -- Ludovic Brenta Mon, 21 Jul 2003 04:39:54 +0200 libgtkada (1.2.12-7) unstable; urgency=low * Fix doc-base. Closes: #137526. -- Samuel Tardieu Thu, 14 Mar 2002 19:31:17 +0100 libgtkada (1.2.12-6) unstable; urgency=low * Fix dependency problems. -- Samuel Tardieu Tue, 19 Feb 2002 10:27:00 +0100 libgtkada (1.2.12-5) unstable; urgency=low * Recompile with GNAT 3.14p. -- Samuel Tardieu Mon, 4 Feb 2002 13:26:36 +0100 libgtkada (1.2.12-4) unstable; urgency=low * Include dgate in the distribution (it is not included by default in upstream package). -- Samuel Tardieu Tue, 6 Nov 2001 12:22:38 +0100 libgtkada (1.2.12-3) unstable; urgency=low * Fix location of gate-in.exe. Closes: #103333. -- Samuel Tardieu Wed, 4 Jul 2001 18:48:34 +0200 libgtkada (1.2.12-2) unstable; urgency=low * Add missing -I in gtkada-config. -- Samuel Tardieu Sat, 16 Jun 2001 13:21:59 +0200 libgtkada (1.2.12-1) unstable; urgency=low * New upstream version. * Reinstate gdialog, but call it gtkada-gdialog. Closes: #94358. -- Samuel Tardieu Thu, 14 Jun 2001 10:50:36 +0200 libgtkada (1.2.11-2) unstable; urgency=low * Create separate packages for libgnomeada and libgtkada_glade, since they drag in huge dependencies that are useless in many cases. Closes: #89799. -- Samuel Tardieu Fri, 16 Mar 2001 13:48:26 +0100 libgtkada (1.2.11-1) unstable; urgency=low * New upstream version. * Use debhelper instead of yada. -- Samuel Tardieu Mon, 12 Mar 2001 18:31:48 +0100 libgtkada (1.2.10-7) unstable; urgency=low * Require gnat (>=3.13p-3) for building so that the correct shlibs information is included when autobuilder pick this package up. -- Samuel Tardieu Mon, 29 Jan 2001 12:29:34 +0100 libgtkada (1.2.10-6) unstable; urgency=low * Make yada executable. Closes: #83137. -- Samuel Tardieu Mon, 22 Jan 2001 14:27:47 +0100 libgtkada (1.2.10-5) unstable; urgency=low * Use libgl-dev instead of mesag-dev in the Build-Depends. -- Samuel Tardieu Wed, 17 Jan 2001 22:14:19 +0100 libgtkada (1.2.10-4) unstable; urgency=low * Change shlibs to reference at least 1.2.10-3, which is binary compatible with this release. -- Samuel Tardieu Thu, 14 Dec 2000 20:06:38 +0100 libgtkada (1.2.10-3) unstable; urgency=low * Dependencies were not correct. * Use new yada. -- Samuel Tardieu Thu, 14 Dec 2000 18:28:18 +0100 libgtkada (1.2.10-2) unstable; urgency=low * Do not install gdialog as it is also part of gnome-utils. Closes: #78998. * Pixbuf is now integrated. Closes: #71353. * Restrict list of platforms to the one of GNAT. Closes: #78631. -- Samuel Tardieu Thu, 7 Dec 2000 14:34:17 +0100 libgtkada (1.2.10-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Tue, 28 Nov 2000 11:37:43 +0100 libgtkada (1.2.8-3) unstable; urgency=low * Use libgdk-pixbuf-dev. Closes: #71353. -- Samuel Tardieu Fri, 27 Oct 2000 19:02:24 +0200 libgtkada (1.2.8-2) unstable; urgency=low * Fix doc installation. Not sure of the fix though. Please check and reopen if needed. Closes: #69569. -- Samuel Tardieu Wed, 30 Aug 2000 13:11:46 +0200 libgtkada (1.2.8-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Thu, 3 Aug 2000 14:54:01 +0200 libgtkada (1.2.7-3) unstable; urgency=low * Recompile to use the latest GNAT. Closes: #65314. -- Samuel Tardieu Wed, 7 Jun 2000 15:55:15 +0200 libgtkada (1.2.7-2) unstable; urgency=low * Suggests glade instead of Recommending it. Closes: #60961. -- Samuel Tardieu Mon, 5 Jun 2000 18:35:17 +0200 libgtkada (1.2.7-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Mon, 15 May 2000 17:29:51 +0200 libgtkada (1.2.4-3) frozen unstable; urgency=low * Change Mesa dependency. Closes: #59590. -- Samuel Tardieu Sun, 5 Mar 2000 00:31:03 +0100 libgtkada (1.2.4-2.1) unstable; urgency=low * NMU to fix RCB. Rebuilt with the latest mesag-dev. Closes: #59590 * Changed depends from mesag-dev to libgl-devel for libgtkada1-dev. * Use --with-lib-GL instead of --with-lib-MesaGL (deprecated). -- Raphael Hertzog Mon, 20 Mar 2000 22:57:18 +0100 libgtkada (1.2.4-2) unstable; urgency=low * Add missing dependency. -- Samuel Tardieu Thu, 23 Dec 1999 15:20:13 +0100 libgtkada (1.2.4-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Mon, 25 Oct 1999 10:59:10 +0200 libgtkada (1.2.3-7) unstable; urgency=low * Recompile to fix a dependency problem in the GNAT package. -- Samuel Tardieu Fri, 22 Oct 1999 15:18:36 +0200 libgtkada (1.2.3-6) unstable; urgency=low * Use reinstated link /usr/lib/libgnat.so. -- Samuel Tardieu Thu, 21 Oct 1999 12:48:55 +0200 libgtkada (1.2.3-5) unstable; urgency=low * Rebuild with GNAT 3.12p. -- Samuel Tardieu Wed, 20 Oct 1999 16:52:28 +0200 libgtkada (1.2.3-4) unstable; urgency=low * Add examples from the tarball. Closes: #45284. -- Samuel Tardieu Mon, 20 Sep 1999 11:00:44 +0200 libgtkada (1.2.3-3) unstable; urgency=low * Fix wrong dependency (Closes: #41705). -- Samuel Tardieu Wed, 21 Jul 1999 13:13:43 +0200 libgtkada (1.2.3-2) unstable; urgency=low * Update standards-version to 3.0.0. -- Samuel Tardieu Tue, 20 Jul 1999 13:34:33 +0200 libgtkada (1.2.3-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Thu, 15 Jul 1999 16:15:44 +0200 libgtkada (1.2.2-1) unstable; urgency=low * New upstream release. * Do not use /usr/libexec anymore. Closes: #40110. -- Samuel Tardieu Thu, 24 Jun 1999 18:09:18 +0200 libgtkada (1.2.1-1) unstable; urgency=low * New upstream release, with much more documentation. -- Samuel Tardieu Mon, 10 May 1999 17:13:10 +0200 libgtkada (1.2.0.1-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Mon, 19 Apr 1999 14:54:57 +0200 libgtkada (0.6-2) unstable; urgency=low * Install gate.ex in /usr/libexec, since it's needed by gate. -- Samuel Tardieu Tue, 30 Mar 1999 22:33:13 +0200 libgtkada (0.6-1) unstable; urgency=low * New upstream release, with two new executables, gate and dgate. * Recompile with GNAT 3.11p-10 in order to work with glibc2.1. -- Samuel Tardieu Mon, 8 Mar 1999 17:02:51 +0100 libgtkada (0.5-2) unstable; urgency=low * Recompile with GNAT 3.11p-9 to get the dependencies right. -- Samuel Tardieu Tue, 23 Feb 1999 20:30:29 +0100 libgtkada (0.5-1) unstable; urgency=low * New upstream release. -- Samuel Tardieu Wed, 3 Feb 1999 18:08:43 +0100 libgtkada (0.4-1) unstable; urgency=low * New upstream release, with a complete reorganization of the Makefile. Patches have been sent to the authors to make it easier to build under a `standard' configuration (e.g, debian). -- Samuel Tardieu Wed, 6 Jan 1999 20:25:06 +0100 libgtkada (0.2.1-1) frozen unstable; urgency=low * New upstream release 0.2.1. Note that this upstream version does not bring any new functionality compared to the previous Debian package, it only includes the Debian-specific patches. That will allow libgtkada0 to be source-unpacked on other architectures working around the dpkg-dev bug that prevents patches to lines starting with "-- " to be applied (Bug#28977). -- Samuel Tardieu Mon, 16 Nov 1998 14:17:05 +0100 libgtkada (0.1a-6) unstable; urgency=low * New upstream bug fixes. -- Samuel Tardieu Tue, 20 Oct 1998 15:46:22 +0200 libgtkada (0.1a-5) unstable; urgency=low * Hopefully last try to get the licence right. This one was minor though. -- Samuel Tardieu Thu, 15 Oct 1998 22:13:34 +0200 libgtkada (0.1a-4) unstable; urgency=low * Licence issues sorted out, thanks to the authors. -- Samuel Tardieu Wed, 14 Oct 1998 19:35:37 +0200 libgtkada (0.1a-3) unstable; urgency=low * Many more upstream fixes. -- Samuel Tardieu Wed, 14 Oct 1998 18:02:50 +0200 libgtkada (0.1a-2) unstable; urgency=low * Apply a lot of fixes sent by the authors. This version is not released yet. -- Samuel Tardieu Tue, 13 Oct 1998 23:08:57 +0200 libgtkada (0.1a-1) unstable; urgency=low * Initial Release. -- Samuel Tardieu Tue, 13 Oct 1998 18:18:21 +0200 Local variables: left-margin: 2 End: debian/gtkada_obj_dynamic/0000755000000000000000000000000012236547250012765 5ustar debian/rules0000755000000000000000000002642712236547250010267 0ustar #!/usr/bin/make -f # debian/rules for libgtkada # Copyright (c) 2003-2012 Ludovic Brenta # Copyright (c) 2011-2013 Nicolas Boulenguez # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # The full text of the GNU General Public License is in the file # /usr/share/common-licenses/GPL-3 on Debian systems. .SUFFIXES: binary binary-arch binary-indep build build-arch build-indep clean: dh $@ --with ada-library # Ignore upstream's build system override_dh_auto_configure: override_dh_auto_build-arch:: # Will receive prerequisites override_dh_auto_build-indep: # Will receive prerequisites override_dh_auto_test: override_dh_auto_install: override_dh_auto_clean:: # Will receive recipes ###################################################################### include /usr/share/dpkg/default.mk include /usr/share/ada/debian_packaging.mk CFLAGS += -Wall -Wextra -fstack-check ADAFLAGS += -Wall -Wextra -fstack-check -gnatVa -gnata -gnatf -gnatn -gnato exported_var_names := ADAFLAGS LDFLAGS \ gtkada_SOVERSION gtkada_LDLIBS \ gnomeada_SOVERSION gnomeada_LDLIBS \ gtkglada_SOVERSION gtkglada_LDLIBS exported_variables = $(foreach v,$(exported_var_names),"-X$(v)=$($(v))") ###################################################################### # We override the dh_ada_library instead of using a file because we # need to export LDLIBS variables. SOVERSIONS will be ignored but need # to be defined. # The override comes very soon, so that every library may append # recipes creating a versioned one for compatibility. override_dh_ada_library:: dh_ada_library $(foreach l,gtkada gtkglada gnomeada, \ KIND=dynamic \ $(foreach v,$(exported_var_names),"$(v)=$($(v))") \ debian/$(l).gpr) ###################################################################### # Template to avoid redundant code for libraries. define library_template # 1: library name, as in libNAME.so.xxx # 1_pkg_config: arguments for pkg-config. # 1_VERSIONED_GPR: if not empty, add a compatibility copy of system gpr file. $(1)_SOVERSION := $(shell sed -n -r 's/^Package: lib$(1)([[:digit:].]+)$$/\1/p' debian/control) $(1)_LDLIBS := `pkg-config --libs-only-l $($(1)_pkg_config)` override_dh_auto_build-arch:: gnatmake -Pdebian/$(1).gpr -XKIND=dynamic $(BUILDER_OPTIONS) $$(exported_variables) gnatmake -Pdebian/$(1).gpr -XKIND=static $(BUILDER_OPTIONS) $$(exported_variables) override_dh_auto_clean:: rm -f debian/$(1)_lib_dynamic/* \ debian/$(1)_lib_static/* \ debian/$(1)_obj_dynamic/* \ debian/$(1)_obj_static/* # The shared library dir only needs to be cleaned once. # For compatibility with previous versions, add a duplicate project # with a versioned name. Of course, this is only possible after # dh_ada_library has created the first one. # The -dev subdir may not exist (for -indep targets). ifneq (,$($(1)_VERSIONED_GPR)) override_dh_ada_library:: if cd debian/lib$(1)*-dev/usr/share/ada/adainclude 2> /dev/null; then \ sed -e "s/library project $(1) is/library project $(1)2 is/" \ -e "s/end $(1);/end $(1)2;/" \ $(1).gpr > $(1)2.gpr; \ fi endif endef # library_template ###################################################################### ########## # gtkada # ########## # The sources, Ada and C, call these C functions: # cairo_* gdk_* g_* g_module_* gtk_* pango_* XWarpPointer # When this list changes, update: # control: Build-Depends # control: Depends for libgtkada*-dev # and this variable: gtkada_pkg_config := cairo gdk-2.0 glib-2.0 gmodule-2.0 gtk+-2.0 pango x11 # In case you are wondering, gmodule is part of libglib-dev. # Compile C files into the object directory, so that gnatlink embeds # them. The project must mention the C language, and we must store # objects from distinct libraries in distinct directories. C_SRC := $(wildcard src/*.c) C_DYNAMIC := $(patsubst src/%.c,debian/gtkada_obj_dynamic/%.o,$(C_SRC)) C_STATIC := $(patsubst src/%.c,debian/gtkada_obj_static/%.o,$(C_SRC)) override_dh_auto_build-arch:: $(C_DYNAMIC) $(C_STATIC) $(C_DYNAMIC) $(C_STATIC): CFLAGS += `pkg-config --cflags-only-I $(gtkada_pkg_config)` $(C_DYNAMIC): debian/gtkada_obj_dynamic/%.o: src/%.c $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ -fPIC $(C_STATIC): debian/gtkada_obj_static/%.o: src/%.c $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ # Will be cleaned as Ada objects. override_dh_auto_build-arch:: src/gtkada-intl.adb src/gtkada-intl.adb: src/gtkada-intl.gpb gnatprep -DGETTEXT_INTL=False -DHAVE_GETTEXT=True $< $@ override_dh_auto_clean:: rm -f src/gtkada-intl.adb $(C_STATIC) $(C_DYNAMIC): src/config.h src/config.h: src/config.h.in touch $@ override_dh_auto_clean:: rm -f src/config.h gtkada_VERSIONED_GPR := true $(eval $(call library_template,gtkada)) gtkada_LDLIBS += -lm # Work-around for gnat bug #717014: gtkada-canvas.adb uses math functions # either built in gcc or provided by -lm, depending on the architecture. ############ # gtkglada # ############ # The only C source files, gdkgl.[ch] and gtkglarea.[ch], are ignored # in favor of the packaged libgtkgl-dev. # The Ada sources call these C functions: # gl[A-Z]* glu[A-Z]* g[dt]k_gl_* # However, no glu function is ever actually called and we can drop the # dependency. But we Build-Depend: libglu-dev to circumvent #720991. # When this list changes, update: # control: Build-Depends # control: Depends for libgtkglada*-dev # and this variable: gtkglada_pkg_config := gl gtkgl-2.0 # It seems that x11 is not needed anymore for gtkglada. $(eval $(call library_template,gtkglada)) ############ # gnomeada # ############ # The sources, only in Ada, call these C functions: bonobo_* gnome_*. # When this list changes, update: # control: Build-Depends # control: Depends for libgnomeada*-dev # and this variable: gnomeada_pkg_config := libbonoboui-2.0 libgnomeui-2.0 gnomeada_VERSIONED_GPR := true $(eval $(call library_template,gnomeada)) ###################################################################### TOOLS := src/tools/obj/gtkada-dialog override_dh_auto_build-arch:: gnatmake -Pdebian/tools.gpr -XKIND=dynamic $(BUILDER_OPTIONS) $(exported_variables) override_dh_auto_clean:: rm -f src/tools/obj/* override_dh_install-arch:: dh_install --package=libgtkada-bin $(TOOLS) usr/bin dh_installman --package=libgtkada-bin docs/gtkada-dialog.1 ###################################################################### GTKADA_CONFIG := debian/gtkada-config GTKADA_CONFIG_VARS := \ DEB_HOST_MULTIARCH \ gtkada_LDLIBS \ gtkada_SOVERSION override_dh_auto_build-arch:: $(GTKADA_CONFIG) override_dh_install-arch:: dh_install --package=libgtkada-bin $(GTKADA_CONFIG) usr/bin dh_installman --package=libgtkada-bin docs/gtkada-config.1 $(GTKADA_CONFIG): %: %.sed sed $< $(foreach v,$(GTKADA_CONFIG_VARS),-e 's/@$(v)@/$($(v))/') > $@ override_dh_auto_clean:: rm -f $(GTKADA_CONFIG) ###################################################################### TESTGTK_TGZ := testgtk.tgz override_dh_auto_build-indep: $(TESTGTK_TGZ) override_dh_install-indep:: dh_installexamples --package=libgtkada-doc $(TESTGTK_TGZ) $(TESTGTK_TGZ): tar czf $@ testgtk override_dh_auto_clean:: rm -f $(TESTGTK_TGZ) ###################################################################### UG_DIR := docs/gtkada_ug UG_TXT := $(UG_DIR)/gtkada_ug.txt override_dh_auto_build-indep: $(UG_TXT) override_dh_install-indep:: dh_installdocs --package=libgtkada-doc $(UG_TXT) $(UG_TXT): %/gtkada_ug.txt: %/gtkada_ug.texi %/hierarchy.txt cd $* && makeinfo --plaintext -o $(notdir $@ $<) override_dh_auto_clean:: rm -f $(UG_TXT) UG_INFO := $(UG_DIR)/gtkada_ug.info override_dh_auto_build-indep: $(UG_INFO) override_dh_install-indep:: dh_installinfo --package=libgtkada-doc $(UG_INFO) # Generated in situ so that makeinfo references the images. This does # not change much as long dh_installinfo dose not embed them. $(UG_INFO): %/gtkada_ug.info: %/gtkada_ug.texi %/boxes.jpg %/hierarchy.jpg %/hierarchy.txt cd $* && makeinfo -o $(notdir $@ $<) sed -i $@ -e \ 's|\(image src="\)\([^"]\+"\)|\1/usr/share/doc/libgtkada-doc/\2|g' override_dh_auto_clean:: rm -f $(UG_INFO) UG_PDF := $(UG_DIR)/gtkada_ug.pdf override_dh_auto_build-indep: $(UG_PDF) override_dh_install-indep:: dh_installdocs --package=libgtkada-doc $(UG_PDF) # Generated in situ so that texi2pdf embeds images. $(UG_PDF): %/gtkada_ug.pdf: %/gtkada_ug.texi %/boxes.jpg %/hierarchy.jpg cd $* && texi2pdf --silent -o $(notdir $@ $<) override_dh_auto_clean:: rm -f $(addprefix $(UG_DIR)/gtkada_ug.,aux cp cps fn ky log pdf pg toc tp vr) UG_HTML := $(UG_DIR)/gtkada_ug.html override_dh_auto_build-indep: $(UG_HTML) override_dh_install-indep:: dh_installdocs --package=libgtkada-doc $(UG_HTML) $(UG_DIR)/boxes.jpg $(UG_DIR)/hierarchy.jpg $(UG_DIR)/gtkada_ug.html: %/gtkada_ug.html: %/gtkada_ug.texi %/boxes.jpg %/hierarchy.jpg cd $* && makeinfo --no-validate --no-split --html -o $(notdir $@ $<) override_dh_auto_clean:: rm -f $(UG_HTML) # fig2dev correctly embeds boxes.gif even from another directory. $(UG_DIR)/boxes.jpg: %.jpg: %.fig %.gif fig2dev -L jpeg $< $@ override_dh_auto_clean:: rm -f $(UG_DIR)/boxes.jpg ###################################################################### # TODO: the reference manual needs generated parts: # docs/gtkada_rm/generated.texi docs/gtkada_rm/generated_menu.texi: # cd docs/gtkada_rm && \ ./generate_doc.pl `find # $(addprefix ../../src/, . generated gnome opengl) -name "*.ads"` ###################################################################### override_dh_compress: dh_compress --package=libgtkada-doc \ --exclude=.glade \ --exclude=.adb --exclude=.ads \ --exclude=.c --exclude=.h \ --exclude=Makefile \ --exclude=.pdf dh_compress --remaining-packages ###################################################################### GET_ORIG_MTN := mtn://www.ada-france.org?com.adacore.gtkada.debian GET_ORIG_DIR := libgtkada GET_ORIG_TGZ := libgtkada.tgz GET_ORIG_TMP := libgtkada-get-orig-XXXXXXXXXX get-orig-source: TMPDIR=$$(mktemp --tmpdir --directory $(GET_ORIG_TMP)) && \ mtn clone -d $$TMPDIR/db.mtn $(GET_ORIG_MTN) -k "" $$TMPDIR/$(GET_ORIG_DIR) && \ (cd $$TMPDIR && tar --create --gzip --exclude="_MTN" $(GET_ORIG_DIR)) > $(GET_ORIG_TGZ) ; \ rm -f -r $$TMPDIR @echo "The file $(GET_ORIG_TGZ) contains the latest Debian snapshot of upstream sources." ###################################################################### RUN_TESTS_TMP := libgtkada-run-tests-XXXXXXXXXX run-tests: ADTTMP=`mktemp --tmpdir --directory $(RUN_TESTS_TMP)` && \ ADTTMP=$$ADTTMP sh debian/tests/link-with-shared 2> $$ADTTMP/stderr; \ status=$$?; cat $$ADTTMP/stderr; \ if test $$status != 0; then \ echo "Test failed: non zero exit status ($$status)."; \ elif test -s $$ADTTMP/stderr; then \ echo "Test failed: activity on stderr."; \ fi; \ rm -f -r $$ADTTMP debian/libgnomeada-dbg.preinst0000644000000000000000000000034512236547250013600 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until 2.24.1-12 reaches oldstable. if [ -h /usr/share/doc/libgnomeada-dbg ]; then rm -f /usr/share/doc/libgnomeada-dbg fi #DEBHELPER# debian/source.lintian-overrides0000644000000000000000000000157412236547250014063 0ustar # The upstream build system is intended for a single-shot build, and # Debian Ada policy requires a static and a shared library. The # autoconf stuff is totally ignored. libgtkada source: ancient-autotools-helper-file config.sub 2001-09-07 libgtkada source: ancient-autotools-helper-file config.guess 2001-09-04 # This dependency has a versioned name per debian-ada-policy, so we # generate it at build time via deb-substvars. This causes a lintian # false positive. libgtkada source: dbg-package-missing-depends libgtkada-dbg libgtkada source: dbg-package-missing-depends libgtkglada-dbg libgtkada source: dbg-package-missing-depends libgnomeada-dbg # Lintian detects that the patch removing the GFDL boilerplate, well, # contains the GFDL boilerplate. # See debian/copyright for the motivations of this patch. libgtkada source: license-problem-gfdl-invariants debian/patches/01-doc.patch debian/libgtkada2.24.1-dev.preinst0000644000000000000000000000037112236547250013746 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until next aliversion and package name change. if [ -h /usr/share/doc/libgtkada2.24.1-dev ]; then rm -f /usr/share/doc/libgtkada2.24.1-dev fi #DEBHELPER# debian/libgtkglada2.24.1-dev.preinst0000644000000000000000000000037512236547250014275 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until next aliversion and package name change. if [ -h /usr/share/doc/libgtkglada2.24.1-dev ]; then rm -f /usr/share/doc/libgtkglada2.24.1-dev fi #DEBHELPER# debian/libgnomeada2.24.1.preinst0000644000000000000000000000036412236547250013514 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until next soversion and package name change. if [ -h /usr/share/doc/libgnomeada2.24.1 ]; then rm -f /usr/share/doc/libgnomeada2.24.1 fi #DEBHELPER# debian/README.source0000644000000000000000000000350012236547250011351 0ustar The latest gtkada source distribution is available on http://libre.adacore.com/libre/download. Because of the licensing changes described below, and to track intermediate releases, the Debian packaging stores upstream sources in the branch com.adacore.gtkada.debian of the www.ada-france.org monotone database. You may find them at http://www.ada-france.org:8081/branch/tags/com.adacore.gtkada.debian or get a tarball containing the latest snapshot with the command # make -f $(PATH_TO_DEBIAN_SOURCES)/debian/rules get-orig-source Licensing changes ----------------- In Debian 3.1 "Sarge", libgtkada2 2.4.0 was licensed under the terms of the GNAT-Modified GNU General Public License (GMGPL). Since Debian 4.0 "Etch", GtkAda is licensed under the terms of the pure GPL. As a consequence, it is no longer legal to distribute proprietary software that incorporates this library. If your program uses GtkAda, and if you wish your program to use licensing terms incompatible with the GPL, you have three choices: - distribute your program in source form only, and require your licensees to build it for themselves. Your sources need not be under GPL, since they are not linked to GtkAda. - contact AdaCore, the upstream author, at sales@adacore.com, and purchase a GMGPL license for GtkAda. - do not distribute your program at all. You may be tempted to retrieve the sources from AdaCore's CVS repository. Be warned that doing so will still grant you a pure GPL license, despite the fact that AdaCore have not yet adjusted the licensing boilerplate in source files. In Debian, the "special exception" language has been removed only to remove confusion. The actual license is a decision of AdaCore. Please contact them at libre@adacore.com for any clarification. -- Nicolas Boulenguez , Sat, 13 Jul 2013 23:47:42 +0200 debian/docs0000644000000000000000000000020412236547250010043 0ustar # Manpage says that debian/README.Debian should be installed by # default, but it is not. debian/README.Debian debian/README.source debian/patches/0000755000000000000000000000000012236547250010623 5ustar debian/patches/include_only_glib_h.patch0000644000000000000000000000065612236547250015643 0ustar Author: Ludovic Brenta Subject: Including invidiual glib headers has been deprecated for several years. Bug-Debian: http://bugs.debian.org/665570 Index: b/src/misc.c =================================================================== --- a/src/misc.c +++ b/src/misc.c @@ -29,8 +29,6 @@ #include #include -#include -#include #include debian/patches/example_makefiles.patch0000644000000000000000000004111312236547250015317 0ustar Description: Adapt the example Makefiles to Debian This patch is Debian-specific as it adjusts the build infrastructure of the examples to the Debian paths and project files, which are much simpler to use than upstream's. Author: Olivier Henley Forwarded: not-needed Reviewed-By: Ludovic Brenta Last-Update: 2010-07-08 Index: b/examples/composite_widget/composite_widget.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/composite_widget/composite_widget.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project CompositeWidget is + for Main use ("main.adb"); +end CompositeWidget; Index: b/examples/composite_widget/Makefile =================================================================== --- a/examples/composite_widget/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/composite_widget/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,8 +1,9 @@ all: - gnatmake -g -gnata -gnaty -gnatwu main `gtkada-config` + gnatmake -Pcomposite_widget + run: ./main clean: - ${RM} main *.o *.ali + gnat clean -Pcomposite_widget Index: b/examples/display_switch/display_switch.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/display_switch/display_switch.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Display_Switch is + for Main use ("test_display_switch.adb"); +end Display_Switch; Index: b/examples/display_switch/Makefile =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/display_switch/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,8 @@ +all: + gnatmake -Pdisplay_switch + +run: + ./test_display_switch + +clean: + gnat clean -Pdisplay_switch Index: b/examples/doublebuffer/anim2.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/doublebuffer/anim2.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Anim2 is + for Main use ("anim2.adb"); +end Anim2; Index: b/examples/doublebuffer/anim.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/doublebuffer/anim.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Anim is + for Main use ("anim.adb"); +end Anim; Index: b/examples/doublebuffer/main_full_test.adb =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/doublebuffer/main_full_test.adb 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,10 @@ +with Full_Test; use Full_Test; +with Gtk.Main; use Gtk.Main; + +procedure Main_Full_Test is +begin + Gtk.Main.Set_Locale; + Gtk.Main.Init; + Full_Test.Init; + Gtk.Main.Main; +end Main_Full_Test; Index: b/examples/doublebuffer/main_full_test.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/doublebuffer/main_full_test.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Main_Full_Test is + for Main use ("main_full_test.adb"); +end Main_Full_Test; Index: b/examples/doublebuffer/Makefile =================================================================== --- a/examples/doublebuffer/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/doublebuffer/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,16 +1,13 @@ -all: parameters anim anim2 - -GNAT_FLAGS = -g -gnata -gnatwu - -parameters:: - gnatmake $(GNAT_FLAGS) parameters `gtkada-config` - -anim:: - gnatmake $(GNAT_FLAGS) anim `gtkada-config` - -anim2:: - gnatmake $(GNAT_FLAGS) anim2 `gtkada-config` - +all: + gnatmake -Panim + gnatmake -Panim2 + gnatmake -Pmain_full_test + +run: + ./anim + ./anim2 + ./main_full_test clean: - ${RM} *.o *.ali anim parameters anim2 - + gnat clean -Panim + gnat clean -Panim2 + gnat clean -Pmain_full_test Index: b/examples/dynamic_cast/dynamic_cast.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/dynamic_cast/dynamic_cast.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Dynamic_Cast is + for Main use ("dynamic.adb"); +end Dynamic_Cast; Index: b/examples/dynamic_cast/Makefile =================================================================== --- a/examples/dynamic_cast/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/dynamic_cast/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,6 +1,9 @@ all: - gnatmake -g -gnata -gnatwu dynamic `gtkada-config` + gnatmake -Pdynamic_cast + +run: + ./dynamic clean: - ${RM} *.o *.ali b~* dynamic + gnat clean -Pdynamic_cast Index: b/examples/gtk_examples/Makefile =================================================================== --- a/examples/gtk_examples/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/gtk_examples/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,9 +1,9 @@ -EXAMPLES=scribble +all: + gnatmake -Pscribble -all: ${EXAMPLES} +run: + ./scribble -scribble:: - gnatmake -g -gnata -gnatwu $@ `gtkada-config` -clean:: - ${RM} *.o *.ali scribble b~* +clean: + gnat clean -Pscribble Index: b/examples/gtk_examples/scribble.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/gtk_examples/scribble.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Scribble is + for Main use ("scribble.adb"); +end Scribble; Index: b/examples/images/README =================================================================== --- a/examples/images/README 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/images/README 2011-10-04 00:58:44.000000000 +0200 @@ -2,6 +2,3 @@ them on the screen. It also reacts to mouse events to provide an interactive selection rectangle. -How to build the demos: - > gnatmake -Prect - Index: b/examples/images/rect.adb =================================================================== --- a/examples/images/rect.adb 2011-10-03 18:31:56.000000000 +0200 +++ b/examples/images/rect.adb 2011-10-04 00:58:44.000000000 +0200 @@ -281,7 +281,7 @@ -- error code of course, and provide fallbacks. -- Note that at this point the image has not been drawn to the screen - Gdk_New_From_File (Pix, "../../testgtk/alps.png", Error); + Gdk_New_From_File (Pix, "Ada_Lovelace1.jpg", Error); -- Connect to the relevant signals Index: b/examples/Makefile =================================================================== --- a/examples/Makefile 2011-10-03 18:31:56.000000000 +0200 +++ b/examples/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,4 +1,4 @@ -include ../src/Makefile.common +#include ../src/Makefile.common examples=$(prefix)/share/examples/gtkada/ @@ -15,7 +15,6 @@ export PATH:=${prefix}/bin:${PATH} DIRECTORIES=base_widget \ - calendar_combo \ composite_widget \ doublebuffer \ documentation \ Index: b/examples/powergnu/file.tst =================================================================== --- a/examples/powergnu/file.tst 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/powergnu/file.tst 2011-10-04 00:58:44.000000000 +0200 @@ -1 +1,2 @@ - +Ada_Lovelace1.jpg +Ada_Lovelace2.jpg Index: b/examples/powergnu/Makefile =================================================================== --- a/examples/powergnu/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/powergnu/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,13 +1,8 @@ -CFLAGS = -g -O2 -gnata +all: + gnatmake -Ppowergnu -EXEC = power - -all: $(EXEC) - -power: force - gnatmake -m -gnatwu $(CFLAGS) $(EXEC) `gtkada-config` - -force: +run: + ./power file.tst clean: - rm -f *.o *.ali *~ b~* $(EXEC) + gnat clean -Ppowergnu Index: b/examples/powergnu/makefile2 =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/powergnu/makefile2 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,13 @@ +CFLAGS = -g -O2 -gnata + +EXEC = power + +all: $(EXEC) + +power: force + gnatmake -m -gnatwu $(CFLAGS) $(EXEC) `gtkada-config` + +force: + +clean: + rm -f *.o *.ali *~ b~* $(EXEC) Index: b/examples/powergnu/powergnu.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/powergnu/powergnu.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project PowerGnu is + for Main use ("power.adb"); +end PowerGnu; Index: b/examples/tooltips/Makefile =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tooltips/Makefile 2011-10-04 01:00:06.000000000 +0200 @@ -0,0 +1,8 @@ +all: + gnatmake -Ptooltips + +run: + ./tooltips + +clean: + gnat clean -Ptooltips Index: b/examples/tooltips/tooltips.gpr =================================================================== --- a/examples/tooltips/tooltips.gpr 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tooltips/tooltips.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -4,9 +4,9 @@ for Main use ("tooltips.adb"); - package Compiler is - for Default_Switches ("ada") use ("-gnat05"); - end Compiler; + --package Compiler is + -- for Default_Switches ("ada") use ("-gnat05"); + --end Compiler; end Tooltips; Index: b/examples/tutorial/gtkdial/gtkdial.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/gtkdial/gtkdial.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,7 @@ +-- The following with clause is the only thing necessary to compile and link +-- a GtkAda application + +with "gtkada"; +project GtkDial is + for Main use ("dial_test.adb"); +end GtkDial; Index: b/examples/tutorial/gtkdial/Makefile =================================================================== --- a/examples/tutorial/gtkdial/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/gtkdial/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,5 +1,7 @@ -all: force - gnatmake -g -gnata -gnaty -gnatwu dial_test `gtkada-config` +all: + gnatmake -Pgtkdial +run: + ./dial_test clean: - rm -f *.o *~ *.ali dial_test -force: + gnat clean -Pgtkdial + Index: b/examples/tutorial/helloworld/helloworld.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/helloworld/helloworld.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project HelloWorld is + for Main use ("hello.adb"); +end HelloWorld; Index: b/examples/tutorial/helloworld/Makefile =================================================================== --- a/examples/tutorial/helloworld/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/helloworld/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,5 +1,6 @@ -all: force - gnatmake -g -gnata -gnaty -gnatwu hello `gtkada-config` +all: + gnatmake -Phelloworld +run: + ./hello clean: - rm -f *.o *~ *.ali hello -force: + gnat clean -Phelloworld Index: b/examples/tutorial/helloworld2/helloworld2.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/helloworld2/helloworld2.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project HelloWorld2 is + for Main use ("hello2.adb"); +end HelloWorld2; Index: b/examples/tutorial/helloworld2/Makefile =================================================================== --- a/examples/tutorial/helloworld2/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/helloworld2/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,5 +1,8 @@ -all: force - gnatmake -g -gnata -gnaty -gnatwu hello2 `gtkada-config` +all: + gnatmake -Phelloworld2 + +run: + ./hello2 + clean: - rm -f *.o *~ *.ali hello2 -force: + gnat clean -Phelloworld2 Index: b/examples/tutorial/Makefile =================================================================== --- a/examples/tutorial/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,4 +1,4 @@ -all: force +all: make -C gtkdial all make -C helloworld all make -C helloworld2 all @@ -14,4 +14,3 @@ make -C simple clean make -C table clean make -C tictactoe clean -force: Index: b/examples/tutorial/packbox/Makefile =================================================================== --- a/examples/tutorial/packbox/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/packbox/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,9 +1,10 @@ -all: force - gnatmake -g -gnata -gnatwu packbox_test `gtkada-config` -run: all - ./packbox_text 1 - ./packbox_text 2 - ./packbox_text 3 +all: + gnatmake -Ppackbox + +run: + ./packbox_test 1 + ./packbox_test 2 + ./packbox_test 3 clean: - rm -f *.o *~ *.ali packbox_test -force: + gnat clean -Ppackbox + Index: b/examples/tutorial/packbox/packbox.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/packbox/packbox.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project PackBox is + for Main use ("packbox_test.adb"); +end PackBox; Index: b/examples/tutorial/simple/Makefile =================================================================== --- a/examples/tutorial/simple/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/simple/Makefile 2011-10-04 01:00:23.000000000 +0200 @@ -1,5 +1,8 @@ -all: force - gnatmake -g -gnata -gnaty -gnatwu simple `gtkada-config` -clean: - rm -f *.o *~ *.ali simple -force: +all: + gnatmake -Psimple + +run: + ./simple + +clean: + gnat clean -Psimple Index: b/examples/tutorial/simple/simple.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/simple/simple.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Simple is + for Main use ("simple.adb"); +end Simple; Index: b/examples/tutorial/table/Makefile =================================================================== --- a/examples/tutorial/table/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/table/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,5 +1,8 @@ -all: force - gnatmake -g -gnata -gnaty -gnatwu table_test `gtkada-config` +all: + gnatmake -Ptable + +run: + ./table_test + clean: - rm -f *.o *~ *.ali table_test -force: + gnat clean -Ptable Index: b/examples/tutorial/table/table.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/table/table.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project Table is + for Main use ("table_test.adb"); +end Table; Index: b/examples/tutorial/tictactoe/Makefile =================================================================== --- a/examples/tutorial/tictactoe/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/tutorial/tictactoe/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,5 +1,8 @@ -all: force - gnatmake -g -gnata -gnaty -gnatwu ttt_test `gtkada-config` +all: + gnatmake -Ptictactoe + +run: + ./ttt_test + clean: - rm -f *.o *~ *.ali ttt_test -force: + gnat clean -Ptictactoe Index: b/examples/tutorial/tictactoe/tictactoe.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/tutorial/tictactoe/tictactoe.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,5 @@ +with "gtkada"; +project TicTacToe is + for Main use ("ttt_test.adb"); +end TicTacToe; + Index: b/examples/user_data/Makefile =================================================================== --- a/examples/user_data/Makefile 2011-10-03 17:42:38.000000000 +0200 +++ b/examples/user_data/Makefile 2011-10-04 00:58:44.000000000 +0200 @@ -1,5 +1,9 @@ all: - gnatmake test_handlers `gtkada-config` + gnatmake -Puser_data + +run: + ./test_handlers + clean: - ${RM} *.o *.ali b~* test_handlers + gnat clean -Puser_data Index: b/examples/user_data/user_data.gpr =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/examples/user_data/user_data.gpr 2011-10-04 00:58:44.000000000 +0200 @@ -0,0 +1,4 @@ +with "gtkada"; +project User_Data is + for Main use ("test_handlers.adb"); +end User_Data; debian/patches/series0000644000000000000000000000020512236547250012035 0ustar 01-doc.patch 04-testgtk.patch example_makefiles.patch avoid_hardening_flags_errors.patch include_only_glib_h.patch no_gtkextra.patch debian/patches/no_gtkextra.patch0000644000000000000000000001531012236547250014171 0ustar Author: lbrenta@debian.org Description: do not build gtkextra Libgtkextra-x11 is dead upstream, and not packaged in Debian anymore. This source tree contains a copy of the C sources, we do not want it.. Index: b/testgtk/main_windows.adb =================================================================== --- a/testgtk/main_windows.adb +++ b/testgtk/main_windows.adb @@ -102,9 +102,6 @@ with Create_Paned; with Create_Pixbuf; with Create_Pixmap; -with Create_Plot; -with Create_Plot_3D; -with Create_Plot_Realtime; with Create_Preview_Color; with Create_Preview_Gray; with Create_Print; @@ -117,7 +114,6 @@ with Create_Scroll_Test; with Create_Selection; with Create_Size_Groups; -with Create_Sheet; with Create_Sources; with Create_Spin; with Create_Splittable; @@ -320,12 +316,6 @@ Create_Paned.Help'Access), (NS ("pixmap"), Base, Create_Pixmap.Run'Access, Create_Pixmap.Help'Access), - (NS ("plot"), Complex, Create_Plot.Run'Access, - Create_Plot.Help'Access), - (NS ("plot 3D"), Complex, Create_Plot_3D.Run'Access, - Create_Plot_3D.Help'Access), - (NS ("plot realtime"), Complex, Create_Plot_Realtime.Run'Access, - Create_Plot_Realtime.Help'Access), (NS ("properties"), Misc, null, null), (NS ("preview color"), Gimp, Create_Preview_Color.Run'Access, Create_Preview_Color.Help'Access), @@ -353,8 +343,6 @@ (NS ("selection"), Complex, Create_Selection.Run'Access, Create_Selection.Help'Access), (NS ("shapes"), Misc, null, null), - (NS ("sheet"), Complex, Create_Sheet.Run'Access, - Create_Sheet.Help'Access), (NS ("size groups"), Box, Create_Size_Groups.Run'Access, Create_Size_Groups.Help'Access), (NS ("event sources"), Misc, Create_Sources.Run'Access, Index: b/testgtk/common.adb =================================================================== --- a/testgtk/common.adb +++ b/testgtk/common.adb @@ -25,8 +25,6 @@ with Gtk.Menu; use Gtk.Menu; with Gtk.Radio_Menu_Item; use Gtk.Radio_Menu_Item; with Gtk.Enums; use Gtk.Enums; -with Gtk.Extra.Plot; use Gtk.Extra.Plot; -with Gtk.Extra.Plot_Data; use Gtk.Extra.Plot_Data; with Gdk.Color; use Gdk.Color; with Ada.Strings.Fixed; @@ -100,89 +98,4 @@ return Ada.Strings.Fixed.Trim (Gint'Image (I), Ada.Strings.Left); end Image_Of; - --------------------------------- - -- Set_Default_Plot_Attributes -- - --------------------------------- - - procedure Set_Default_Plot_Attributes - (Plot : access Gtk_Plot_Record'Class) is - begin - Legends_Set_Attributes - (Plot, "Helvetica", 6, - Black (Get_Default_Colormap), White (Get_Default_Colormap)); - Axis_Set_Labels_Attributes - (Get_Axis (Plot, Axis_Top), - Font => "Helvetica", - Height => 4, - Angle => Angle_0, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - Axis_Set_Labels_Attributes - (Get_Axis (Plot, Axis_Bottom), - Font => "Helvetica", - Height => 4, - Angle => Angle_0, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - Axis_Set_Labels_Attributes - (Get_Axis (Plot, Axis_Left), - Font => "Helvetica", - Height => 4, - Angle => Angle_90, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - Axis_Set_Labels_Attributes - (Get_Axis (Plot, Axis_Right), - Font => "Helvetica", - Height => 4, - Angle => Angle_90, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - - Axis_Title_Set_Attributes - (Get_Axis (Plot, Axis_Top), - Font => "Helvetica", - Height => 6, - Angle => Angle_0, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - Axis_Title_Set_Attributes - (Get_Axis (Plot, Axis_Bottom), - Font => "Helvetica", - Height => 6, - Angle => Angle_0, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - Axis_Title_Set_Attributes - (Get_Axis (Plot, Axis_Left), - Font => "Helvetica", - Height => 6, - Angle => Angle_90, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - Axis_Title_Set_Attributes - (Get_Axis (Plot, Axis_Right), - Font => "Helvetica", - Height => 6, - Angle => Angle_90, - Foreground => Black (Get_Default_Colormap), - Background => White (Get_Default_Colormap), - Transparent => True, - Justification => Justify_Left); - end Set_Default_Plot_Attributes; - end Common; Index: b/testgtk/common.ads =================================================================== --- a/testgtk/common.ads +++ b/testgtk/common.ads @@ -36,7 +36,6 @@ with Gtk.Window; use Gtk.Window; with Gtkada.Types; use Gtkada.Types; with Interfaces.C.Strings; -with Gtk.Extra.Plot; package Common is @@ -81,10 +80,6 @@ -- Returns the image of the given Gint. The leading spaces are -- stripped. - procedure Set_Default_Plot_Attributes - (Plot : access Gtk.Extra.Plot.Gtk_Plot_Record'Class); - -- Set the default attributes for a plot (fonts,...) - package ICS renames Interfaces.C.Strings; Book_Open_Xpm : ICS.chars_ptr_array := (ICS.New_String ("16 16 4 1"), debian/patches/04-testgtk.patch0000644000000000000000000000663612236547250013565 0ustar Author: Ludovic Brenta Forwarded: not-needed Description: make a tarball from testgtk examples Upstream examples, in directory testgtk, are intended to be built inside the source tree. This patch adds a project and a make file, so that the tarball provided by the doc package demonstrates how every user may build a program depending on gtkada. Index: b/testgtk/testgtk.gpr =================================================================== --- a/testgtk/testgtk.gpr 2011-09-04 00:53:42.000000000 +0200 +++ b/testgtk/testgtk.gpr 2011-09-04 01:27:43.000000000 +0200 @@ -1,25 +1,18 @@ -with "../src/gtkada_src"; -with "../shared"; -with "opengl/testgtk_opengl"; - +with "gtkada"; +with "gtkglada"; project TestGtk is - - for Languages use ("Ada"); for Main use ("testgtk.adb", "testcairo.adb"); - for Source_Dirs use ("./"); - for Object_Dir use "obj/"; + for Source_Dirs use (".", "opengl"); + for Object_Dir use "obj"; for Exec_Dir use "."; - package Builder is - for Default_Switches ("Ada") use Shared.Builder'Default_Switches ("Ada"); - end Builder; - package Compiler is - for Default_Switches ("Ada") use - ("-gnatQ", "-gnatwa", "-gnatay3abcefhiklmnprt", "-g", "-O1"); + for Default_Switches ("Ada") use ("-g", "-O1", "-gnatafo"); end Compiler; - - package Binder renames Shared.Binder; - package IDE renames Shared.IDE; - + package Binder is + for Default_Switches ("Ada") use ("-E"); + end Binder; + package Linker is + for Default_Switches ("Ada") use ("-lgtkglada", "-lGLU", "obj/lw.o"); + end Linker; end TestGtk; Index: b/testgtk/testgtk.mak =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ b/testgtk/testgtk.mak 2011-09-04 01:17:38.000000000 +0200 @@ -0,0 +1,47 @@ +# -*- Makefile -*- to build testgtk +# Copyright (c) 2004 Ludovic Brenta + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA + + + +# On Debian GNU/Linux, the preferred way to build Ada software is to +# use GNAT project files. This simple Makefile compiles the C portion +# of testgtk and delegates the rest of processing to such a project +# file. + +# The Makefile in this directory is unchanged from the upstream +# sources; however, it will not work because it assumes that it +# resides in the GtkAda source directory. Use this file instead. + +.SUFFIXES: + +C_OBJECTS=$(patsubst opengl/%.c,obj/%.o,$(wildcard opengl/*.c)) +CFLAGS=-g -O2 + +all: obj $(C_OBJECTS) opengl/view_gl.adb force + gnatmake -Ptestgtk.gpr + +obj: + -mkdir -p obj + +obj/%.o: opengl/%.c + gcc -c $(CFLAGS) -o $@ $< `pkg-config --cflags glib-2.0` + +opengl/%.adb: opengl/%.gpb + gnatprep -r -c -DHAVE_GL=True -DWIN32=False $< $@ + +.PHONY: force debian/patches/avoid_hardening_flags_errors.patch0000644000000000000000000000305312236547250017536 0ustar Description: patch some security problems Author: Nicolas Boulenguez Debian now compiles with hardening flags by defaults, and fails with non-static printf-like formats. Index: b/src/misc.c =================================================================== --- a/src/misc.c 2011-10-03 18:31:56.000000000 +0200 +++ b/src/misc.c 2011-10-04 01:06:33.000000000 +0200 @@ -407,7 +407,7 @@ GLogLevelFlags log_level, const gchar *format) { - g_log (log_domain, log_level, format); + g_log (log_domain, log_level, "%s", format); } void @@ -4290,14 +4290,14 @@ ada_gtk_message_dialog_format_secondary_markup (GtkMessageDialog* dialog, gchar* msg) { - gtk_message_dialog_format_secondary_markup (dialog, msg); + gtk_message_dialog_format_secondary_markup (dialog, "%s", msg); } void ada_gtk_message_dialog_format_secondary_text (GtkMessageDialog* dialog, gchar* msg) { - gtk_message_dialog_format_secondary_text (dialog, msg); + gtk_message_dialog_format_secondary_text (dialog, "%s", msg); } GtkWidget* @@ -4308,7 +4308,7 @@ GtkButtonsType buttons, const gchar *message) { - return gtk_message_dialog_new (parent, flags, type, buttons, message); + return gtk_message_dialog_new (parent, flags, type, buttons, "%s", message); } GtkWidget* @@ -4320,7 +4320,7 @@ const gchar *message) { return gtk_message_dialog_new_with_markup - (parent, flags, type, buttons, message); + (parent, flags, type, buttons, "%s", message); } /************************************************************** debian/patches/01-doc.patch0000644000000000000000000002535212236547250012636 0ustar Author: Ludovic Brenta Author: Nicolas Boulenguez Description: adapt documentation to Debian guidelines * Adjust the info and man page files to Debian. * Move the Info documentation to "GNU Ada Tools". * Correct the license of the documentation from GFDL with invariant sections to GPLv2 or later, as required by upstream who claims that everything on libre.adacore.com, including the Subversion repository, is pure GPL. * embed boxes.jpg in html files (generated with fig2dev -L jpeg boxes.eps boxes.jpg, boxes.gif should be here). * Fix incorrect description of --prefix option of gtkada-config. =================================================================== --- a/docs/gtkada-config.1 +++ b/docs/gtkada-config.1 @@ -1,4 +1,4 @@ -.TH GTKADA-CONFIG 1 "29 March 1999" "GNU Debian/Linux" "GtkAda programming manual" +.TH GTKADA-CONFIG 1 "16 October 2011" "Debian GNU/Linux" "GtkAda programming manual" .SH NAME gtkada-config - script to get information about the installed version of GTKADA .SH SYNOPSIS @@ -6,38 +6,40 @@ [\-\-prefix\fI[=DIR]\fP] [\-\-version] [\-\-libs] [\-\-cflags] [\-\-static] .SH DESCRIPTION .PP -\fIgtkada-config\fP is a tool that is used to configure to determine +\fIgtkada-config\fR is a tool that is used to configure to determine the compiler and linker flags that should be used to compile -and link programs that use \fIGTKADA\fP. -. +and link programs that use GtkAda. +To compile, bind and link a program against GtkAda, you invoke +\fBgnatmake\fR like this: + + gnatmake my_prog `gtkada-config` + .SH OPTIONS -.l -\fIgtkada-config\fP accepts the following options: +\fBgtkada-config\fR accepts the following options: .TP 8 .B \-\-version -Print the currently installed version of \fIGTKADA\fP on the standard output. +Print the currently installed version of \fIGTKADA\fR on the standard output. .TP 8 .B \-\-libs -Print the linker flags that are necessary to link a \fIGTKADA\fP program. +Print the linker flags that are necessary to link a \fIGTKADA\fR program. .TP 8 .B \-\-cflags -Print the compiler flags that are necessary to compile a \fIGTKADA\fP program. +Print the compiler flags that are necessary to compile a \fIGTKADA\fR program. .TP 8 .B \-\-static -Print the flags that are necessary to statically build a \fIGTKADA\fP program. +Print the flags that are necessary to statically build a \fIGTKADA\fR program. .TP 8 -.B \-\-prefix=PREFIX -If specified, use PREFIX instead of the installation prefix that \fIGTKADA\fP -was built with when computing the output for the \-\-cflags and -\-\-libs options. This option must be specified -before any \-\-libs or \-\-cflags options. -.SH "SEE ALSO" -.BR gate (1), -.BR dgate (1), -.BR glade (1) +.B \-\-prefix +Print the path prefix where \fIGTKADA\fR is installed. + +.SH NOTES +In Debian GNU/Linux, a GNAT project file is available as an +alternative; see \fB/usr/share/ada/adainclude/gtkada.gpr\fR. + .SH "COPYRIGHT FOR THIS MAN PAGE" This man page has been written by Samuel Tardieu -for the Debian GNU/Linux distribution, from informations given +and modified by Ludovic Brenta and Nicolas Boulenguez +for the Debian GNU/Linux distribution, from information given by the GtkAda authors Emmanuel Briot, Joel Brobecker and Arnaud Charlet. Permission to use, copy, modify, and distribute this documentation @@ -45,4 +47,3 @@ provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. - --- /dev/null +++ b/docs/gtkada-dialog.1 @@ -0,0 +1,49 @@ +.TH GTKADA2-DIALOG 1 "25 Nov 2003" "Debian GNU/Linux" "GtkAda 2 programming manual" +.SH NAME +gtkada2-dialog \- Display a GTK+ dialog box from the command line. +.SH SYNOPSIS +gtkada2-dialog [\fIdialog_type\fR [\fIjustification\fR]] +.SH DESCRIPTION +\fBgtkada2-dialog\fR displays the contents of its standard input in a GTK+ +dialog box. This is the version supplied with GtkAda version 2, and +it uses GTK+ 2 widgets. +.SH OPTIONS +.TP 5 +.I dialog_type +The type of dialog box desired. Possible values are: +.RS +.TP 13 +.BR warning +A message box with an exclamation point. +.TP +.BR error +A message box with a red stop sign. +.TP +.BR information +A message box with an "information" sign: white "i" on blue +background. +.TP +.BR confirmation +A message box with a question mark. +.TP +.BR custom +A message box with no pixmap and a user-defined caption. +.RE + +The default type is \fBinformation\fR. + +.TP +.I justification +The type of justification desired for the text of the message. +Possible values are \fBjustify_left\fR, \fBjustify_right\fR, +\fBjustify_center\fR and \fBjustify_fill\fR. The default is +\fBjustify_center\fR. +.SH COPYRIGHT FOR THIS MAN PAGE +This man page has been written by Ludovic Brenta for the Debian +GNU/Linux distribution, from information given by the GtkAda authors +Emmanuel Briot, Joel Brobecker and Arnaud Charlet. + +Permission to use, copy, modify, and distribute this documentation for +any purpose and without fee is hereby granted, provided that the above +copyright notice appear in all copies and that both that copyright +notice and this permission notice appear in supporting documentation. --- a/docs/gtkada_ug/gtkada_ug.texi +++ b/docs/gtkada_ug/gtkada_ug.texi @@ -12,11 +12,34 @@ @c o @c oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -@dircategory User Interface Toolkit +@dircategory GNU Ada Tools @direntry * GtkAda_Ug: (gtkada_ug). Ada graphical tookit based on GTK+ (User's Guide) @end direntry +@copying +Copyright @copyright{} 1998-2000, Emmanuel Briot, Joel Brobecker, Arnaud Charlet + +Copyright @copyright{} 2000-2011, AdaCore + +This document is free; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This document is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +A copy of the license is included in the section entitled +``GNU General Public License''. +@end copying + @set GtkAdaVersion 2.24.1 @titlepage @@ -28,19 +51,8 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1998-2000, Emmanuel Briot, Joel Brobecker, Arnaud Charlet -Copyright @copyright{} 2000-2011, AdaCore - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GtkAda User's Guide'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled -``GNU Free Documentation License''. +@insertcopying @end titlepage @ifinfo @@ -55,19 +67,7 @@ Date: $Date: 2011-06-15 11:11:14 +0200 (Wed, 15 Jun 2011) $ -Copyright @copyright{} 1998-2000, Emmanuel Briot, Joel Brobecker, Arnaud Charlet - -Copyright @copyright{} 2000-2011, AdaCore - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GtkAda User's Guide'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled -``GNU Free Documentation License''. +@insertcopying @menu * Introduction:: @@ -85,7 +85,7 @@ * Debugging GtkAda applications:: * How to report bugs:: * Bibliography:: -* GNU Free Documentation License:: +* GNU General Public License:: @detailmenu --- The Detailed Node Listing --- @@ -691,9 +691,7 @@ contains a Gtk_Box, itself divided into two boxes and a Gtk_Separator, and so on. -@iftex @image{boxes, 14cm} -@end iftex Altough this may seem more complicated than setting absolute positions for children, this is the simplest way to automatically handle the @@ -1976,10 +1974,14 @@ @end itemize @c ********************************** -@c * GNU Free Documentation License * +@c * GNU General Public License * @c ********************************** -@include gfdl.texi -@c GNU Free Documentation License +@node GNU General Public License +@appendix GNU General Public License +@cindex GNU General Public License +@cindex License, GNU General Public License +@verbatiminclude ../../COPYING +@c GNU General Public License @c @printindex cp @contents --- a/docs/gtkada_rm/gtkada_rm.texi +++ b/docs/gtkada_rm/gtkada_rm.texi @@ -11,15 +11,34 @@ @c o @c oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -@dircategory User Interface Toolkit +@dircategory GNU Ada Tools @direntry -* GtkAda_Rm: (gtkada_rm). Ada graphical tookit based on GTK+ (Reference Manual) +* GtkAda Reference Manual: (gtkada_rm). Ada graphical tookit based on GTK+ (Reference Manual) @end direntry @c -------------------------------------------- @finalout @c -------------------------------------------- +@copying +Copyright @copyright{} 1998-2000, Emmanuel Briot, Joel Brobecker, Arnaud Charlet + +Copyright @copyright{} 2000-2009, AdaCore + +This document is free; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This document is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +@end copying @titlepage @title GtkAda Reference Manual @@ -30,9 +49,7 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1998-2000, Emmanuel Briot, Joel Brobecker, Arnaud Charlet - -Copyright @copyright{} 2000-2011, AdaCore +@insertcopying @end titlepage @@ -40,6 +57,8 @@ @node Top @top GtkAda Reference Manual +@insertcopying + @include generated_menu.texi @end ifnottex debian/libgtkada-dbg.preinst0000644000000000000000000000034112236547250013254 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until 2.24.1-12 reaches oldstable. if [ -h /usr/share/doc/libgtkada-dbg ]; then rm -f /usr/share/doc/libgtkada-dbg fi #DEBHELPER# debian/README.Debian0000644000000000000000000000421412236547250011236 0ustar libgtkada for Debian --------------------- This package follows the convention for Ada library packages in Debian. Each library has an ALIVERSION and a SOVERSION. Your computer'system is designated by a GNU_TRIPLET like x86_32/linux/gnu for example. The separate libgtkaALIVERSION-dev package provides tools for programmers writing software using the library. The Ada source files are in /usr/share/ada/adainclude/gtkada. The Ada library information files are in /usr/lib/GNU_TRIPLET/ada/adalib/gtkada. There is, in addition, a GNAT project file in /usr/share/ada/adainclude/gtkada.gpr. All these settings, as well as linker options, are provided by the gtkada-config tool. Thus, there are two ways to use gtkada in your programs: 1. gnatmake your_main_program.adb $(gtkada-config) 2. Write a project file for your program. Use the project file for gtkada as explained in the comments in the project file. The documentation and examples are provided by libgtkada-doc package in /usr/share/doc/libgtkada-doc. The runtime debug symbols are provided by libgtkada-dbg package. All that remains true for libgtkadagl (optional OpenGL support) and libgnomeada (optional GNOME support). A GTK equivalent of the dialog command-line utility is provided in libgtkada-bin. Because the Debian packaging compiles GtkAda with Debian GCC instead of GNAT GPL Edition, I expect that they are *not* binary-compatible with AdaCore's binaries. Therefore the sonames of the libraries are changed. Licensing changes ----------------- See README.source. Notes about testgtk ------------------- The Debian package libgtkada-doc provides the sources for testgtk in /usr/share/doc/libgtkada-doc/examples/testgtk.tar.gz. This tarball also contains two Debian-specific files that make it easy to compile testgtk on Debian systems, like this: $ mkdir -p ~/src $ cd ~/src $ tar xzf /usr/share/doc/libgtkada-doc/examples/testgtk.tar.gz $ cd testgtk $ make -f testgtk.mak The upstream Makefile is also provided but won't work out of the box because it assumes that the build takes place within the GtkAda source tree. -- Nicolas Boulenguez , Sat, 13 Jul 2013 23:48:28 +0200 debian/gnomeada.gpr0000644000000000000000000000352612236547250011467 0ustar -- Build GNOMEAda for Debian. -- Copyright (C) 2012-2013 Nicolas Boulenguez -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . with "gtkada.gpr"; library project Gnomeada is Soversion := External ("gnomeada_SOVERSION"); Ldlibs := External_As_List ("gnomeada_LDLIBS", " "); type Library_Kind is ("dynamic", "static"); Kind : Library_Kind := External ("KIND"); for Library_Name use Project'Name; case Kind is when "dynamic" => for Library_Version use "lib" & Project'Library_Name & ".so." & Soversion; -- Build-time options use to link the shared library. for Library_Options use External_As_List ("LDFLAGS", " ") & Ldlibs; when "static" => null; end case; for Library_Kind use Kind; for Languages use ("Ada"); for Source_Dirs use ("../src/gnome"); for Library_Dir use Project'Name & "_lib_" & Project'Library_Kind; for Object_Dir use Project'Name & "_obj_" & Project'Library_Kind; package Compiler is for Default_Switches ("Ada") use External_As_List ("ADAFLAGS", " "); end Compiler; package Binder is for Default_Switches ("Ada") use ("-E"); end Binder; -- No linker package is needed as no project imports this one. end Gnomeada; debian/gnomeada_obj_dynamic/0000755000000000000000000000000012236547250013305 5ustar debian/libgtkglada2.24.1.preinst0000644000000000000000000000036412236547250013517 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until next soversion and package name change. if [ -h /usr/share/doc/libgtkglada2.24.1 ]; then rm -f /usr/share/doc/libgtkglada2.24.1 fi #DEBHELPER# debian/libgnomeada2.24.1-dev.preinst0000644000000000000000000000037512236547250014272 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until next aliversion and package name change. if [ -h /usr/share/doc/libgnomeada2.24.1-dev ]; then rm -f /usr/share/doc/libgnomeada2.24.1-dev fi #DEBHELPER# debian/tests/0000755000000000000000000000000012236547250010336 5ustar debian/tests/control0000644000000000000000000000005112236547250011735 0ustar Tests: link-with-shared Depends: @, xvfb debian/tests/link-with-shared0000644000000000000000000000063712236547250013441 0ustar #!/bin/sh set -C -e -f -u cd "$ADTTMP" cat > main.adb < p.gpr < References: <4425638.rairflbtfP@luna> <20130718124538.GD23957@frosties> <2155301.FLmz5SKP4F@luna> For the moment, the Debian packaging breaks this circular dependency by not building the reference manual. A better solution would be to have two source packages: Package: libgtkada2.18-dev Package: gnat-gps Build-Depends: libgtkada2.18-dev Package: libgtkada-doc Build-Depends: gnat-gps -- Partially related problem: lintian complains rightfully that most data in libgtkada is actually arch-independant. Maybe a -common package split is needed. debian/gtkada.gpr0000644000000000000000000000407112236547250011143 0ustar -- Build GTKAda for Debian. -- Copyright (C) 2012-2013 Nicolas Boulenguez -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . library project Gtkada is Soversion := External ("gtkada_SOVERSION"); Ldlibs := External_As_List ("gtkada_LDLIBS", " "); type Library_Kind is ("dynamic", "static"); Kind : Library_Kind := External ("KIND"); for Library_Name use Project'Name; case Kind is when "dynamic" => for Library_Version use "lib" & Project'Library_Name & ".so." & Soversion; -- Build-time options use to link the shared library. for Library_Options use External_As_List ("LDFLAGS", " ") & Ldlibs; when "static" => null; end case; for Library_Kind use Kind; -- Specify C so that .o files from C are embedded too. for Languages use ("Ada", "C"); -- If two sources are available, prefer the generated one. for Source_Dirs use ("../src/generated", "../src"); for Library_Dir use Project'Name & "_lib_" & Project'Library_Kind; for Object_Dir use Project'Name & "_obj_" & Project'Library_Kind; package Compiler is for Default_Switches ("Ada") use External_As_List ("ADAFLAGS", " "); end Compiler; package Binder is for Default_Switches ("Ada") use ("-E"); end Binder; package Linker is -- This package only exists to pass more options to importing -- projects: gnomeada, gtkglada, tools. for Linker_Options use Ldlibs; end Linker; end Gtkada; debian/gtkglada_lib_dynamic/0000755000000000000000000000000012236547250013304 5ustar debian/gnomeada_lib_dynamic/0000755000000000000000000000000012236547250013301 5ustar debian/libgtkada-bin.preinst0000644000000000000000000000034112236547250013270 0ustar #!/bin/sh set -e # See https://wiki.debian.org/MissingCopyrightFile. # This file is needed until 2.24.1-12 reaches oldstable. if [ -h /usr/share/doc/libgtkada-bin ]; then rm -f /usr/share/doc/libgtkada-bin fi #DEBHELPER# debian/watch0000644000000000000000000000025212236547250010224 0ustar # The upstream tarball download system is too complicated to be # described in a watch file. Please read the README.source file in # this directory for more information. debian/libgtkada-doc.examples0000644000000000000000000000001312236547250013413 0ustar examples/* debian/gtkada_obj_static/0000755000000000000000000000000012236547250012630 5ustar