Bug#535930: boost1.38: Please add support Renesas SH4
Package: boost1.38
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-superh@lists.debian.org
I am now trying to run Debian on Renesas SH CPU.
Currnet this package doesn't support Renesas SH.
I made a patch to support SH.
Would you please apply it?
Best regards,
Nobuhiro
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
Nobuhiro Iwamatsu
--- a/boost/detail/atomic_count.hpp 2009-07-03 23:56:41.000000000 +0900
+++ b/boost/detail/atomic_count.hpp 2009-07-03 23:56:07.000000000 +0900
@@ -98,7 +98,7 @@
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
# include <boost/detail/atomic_count_win32.hpp>
-#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __arm__ ) && !defined( __armel__ ) && !defined( __hppa ) && !defined( __hppa__ ) && !defined( __m68k__ ) && !defined( __sparc__ ) && ( !defined( __INTEL_COMPILER ) || defined( __ia64__ ) )
# include <boost/detail/atomic_count_sync.hpp>
+#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __arm__ ) && !defined( __armel__ ) && !defined( __hppa ) && !defined( __hppa__ ) && !defined( __m68k__ ) && !defined( __sh__ ) && !defined( __sparc__ ) && ( !defined( __INTEL_COMPILER ) || defined( __ia64__ ) )
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
--- a/boost/detail/sp_counted_base.hpp 2009-07-03 23:57:43.000000000 +0900
+++ b/boost/detail/sp_counted_base.hpp 2009-07-03 23:57:21.000000000 +0900
@@ -46,7 +46,7 @@
#elif defined( __GNUC__ ) && ( defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc ) )
# include <boost/detail/sp_counted_base_gcc_ppc.hpp>
-#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __arm__ ) && !defined( __armel__ ) && !defined( __hppa ) && !defined( __hppa__ ) && !defined( __m68k__ ) && !defined( __sparc__ ) && ( !defined( __INTEL_COMPILER ) || defined( __ia64__ ) )
+#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __arm__ ) && !defined( __armel__ ) && !defined( __hppa ) && !defined( __hppa__ ) && !defined( __m68k__ ) && !defined( __sh__ ) && !defined( __sparc__ ) && ( !defined( __INTEL_COMPILER ) || defined( __ia64__ ) )
# include <boost/detail/sp_counted_base_sync.hpp>
#elif defined(__GNUC__) && ( defined( __sparcv9 ) || ( defined( __sparcv8 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 ) ) )
--- a/debian/patches/series 2009-07-06 15:43:43.000000000 +0900
+++ b/debian/patches/series.a 2009-07-06 15:57:17.000000000 +0900
@@ -1,8 +1,10 @@
boost-python-examples.patch
function-template.patch
atomic_count.patch
+atomic_count_sh.patch
atomic_count_gcc.patch
sp_counted_base.patch
+sp_counted_base_sh.patch
endian.patch
kfreebsd-jam.patch
python2.5-elementtree.patch
--- a/debian/rules 2009-07-06 15:43:43.000000000 +0900
+++ b/debian/rules 2009-07-06 15:44:53.000000000 +0900
@@ -144,6 +144,8 @@
BUILD_LONG_DOUBLE = no
else ifeq ($(DEB_BUILD_ARCH), mipsel)
BUILD_LONG_DOUBLE = no
+else ifeq ($(DEB_BUILD_ARCH), sh4)
+BUILD_LONG_DOUBLE = no
endif
ifeq ($(BUILD_LONG_DOUBLE), yes)
Reply to: