Bug#232448: debian-policy: Ada Library Information files must be read-only
Package: debian-policy
Version: 3.6.1.0
Severity: wishlist
The packages gnat, gnat-3.2, gnat-3.3 and several Ada library packages
provide Ada Library Information (*.ali) files to accompany the
compiled (static and shared) libraries. The Ada compiler requires
these files to be read-only for all users; otherwise, it tries to
recompile the corresponding source files, and fails because it cannot
place the object files in the same directory as the *.ali files.
The Policy should state that all packages that install *.ali files
must ensure they are read-only for all users. For now, the Ada
packages use post-installation scripts for this, thus bypassing checks
made by lintian and linda. See bugs #226879 and #227162.
I propose the following addition to Section 8.4 "Development files":
"If the package provides Ada Library Information (*.ali) files for use
with GNAT, these files must be read-only for all users."
For the record, here is a list of directories that contain *.ali
files:
Package Directory
------------------------------------------------------------------------
gcc-snapshot /usr/lib/gcc-snapshot/lib/gcc/*-linux/3.4.0/adalib
gnade-dev /usr/lib/ada/adalib/gnade
gnat /usr/lib/gcc-lib/*-linux/2.8.1/adalib
gnat-3.2 /usr/lib/gcc-lib/*-linux/3.2.3/adalib
gnat-3.3 /usr/lib/gcc-lib/*-linux/3.3.3/adalib
gnat-glade /usr/lib/ada/adalib/garlic
libasis-3.15p-1-dev /usr/lib/ada/adalib/asis
libcharles0-dev /usr/lib/ada/adalib/charles
libflorist-3.15p-1-dev /usr/lib/ada/adalib/florist
libgtkada2-dev /usr/lib/ada/adalib/gtkada2
libxmlada1-dev /usr/lib/ada/adalib/xmlada
(on my system this amounts to 7412 *.ali files).
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux lbrenta 2.4.23-1-686-smp #1 SMP Sun Nov 30 21:55:37 EST 2003 i686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8
-- no debconf information
Reply to: