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

Bug#549153: apr: Please port sh4



2009/10/1 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
> Package: apr
> Version: 1.3.8-1
> Severity: wishlist
> Tags: patch
> User: debian-sh4@superh.org
> Usertags: sh4
>
> Hi,
>
> I am now trying to run Debian on Renesas SH CPU(sh4).
> apr package FTBFS by test.
> Because current sh4 architecture can not use proc_mutex_xx.
> When we build apr, need set
>     apr_cv_hasprocpthreadser=no ac_cv_define_PTHREAD_PROCESS_S
>
> I made a patch to revise to be able to build.
> Would you apply it?
>

Sorry.
I forgot the attachment of patch.

Best regards,
  Nobuhiro
-- 
Nobuhiro Iwamatsu
diff -urN apr-1.3.8/debian/rules apr-1.3.8.a/debian/rules
--- apr-1.3.8/debian/rules	2009-09-30 14:33:56.000000000 +0900
+++ apr-1.3.8.a/debian/rules	2009-09-30 14:35:54.000000000 +0900
@@ -11,6 +11,7 @@
 DEB_HOST_GNU_TYPE    ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
 BUILDDIR := build-$(DEB_HOST_GNU_TYPE)
 
@@ -22,6 +23,11 @@
 
 CONFFLAGS += ac_cv_prog_AWK=mawk apr_cv_sctp=no
 
+# sh4 can not use proc_pthread.
+ifneq (,$(findstring sh4,$(DEB_BUILD_ARCH)))
+  CONFFLAGS +=  apr_cv_hasprocpthreadser=no ac_cv_define_PTHREAD_PROCESS_SHARED=no
+endif
+
 # Enable debug builds
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
   CFLAGS += -O0

Reply to: