Package: gprbuild
Version: 2021.0.0.0778b109-5
Severity: normal
Tags: patch
X-Debbugs-Cc: Rolf Ebert <rolf.eb...@gmx.net>

>From Rolf Ebert [1]:
> I think I found an error in the gprbuild package on Debian bullseye.
> The utility gprlib is installed in /usr/lib/gprbuild/gprlib.
> Almost all but one references to this utility in 
> /usr/share/gprconfig/linker.xml read:
> $ grep gprlib linker.xml
> for Library_Builder  use "${GPRCONFIG_PREFIX}libexec/gprbuild/gprlib";
> [...]
> I had to link /usr/lib/gprbuild to /usr/libexec/gprbuild to make the
> library builder work for the ESP32 cross compiler
> Regards

Thanks for reporting this issue.

A fix is pending in the VCS for the gprconfig-kb [2] and gprbuild [3]
source packages, but it will probably wait the GCC-11 transition to
reach the testing distribution.

You should ideally never manually change anything under /usr.  This
breaks the expectations of the dpkg package manager, with potential
consequences on the whole system.  I strongly recommend to remove your
link, and instead use a less intrusive work-around like
# cp -a /usr/share/gprconfig ~/gprconfig
# sed -i 's_libexec/gprbuild/gprlib_lib/gprbuild/gprlib_' ~/gprconfig/linker.xml
# diff -urN /usr/share/gprconfig ~/gprconfig | less
# alias gprbuild='gprbuild --db=~/gprconfig'

You probably want to be registered as the submitter for this issue and
receive notifications. For this, it is sufficient to send a mail at
cont...@bugs.debian.org with only this line: 'submitter NNNNNN !'
(I do not know the bug number yet, but you will see it in the
subject).

[1] https://lists.debian.org/debian-ada/2021/08/msg00000.html
[2] https://salsa.debian.org/debian/gprconfig-kb
[3] https://salsa.debian.org/debian/gprbuild

Reply via email to