On Thu, 14 Aug 2014 17:06:29 +0800 YunQiang Su <[email protected]> wrote:
> Package: portabase
> Version: 2.1+git20120910-1
> 
> Portabase ftbfs on mips64el, and with this tiny patch it can build now.
> 
> Index: portabase-2.1+git20120910/metakit/include/mk4.h
> ===================================================================
> --- portabase-2.1+git20120910.orig/metakit/include/mk4.h 2012-09-17
> 08:56:23.000000000 +0000
> +++ portabase-2.1+git20120910/metakit/include/mk4.h 2014-08-14
> 08:25:45.727508267 +0000
> @@ -102,7 +102,8 @@
>  #if !defined (_WIN32) && !defined (q4_LONG64)
>  #if defined (_PA_RISC2_0) || defined (__powerpc64__) || defined(__sparcv9) 
> || \
>  defined(__x86_64__) || defined(__s390x__) || defined(__alpha) ||  \
> -  (defined(__ia64) && (!defined(__HP_aCC) || defined(__LP64__)))
> +  (defined(__ia64) && (!defined(__HP_aCC) || defined(__LP64__))) || \
> +  defined(__mips64)
>  #define q4_LONG64 1
>  #endif
>  #endif
> 

I NMUed this package with the attached patch.
It should fix FTBFS for mips64(el), arm64, sparc64 and x32.

> 
> -- 
> YunQiang Su
> 
> 
diff -Nru portabase-2.1+git20120910/debian/changelog 
portabase-2.1+git20120910/debian/changelog
--- portabase-2.1+git20120910/debian/changelog  2012-09-18 12:44:42.000000000 
+0800
+++ portabase-2.1+git20120910/debian/changelog  2014-09-26 17:34:02.000000000 
+0800
@@ -1,3 +1,10 @@
+portabase (2.1+git20120910-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS on mips64(el), x32, arm64, sparc64.
+
+ -- YunQiang Su <[email protected]>  Fri, 26 Sep 2014 17:32:10 +0800
+
 portabase (2.1+git20120910-1) unstable; urgency=low
 
   * New upstream version [September 2012].
diff -Nru portabase-2.1+git20120910/debian/patches/64bit.patch 
portabase-2.1+git20120910/debian/patches/64bit.patch
--- portabase-2.1+git20120910/debian/patches/64bit.patch        1970-01-01 
08:00:00.000000000 +0800
+++ portabase-2.1+git20120910/debian/patches/64bit.patch        2014-09-26 
17:31:21.000000000 +0800
@@ -0,0 +1,17 @@
+Index: portabase-2.1+git20120910/metakit/include/mk4.h
+===================================================================
+--- portabase-2.1+git20120910.orig/metakit/include/mk4.h       2012-09-17 
16:56:23.000000000 +0800
++++ portabase-2.1+git20120910/metakit/include/mk4.h    2014-09-26 
17:31:16.503415273 +0800
+@@ -101,8 +101,10 @@
+ // and here's the other end of the scale...
+ #if !defined (_WIN32) && !defined (q4_LONG64)
+ #if defined (_PA_RISC2_0) || defined (__powerpc64__) || defined(__sparcv9) || 
\
+-defined(__x86_64__) || defined(__s390x__) || defined(__alpha) ||  \
+-  (defined(__ia64) && (!defined(__HP_aCC) || defined(__LP64__)))
++  (defined(__x86_64__) && defined(__LP64__)) || defined(__s390x__) || 
defined(__alpha) ||  \
++  (defined(__ia64) && (!defined(__HP_aCC) || defined(__LP64__))) || \
++  (defined(__mips64) && defined(__LP64__)) || defined(__aarch64__) || \
++  (defined(__sparc__) && defined(__LP64__))
+ #define q4_LONG64 1
+ #endif 
+ #endif 
diff -Nru portabase-2.1+git20120910/debian/patches/series 
portabase-2.1+git20120910/debian/patches/series
--- portabase-2.1+git20120910/debian/patches/series     2012-09-17 
22:14:29.000000000 +0800
+++ portabase-2.1+git20120910/debian/patches/series     2014-09-26 
17:17:17.000000000 +0800
@@ -1 +1,2 @@
 build.patch
+64bit.patch

Reply via email to