Package: libgsm1-dev
Version: 1.0.13-4+b2
Severity: important
Tags: patch

Hello!

The -dev Debian package for libgsm installs all of the header files
contained in the libgsm upstream sources instead of only installing
the gsm.h public header file. I'm including a patch to fix this.
It's untested because I don't have package building infrastructure
easily available on this machine.

Furthermore Debian renames a libgsm internal header, config.h, to
gsm_config.h in 03_config.patch of the quilt patch series. This is
probably a workaround for issues introduced by wrongly installing
that header. I'm attaching another patch to drop 03_config.h.

best regards, Diego
Only in debian.orig/patches: 03_config.patch
diff -ur debian.orig/rules debian.fixed/rules
--- debian.orig/rules   2012-04-12 18:10:27.000000000 +0200
+++ debian.fixed/rules  2017-11-19 21:22:16.586583755 +0100
@@ -34,9 +34,8 @@
        dh_testroot
        dh_installdirs
        mkdir -p debian/tmp/usr/lib debian/tmp/usr/bin 
debian/libgsm1-dev/usr/lib/$(DEB_HOST_MULTIARCH) 
debian/libgsm1/usr/lib/$(DEB_HOST_MULTIARCH)
-       $(MAKE) $(CROSS) INSTALL_ROOT=debian/tmp/usr 
GSM_INSTALL_INC=debian/libgsm1-dev/usr/include/gsm 
GSM_INSTALL_MAN=debian/libgsm1-dev/usr/share/man/man3 
TOAST_INSTALL_MAN=debian/libgsm-tools/usr/share/man/man1 install
-       ln -s gsm/gsm.h debian/libgsm1-dev/usr/include/gsm.h
-       cp inc/*.h debian/libgsm1-dev/usr/include/gsm
+       $(MAKE) $(CROSS) INSTALL_ROOT=debian/tmp/usr 
GSM_INSTALL_INC=debian/libgsm1-dev/usr/include 
GSM_INSTALL_MAN=debian/libgsm1-dev/usr/share/man/man3 
TOAST_INSTALL_MAN=debian/libgsm-tools/usr/share/man/man1 install
+       ln -s ../gsm.h debian/libgsm1-dev/usr/include/gsm/gsm.h
        mv lib/*so debian/libgsm1-dev/usr/lib/$(DEB_HOST_MULTIARCH)
        mv lib/*a debian/libgsm1-dev/usr/lib/$(DEB_HOST_MULTIARCH)
        mv lib/*so.* debian/libgsm1/usr/lib/$(DEB_HOST_MULTIARCH)
diff -ur debian.orig/patches/04_includes.patch 
debian.fixed/patches/04_includes.patch
--- debian.orig/patches/04_includes.patch       2012-04-12 17:22:53.000000000 
+0200
+++ debian.fixed/patches/04_includes.patch      2017-11-19 22:26:39.379002210 
+0100
@@ -37,7 +37,7 @@
 --- a/src/code.c
 +++ b/src/code.c
 @@ -9,8 +9,8 @@
- #include      "gsm_config.h"
+ #include      "config.h"
  
  
 -#ifdef        HAS_STDLIB_H
diff -ur debian.orig/patches/series debian.fixed/patches/series
--- debian.orig/patches/series  2012-04-12 17:22:53.000000000 +0200
+++ debian.fixed/patches/series 2017-11-19 21:40:20.233591925 +0100
@@ -1,6 +1,5 @@
 01_makefile.patch
 02_cplusplus.patch
-03_config.patch
 04_includes.patch
 05_compiler_warnings.patch
 06_fix_manpages.patch

Reply via email to