[Pkg-octave-devel] Bug#335237: glpk: GLPK should produce a shared library (patch for libtool included)

Rafael Laboissiere rafael at debian.org
Sat Oct 22 19:09:28 UTC 2005


Package: glpk
Version: 4.8-1
Severity: normal
Tags: patch

I am filing this bug report hoping that Bug#310226 will be fixed.  In sum,
buildd for octave2.9 is failing for some arches because glpk dos not
provide a shared library.

Attached below are two patches for generating a shared library for glpk
through libtool.  The first patch regards only the upstream sources and
should be forwarded to the upstream author (unless you are willing to fork
the sources and maintain the libtool support only in Debian).  The second
patch regards only the Debian-related files.

The patch is very slim (less than 10 lines changed upstream) and I guess
it is worth applying it (or getting upstream adopting it).  I have tested
the patches and they work fine in both sarge and etch.  Of course,
aclocla, libtoolize, automake, and autoconf must be run after application
of the patches.

Cheers,

Rafael

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages glpk depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an

glpk recommends no packages.

-- no debconf information

-- 
Rafael
-------------- next part --------------
diff -Naur glpk-4.8-orig/configure.in glpk-4.8/configure.in
--- glpk-4.8-orig/configure.in	2005-01-12 10:00:00.000000000 +0100
+++ glpk-4.8/configure.in	2005-05-23 17:13:43.000000000 +0200
@@ -9,7 +9,7 @@
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_INqSTALL
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
 
 dnl Checks for libraries.
 AC_CHECK_LIB(m, sqrt)
diff -Naur glpk-4.8-orig/examples/Makefile.am glpk-4.8/examples/Makefile.am
--- glpk-4.8-orig/examples/Makefile.am	2005-01-12 10:00:00.000000000 +0100
+++ glpk-4.8/examples/Makefile.am	2005-05-23 17:19:03.000000000 +0200
@@ -2,7 +2,7 @@
 
 INCLUDES = -I../include
 
-LDADD = ../src/libglpk.a
+LDADD = ../src/libglpk.la
 
 bin_PROGRAMS = glpsol tspsol
 
diff -Naur glpk-4.8-orig/src/Makefile.am glpk-4.8/src/Makefile.am
--- glpk-4.8-orig/src/Makefile.am	2005-01-12 10:00:00.000000000 +0100
+++ glpk-4.8/src/Makefile.am	2005-05-23 17:14:28.000000000 +0200
@@ -2,9 +2,10 @@
 
 INCLUDES = -I../include
 
-lib_LIBRARIES = libglpk.a
-
-libglpk_a_SOURCES = \
+lib_LTLIBRARIES = libglpk.la
+libglpk_la_LDFLAGS = -version-info 0:0:0
+	       
+libglpk_la_SOURCES = \
 glpavl.c \
 glpdmp.c \
 glpiet.c \
-------------- next part --------------
diff -Naur glpk-4.8-orig/debian/changelog glpk-4.8/debian/changelog
--- glpk-4.8-orig/debian/changelog	2005-05-23 17:03:11.000000000 +0200
+++ glpk-4.8/debian/changelog	2005-05-23 17:32:39.000000000 +0200
@@ -1,3 +1,9 @@
+glpk (4.8-1.1) unstable; urgency=low
+
+  * Non-maintainer version.  Added Libtool support.
+
+ -- Rafael Laboissiere <rafael at debian.org>  Mon, 23 May 2005 17:32:00 +0200
+
 glpk (4.8-1) unstable; urgency=low
 
   * New upstream release, packaged by Brady Hunsaker
diff -Naur glpk-4.8-orig/debian/rules glpk-4.8/debian/rules
--- glpk-4.8-orig/debian/rules	2005-05-23 17:03:11.000000000 +0200
+++ glpk-4.8/debian/rules	2005-05-24 08:57:13.777987808 +0200
@@ -73,8 +73,9 @@
 	dh_strip
 	dh_compress
 	dh_fixperms
-	dh_installdeb
+	dh_makeshlibs -V
 	dh_shlibdeps
+	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb


More information about the Pkg-octave-devel mailing list