[rmh@debian.org: Bug#187309: libgcrypt: FTBFS on GNU/Hurd]

Ivo Timmermans ivo@o2w.nl
Wed, 2 Apr 2003 23:50:39 +0200


--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

FYI, patch is attached.


	Ivo

-- 
No, I just like to run around and scream real loud!
	- Dee Dee

--k+w/mQv8wyuph6w0
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <ivo@o2w.nl>
X-Original-To: o2w@schaapje.org
Delivered-To: ivo@schaapje.org
Received: from mail.o2w.nl (mail.o2w.nl [213.133.41.126])
	by juarez.schaapje.org (Postfix) with ESMTP id 789B9259
	for <o2w@schaapje.org>; Wed,  2 Apr 2003 21:09:21 +0200 (CEST)
Received: by mail.o2w.nl (Postfix, from userid 1001)
	id 4780235BCE; Wed,  2 Apr 2003 21:09:20 +0200 (CEST)
Delivered-To: ivo@o2w.nl
Received: from master.debian.org (master.debian.org [65.125.64.135])
	by mail.o2w.nl (Postfix) with ESMTP id B1FF535BC2
	for <ivo@o2w.nl>; Wed,  2 Apr 2003 21:09:19 +0200 (CEST)
Received: from debbugs by master.debian.org with local (Exim 3.12 1 (Debian))
	id 190nHI-0004aE-00; Wed, 02 Apr 2003 12:48:04 -0600
X-Loop: owner@bugs.debian.org
Subject: Bug#187309: libgcrypt: FTBFS on GNU/Hurd
Reply-To: Robert Millan <rmh@debian.org>, 187309@bugs.debian.org
Resent-From: Robert Millan <rmh@debian.org>
Original-Sender: Robert Millan <rmh@khazad.dyndns.org>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: Ivo Timmermans <ivo@debian.org>,
	libgcrypt@packages.qa.debian.org
Resent-Date: Wed, 02 Apr 2003 18:48:02 GMT
Resent-Message-ID: <handler.187309.B.104930881013206@bugs.debian.org>
X-Debian-PR-Message: report 187309
X-Debian-PR-Package: libgcrypt
X-Debian-PR-Keywords: patch sid
Received: via spool by submit@bugs.debian.org id=B.104930881013206
          (code B ref -1); Wed, 02 Apr 2003 18:48:02 GMT
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Robert Millan <rmh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailer: reportbug 2.10.1
Date: Wed, 02 Apr 2003 20:39:14 +0200
Message-Id: <E190n8l-0005aX-00@aragorn>
Sender: Robert Millan <rmh@khazad.dyndns.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Level: 
Resent-Sender: Debian BTS <debbugs@master.debian.org>
X-Spam-Status: No, hits=-7.6 required=5.0 tests=SENT_BY_BTS,FORGED_RCVD_FOUND,UNIFIED_PATCH,AWL version=2.20
X-Spam-Level: 

Package: libgcrypt
Version: unavailable; reported 2003-04-02
Severity: important
Tags: sid patch

hello!

libgcrypt fails to build on GNU/Hurd. the problem seems to be a missing
-lpthread flag for linking with libgcrypt.la.

here's a fix:

diff -ur libgcrypt-1.1.12.old/src/Makefile.am libgcrypt-1.1.12/src/Makefile.am
--- libgcrypt-1.1.12.old/src/Makefile.am	2002-12-19 11:50:50.000000000 +0100
+++ libgcrypt-1.1.12/src/Makefile.am	2003-03-29 18:56:52.000000000 +0100
@@ -62,8 +62,14 @@
 endif
 
 
+if HAVE_PTHREAD
+libgcrypt_la_LDFLAGS = $(libgcrypt_version_script_cmd) -version-info \
+      @LIBGCRYPT_LT_CURRENT@:@LIBGCRYPT_LT_REVISION@:@LIBGCRYPT_LT_AGE@ \
+      -lpthread
+else
 libgcrypt_la_LDFLAGS = $(libgcrypt_version_script_cmd) -version-info \
       @LIBGCRYPT_LT_CURRENT@:@LIBGCRYPT_LT_REVISION@:@LIBGCRYPT_LT_AGE@ 
+endif
 
 libgcrypt_la_SOURCES =	 g10lib.h \
 		         types.h \
diff -ur libgcrypt-1.1.12.old/src/Makefile.in libgcrypt-1.1.12/src/Makefile.in
--- libgcrypt-1.1.12.old/src/Makefile.in	2003-01-20 11:34:45.000000000 +0100
+++ libgcrypt-1.1.12/src/Makefile.in	2003-03-29 18:56:29.000000000 +0100
@@ -201,8 +201,11 @@
 
 @HAVE_LD_VERSION_SCRIPT_TRUE@libgcrypt_version_script_cmd = -Wl,--version-script=$(srcdir)/libgcrypt.vers
 
-libgcrypt_la_LDFLAGS = $(libgcrypt_version_script_cmd) -version-info \
-      @LIBGCRYPT_LT_CURRENT@:@LIBGCRYPT_LT_REVISION@:@LIBGCRYPT_LT_AGE@ 
+@HAVE_PTHREAD_TRUE@libgcrypt_la_LDFLAGS = $(libgcrypt_version_script_cmd) -version-info \
+@HAVE_PTHREAD_TRUE@      @LIBGCRYPT_LT_CURRENT@:@LIBGCRYPT_LT_REVISION@:@LIBGCRYPT_LT_AGE@ \
+@HAVE_PTHREAD_TRUE@      -lpthread
+@HAVE_PTHREAD_FALSE@libgcrypt_la_LDFLAGS = $(libgcrypt_version_script_cmd) -version-info \
+@HAVE_PTHREAD_FALSE@      @LIBGCRYPT_LT_CURRENT@:@LIBGCRYPT_LT_REVISION@:@LIBGCRYPT_LT_AGE@ 
 
 
 libgcrypt_la_SOURCES = g10lib.h \


-- System Information:
Debian Release: testing/unstable
Architecture: hurd-i386
Kernel: GNU aragorn 0.3 GNUmach-1.2/Hurd-0.3 i386-AT386
Locale: LANG=C, LC_CTYPE=C


--k+w/mQv8wyuph6w0--