🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #3312

Bug#1154137: FTBFS in current unstable with dh_ada_library error

#3312
From: Rafael Laboissière
Date: Mon, 16 Nov 2026 12:10
60 lines
4571 bytes
Control: reassign -1 dh-ada-library 9.9
Control: affects -1 src:plplot
Control: retitle -1 dh-ada-library: dh_ada_library does not properly parse the "gnatmake --version" output
Control: tags -1 + patch

* Stéphane Glondu <glondu@debian.org> [2026-11-16 10:11]:

> Source: plplot
> Version: 5.15.0+dfsg3-6
> Severity: serious
> Tags: ftbfs
>
> Dear Maintainer,
>
> plplot FTBFS in current unstable with:
>> [...]
>>    dh_python3 -O-Scmake
>> I: dh_python3 fs:545: renaming _Pltk_init.so to _Pltk_init.cpython-314-x86_64-linux-gnu.so
>> I: dh_python3 fs:545: renaming _plplotc.so to _plplotc.cpython-314-x86_64-linux-gnu.so
>> I: dh_python3 fs:545: renaming plplot_pyqt5.so to plplot_pyqt5.cpython-314-x86_64-linux-gnu.so
>>    dh_installinit -O-Scmake
>>    dh_lintian -O-Scmake
>>    dh_ada_library -O-Scmake
>> dpkg-query: no packages found matching gnat-20261107-x86-64-linux-gnu:amd64
>> dh_ada_library: error: dpkg-query -Wf\${Provides} gnat-20261107-x86-64-linux-gnu:amd64 returned exit code 1
>> dh_ada_library: error: Aborting due to earlier error
>> make: *** [debian/rules:65: binary] Error 25
>> dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

Thanks for the bug report. I am hereby reassigning it to the dh-ada-library package. The dh_ada_library script does not properly parse the "gnatmake --version" output when setting the $deb_gnat_version variable.

Currently, in Debian unstable, "gnatmake --version" yields the following:

$ gnatmake --version
GNATMAKE 14.4.1 20261107
Copyright (C) 1995-2024, Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The parsing in line 54 of the dh_ada_library script [1] is producing "gnat-20261107", but it should produce "gnat-14", I think. Changing that line like the following fixes the issue:

--- /usr/bin/dh_ada_library     2025-02-27 10:14:55.000000000 +0000
+++ /home/rafael/dh_ada_library 2026-11-16 11:36:06.055053027 +0000
@@ -51,7 +51,7 @@
 my $deb_gnat_version = do {
     my @cmd = qw(gnatmake --version);
     my @out = qx_cmd(@cmd);             #_;# relax syntax highlighters
-    if ( defined $out[0] and $out[0] =~ m/ [ ] (\d+) (?: [.] \d+ )* $ / ) {
+    if ( defined $out[0] and $out[0] =~ m/ [ ] (\d+) (?: [. ] \d+ )* $ / ) {
         $1;
     }
     else {

Best,

Rafael Laboissière

P.S.: I am adding Nicolas Boulenguez to the Cc of this message. He should be able to judge whether reassigning this bug report is relevant.

[1] https://salsa.debian.org/debian/dh_ada_library/-/blob/master/dh_ada_library?ref_type=heads#L54
Technical Details
Message-ID: <O03H3-cfp3-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <O012x-cdRm-1@gated-at.bofh.it> <O012x-cdRm-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Rafael Laboissière <rafael@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1154137: FTBFS in current unstable with dh_ada_library error
Date: Mon, 16 Nov 2026 13:10:01 +0100
Message-ID: <O03H3-cfp3-3@gated-at.bofh.it>
References: <O012x-cdRm-1@gated-at.bofh.it> <O012x-cdRm-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Mon Nov 16 12:09:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Rafael Laboissière <rafael@debian.org>, 1154137@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-science-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1154137
X-Debian-Pr-Package: src:plplot
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: plplot
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Organization: Debian GNU/Linux
X-Content-Language: en-us
X-Position: 1861
X-Debian-User: rafael
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/838445
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 60
Sender: robomod@news.nic.it
X-Original-Cc: Nicolas Boulenguez <nicolas@debian.org>
X-Original-Date: Mon, 16 Nov 2026 13:07:16 +0100
X-Original-Message-ID: <avrx9CXKB79njHLF@laboissiere.net>
X-Original-References: <179482029809.1933608.9497753470821519306.reportbug@cil.up7.fr> <179482029809.1933608.9497753470821519306.reportbug@cil.up7.fr>