Package: adabrowse
Severity: minor

Hello.

Adabrowse is not linked with libgnatprj, and -P fails with:
  adabrowse: Error: This AdaBrowse version doesn't support GNAT project files!

You may want to add the three short files listed after this message,
so that such problems are automatically detected in the future.

I suggest that you explain in README.source why the upstream Makefile
is replaced with a GPR project. Two motivations seem obsolete now, and
if it now possible to use upstream Makefile, the fix for this issue
will probably be easyer to maintain.

* GPR projects can mix Ada and C sources.

  You have introduced with 4.0.3-7 a trick removing the need for C
  sources. Can this trick be forwarded upstream?

* GPR projects can replace generated files like ad-projects-impl_*
  with preconfigured Ada sources.

  You have removed debian/*.ad[bs] when packaging 4.0.3.

-- debian/tests/control
Tests: basic
Depends: adabrowse

Tests: project
Depends: adabrowse, gprbuild
-- debian/tests/basic
#!/bin/sh
set -C -e -f -u

cd "$ADTTMP"
cat > pack.ads <<EOF
package Pack is
   C : constant := 0;
end Pack;
EOF
adabrowse -f pack.ads
-- debian/tests/project
#!/bin/sh
set -C -e -f -u

cd "$ADTTMP"
cat > pack.ads <<EOF
package Pack is
   C : constant := 0;
end Pack;
EOF
cat > proj.gpr <<EOF
library project Proj is
   for Source_Dirs use (".");
   for Library_Name use "bla";
   for Library_Dir use "lib";
   for Object_Dir use "obj";
end Proj;
EOF
adabrowse -P proj.gpr

Reply via email to