Bug#782702: header files installed directly in /usr/include

Vincent Nivoliers vincent.nivoliers at univ-lyon1.fr
Thu Apr 16 12:34:15 UTC 2015


Package:  libalglib-dev
Version:  3.8.2-3
Severity: minor
Tags:     patch

When the package is installed, the header files are installed directly 
in /usr/include. This creates for instance a file 
"/usr/include/statistics.h".

I suggest to create a folder "libalglib" in /usr/include to install the 
headers there. This is the behaviour found in other distributions like 
for instance archlinux.

Although I am no debian packaging specialist, downloading the source 
package and modifying it as follows yields the desired behaviour when 
the package is built and installed.

diff -Naur alglib-3.8.2/CMakeLists.txt alglib-3.8.2_mine/CMakeLists.txt
--- alglib-3.8.2/CMakeLists.txt 2015-04-16 13:58:58.000000000 +0200
+++ alglib-3.8.2_mine/CMakeLists.txt    2015-04-16 14:07:06.148389902 +0200
@@ -13,7 +13,7 @@
    SOVERSION ${SOVERSION})

  INSTALL(TARGETS alglib DESTINATION ${CMAKE_INSTALL_LIBDIR}/)
-INSTALL(FILES ${ALGLIB_HDR_LIB} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+INSTALL(FILES ${ALGLIB_HDR_LIB} DESTINATION 
${CMAKE_INSTALL_INCLUDEDIR}/libalglib)

  #===========================================================
  ADD_EXECUTABLE(test_c tests/test_c.cpp)
diff -Naur alglib-3.8.2/debian/libalglib-dev.install 
alglib-3.8.2_mine/debian/libalglib-dev.install
--- alglib-3.8.2/debian/libalglib-dev.install   2013-11-10 
09:42:53.000000000 +0100
+++ alglib-3.8.2_mine/debian/libalglib-dev.install      2015-04-16 
13:47:07.470418446 +0200
@@ -1,2 +1,2 @@
-usr/include/*
+usr/include/libalglib*
  usr/lib/*/libalglib.so

-- System Information:
Debian Release: 8.0
   APT prefers testing
   APT policy: (990, 'testing'), (600, 'unstable'), (500, 'testing-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libalglib-dev depends on:
ii  libalglib3.8  3.8.2-3

libalglib-dev recommends no packages.

libalglib-dev suggests no packages.

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20150416/19baa166/attachment.html>


More information about the debian-science-maintainers mailing list