Package: src:pandoc
Version: 1.9.4.2-1
Severity: serious
Tags: sid wheezy patch
Justification: fails to build from source (but built successfully in the past)

Hi!

Your package failed to build on the buildds:

Linking dist-ghc/build/pandoc/pandoc ...
/usr/bin/ld: cannot find -lHSrts_thr
collect2: ld returned 1 exit status

Full build log at
https://buildd.debian.org/status/fetch.php?pkg=pandoc&arch=mips&ver=1.9.4.2-1&stamp=1341543393

Patch attached

Regards

    Christoph

>From 48dae8e98b4a946c5479dc6e46226c8d7006a7cb Mon Sep 17 00:00:00 2001
From: Christoph Egger <christ...@debian.org>
Date: Sun, 22 Jul 2012 19:27:51 +0200
Subject: [PATCH] Enable threaded only on threaded systems

Up until now threading was enabled if there is no threading library at
an obsolete location which obviously is always true. Now check where
the threading libs are supposed to be and enable threaded build in
case threading is available (and not absent)
---
 debian/rules |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index cc0523a..494dd8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,7 +18,7 @@ DEB_INSTALL_MANPAGES_pandoc = man/man1/*.1 man/man5/*.5 debian/hsmarkdown.1
 DEB_SETUP_GHC6_CONFIGURE_ARGS = -fhighlighting
 
 # Use threaded RTS only when supported
-DEB_SETUP_GHC6_CONFIGURE_ARGS += $(if $(wildcard /usr/lib/ghc-$(GHC6_VERSION)/libHSrts_thr.a),,--flags=-threaded)
+DEB_SETUP_GHC6_CONFIGURE_ARGS += $(if $(wildcard /usr/lib/ghc/libHSrts_thr.a),--flags=-threaded,)
 
 # Disable timer to help build on slow arches like hppa
 DEB_SETUP_GHC6_CONFIGURE_ARGS += --ghc-options="+RTS -V0 -RTS"
-- 
1.7.10.4

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

Reply via email to