[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#646544: guile-1.8: Please link against libpthread at least on hurd-any



tags 646544 patch
thanks

On Tue, 2011-10-25 at 01:45 +0200, Samuel Thibault wrote:
> Package: guile-1.8
> Version: 1.8.8+1-6
> Severity: normal
> User: debian-hurd@lists.debian.org
> Usertags: hurd
> 
> Hello,
> 
> guile aborts in a few package builds due to dlopen()ing some library
> which use libpthread.

Inlined is a small patch to enable linkage with libpthread on GNU/Hurd
to include if there will be more Debian releases of the 1.8 series. The
package is already been built at debian-ports with pthread linkage. This
can be seen as a temporary solution until guile-2.0 builds properly for
all architectures.

diff -ur guile-1.8-1.8.8+1/debian/rules guile-1.8-1.8.8
+1.modified/debian/rules
--- guile-1.8-1.8.8+1/debian/rules 2011-11-09 06:43:28 +0000
+++ guile-1.8-1.8.8+1.modified/debian/rules 2011-11-14 17:31:40 +0000
@@ -60,12 +60,21 @@
 	INSTALL_PROGRAM += -s
 endif
 
+ifeq (hurd-i386,$(shell dpkg-architecture -qDEB_HOST_ARCH))
+configure_args = \
+  --host=$(DEB_HOST_GNU_TYPE) \
+  --build=$(DEB_BUILD_GNU_TYPE) \
+  --with-threads=yes \
+  --disable-error-on-warning \
+  --prefix=/usr
+else
 configure_args = \
   --host=$(DEB_HOST_GNU_TYPE) \
   --build=$(DEB_BUILD_GNU_TYPE) \
   --with-threads=no \
   --disable-error-on-warning \
   --prefix=/usr
+endif
 
 define checkdir
   dh_testdir debian/guile.postinst

Thanks!


Reply to: