Package: src:pcre3
Version: 1:8.31-3
Severity: important
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Since you added --enable-jit, pcre3 startes to FTBFS on various
architectures:

http://buildd.debian-ports.org/status/package.php?p=pcre3

For architectures such as arm64 or m68k, the jit simply is not
implemented and the CPU detection in sljit fails. I suggest that you
disable the jit for architectures where it is not supported.

I attach a patch for arm64 and m68k, but this likely affects others as
well.

Helmut
diff -Nru pcre3-8.31/debian/changelog pcre3-8.31/debian/changelog
--- pcre3-8.31/debian/changelog 2014-04-08 23:38:13.000000000 +0200
+++ pcre3-8.31/debian/changelog 2014-04-18 07:22:13.000000000 +0200
@@ -1,3 +1,10 @@
+pcre3 (1:8.31-3.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Disable jit for arm64 and m68k. Not implemented. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 18 Apr 2014 07:21:45 +0200
+
 pcre3 (1:8.31-3) unstable; urgency=medium
 
   * Enable JIT regex compilation (http://sljit.sourceforge.net/pcre).
diff -Nru pcre3-8.31/debian/rules pcre3-8.31/debian/rules
--- pcre3-8.31/debian/rules     2014-03-19 22:16:59.000000000 +0100
+++ pcre3-8.31/debian/rules     2014-04-18 07:22:49.000000000 +0200
@@ -27,6 +27,9 @@
 INSTALL_PROGRAM += -s
 endif
 
+ifeq (,$(findstring $(DEB_HOST_MULTIARCH),aarch64-linux-gnu m68k-linux-gnu))
+CONFIGURE_ARGS += --enable-jit
+endif
 
 config.status: configure
        dh_testdir
@@ -37,7 +40,7 @@
                --infodir=\$${prefix}/share/info \
                --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                --enable-utf8 --enable-unicode-properties \
-               --enable-jit
+               $(CONFIGURE_ARGS)
 
 build: build-arch build-indep
 build-arch: build-stamp

Reply via email to