Package: gnat-gps
Version: 4.3-5+b1
Severity: normal
Tags: patch

Adding new test case fails.

How to reproduce:
- Launch gnat-gps
- Create a new simple ada project
- Use menu: "Edit" -> "Unit Testing" -> "New Test Case"
- Fill in "save in" field and validate
- popup with message "No template with base name test_case could be found:
please verify your GPS installation" appears

strace shows that aunit template files are missing:
 - /usr/share/gps/aunit/test_case.ads.tmpl
 - /usr/share/gps/aunit/test_case.adb.tmpl

Patch in attachment.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-rc5.2 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnat-gps depends on:
di  libatk1.0-0                  1.30.0-1    The ATK accessibility toolkit
ii  libc6                        2.11.2-6    Embedded GNU C Library: Shared lib
ii  libcairo2                    1.8.10-6    The Cairo 2D vector graphics libra
di  libfontconfig1               2.8.0-2.1   generic font configuration library
ii  libfreetype6                 2.4.2-2     FreeType 2 font engine, shared lib
ii  libgcc1                      1:4.4.5-2   GCC support library
ii  libglib2.0-0                 2.24.2-1    The GLib library of C routines
ii  libgnat-4.4                  4.4.4-5     Runtime library for GNU Ada applic
ii  libgnatprj4.4                4.4.4-5     GNU Ada Project Manager
ii  libgnatvsn4.4                4.4.4-5     GNU Ada compiler version library
ii  libgtk2.0-0                  2.20.1-1+b1 The GTK+ graphical user interface 
ii  libgtkada2.14.2              2.14.2-4    Ada binding for the GTK+ library
di  libpango1.0-0                1.28.1-1    Layout and rendering of internatio
ii  libpython2.6                 2.6.6-5     Shared Python runtime library (ver
ii  libtemplates-parser11.5      11.5-4      Ada library to parse files and rep
di  libx11-6                     2:1.3.3-3   X11 client-side library
di  libxrender1                  1:0.9.6-1   X Rendering Extension client libra
di  tcl8.4                       8.4.19-4    Tcl (the Tool Command Language) v8

Versions of packages gnat-gps recommends:
ii  ada-reference-manual       20021112web-3 The standard describing the Ada 95
ii  gdb                        7.2-1         The GNU Debugger
ii  gnat                       4.4+1         The GNU Ada compiler
ii  gnat-gps-doc               4.3-5         The GNAT Programming System - docu

gnat-gps suggests no packages.

-- no debconf information
#
# old_revision [d91198c709fa416bc97f4c1239feeb36019188ff]
#
# patch "debian/changelog"
#  from [a8737dc27e5d80c473c03c07235a7d78527d0e7a]
#    to [3c8d62bae7dad542146c09368826e5b91ae3ff70]
# 
# patch "debian/rules"
#  from [3d29bff02bd23b1dacbcc733e657e4785185ca96]
#    to [5637032c031be053ad6cfb2c76b2d11e86435ea7]
#
============================================================
--- debian/changelog    a8737dc27e5d80c473c03c07235a7d78527d0e7a
+++ debian/changelog    3c8d62bae7dad542146c09368826e5b91ae3ff70
@@ -1,3 +1,9 @@
+gnat-gps (4.3-5.1) unstable; urgency=low
+
+  * Allow to create test case (add missing aunit templates)
+
+ -- Pierre-Louis Bonicoli <pierre-louis.bonic...@gmx.fr>  Fri, 08 Oct 2010 
00:01:25 +0200
+
 gnat-gps (4.3-6) unstable; urgency=low
 
   * control (Vcs-Mtn) corrected URL
============================================================
--- debian/rules        3d29bff02bd23b1dacbcc733e657e4785185ca96
+++ debian/rules        5637032c031be053ad6cfb2c76b2d11e86435ea7
@@ -64,6 +64,8 @@ override_dh_auto_install:
 override_dh_auto_configure:
 override_dh_auto_test:
 override_dh_auto_install:
+       mkdir -p debian/gnat-gps/usr/share/gps/aunit
+       cp aunit/templates/*.tmpl debian/gnat-gps/usr/share/gps/aunit/
 
 GENERATED_FILES := common/src/config.ads
 

Reply via email to