]> git.pld-linux.org Git - packages/Firebird.git/blobdiff - Firebird-morearchs.patch
- fix build
[packages/Firebird.git] / Firebird-morearchs.patch
index 73a333fe33c1a10dab1b541f7825058822e21002..d4a8134ef7dae2053aa14399c3eb5da0198bf6a0 100644 (file)
---- firebird-1.5.1.4500/src/jrd/common.h.orig  2004-05-28 23:36:22.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/common.h       2004-05-28 23:44:49.000000000 +0200
-@@ -131,6 +131,14 @@
- #define IMPLEMENTATION  isc_info_db_impl_linux_sparc /* 65  */
- #endif /* sparc */
+--- Firebird-2.5.0.26074-0/src/jrd/common.h.orig       2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/common.h    2010-10-28 07:51:57.395734339 +0200
+@@ -158,6 +158,11 @@
+ #define RISC_ALIGNMENT
+ #endif // IA64
  
-+#ifdef __powerpc__
-+#define IMPLEMENTATION        isc_info_db_impl_linux_ppc
-+#endif
-+
 +#ifdef __alpha__
-+#define IMPLEMENTATION        isc_info_db_impl_linux_alpha
++#define IMPLEMENTATION  isc_info_db_impl_linux_alpha  /* 82 */
++#define RISC_ALIGNMENT
 +#endif
 +
- #define MEMMOVE(from,to,length)               memmove ((void *)to, (void *)from, (size_t) length)
- #define MOVE_FAST(from,to,length)       memcpy (to, from, (int) (length))
- #define MOVE_FASTER(from,to,length)     memcpy (to, from, (int) (length))
---- firebird-1.5.1.4500/src/jrd/ibase.h.orig   2004-03-29 05:50:10.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/ibase.h        2004-08-08 00:59:58.069029392 +0200
-@@ -57,7 +57,7 @@
- // It is difficult to detect 64-bit long from the redistributable header
- // we do not care of 16-bit platforms anymore thus we may use plain "int"
- // which is 32-bit on all platforms we support
--#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
-+#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha__)
- typedef       int             ISC_LONG;
- typedef       unsigned int    ISC_ULONG;
- #else
-@@ -1577,6 +1577,9 @@
-       isc_info_db_impl_linux_sparc = 65,
-       isc_info_db_impl_linux_amd64 = 66,
+ #ifndef USE_POSIX_THREADS
+ // force pthread detection on Linux for distros that do not provide
+ // POSIX thread compatability
+--- Firebird-2.5.0.26074-0/src/jrd/inf_pub.h.orig      2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/inf_pub.h   2010-10-28 07:52:00.183734339 +0200
+@@ -213,6 +213,7 @@
  
-+      isc_info_db_impl_linux_ppc = 67,
-+      isc_info_db_impl_linux_alpha = 68,
-+
-       isc_info_db_impl_last_value   /* Leave this LAST! */
-     };
+       isc_info_db_impl_linux_sh = 80,
+       isc_info_db_impl_linux_sheb = 81,
++      isc_info_db_impl_linux_alpha = 82,
  
---- firebird-1.5.1.4500/src/jrd/pag.cpp.orig   2004-05-28 22:16:09.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/pag.cpp        2004-05-28 23:58:59.000000000 +0200
-@@ -180,6 +180,12 @@
- #ifdef __sparc__
- #define CLASS           20
- #endif
-+#ifdef __powerpc__
-+#define CLASS         30
-+#endif
-+#ifdef __alpha__
-+#define CLASS         31
-+#endif
- #endif
+       isc_info_db_impl_last_value   // Leave this LAST!
+ };
+--- Firebird-2.5.0.26074-0/src/jrd/pag.cpp.orig        2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/pag.cpp     2010-10-28 07:58:22.771734339 +0200
+@@ -160,9 +160,10 @@
+ static const int CLASS_LINUX_S390 = 37;               // LINUX/s390
+ static const int CLASS_LINUX_SH = 38;         // LINUX/SH (little-endian)
+ static const int CLASS_LINUX_SHEB = 39;               // LINUX/SH (big-endian)
++static const int CLASS_LINUX_ALPHA = 40;      // LINUX/Alpha
+ static const int CLASS_MAX10 = CLASS_LINUX_AMD64;     // This should not be changed, no new ports with ODS10
+-static const int CLASS_MAX = CLASS_LINUX_SHEB;
++static const int CLASS_MAX = CLASS_LINUX_ALPHA;
+ // ARCHITECTURE COMPATIBILITY CLASSES
+@@ -259,7 +260,8 @@
+       archBigEndian,    // CLASS_LINUX_S390X
+       archBigEndian,    // CLASS_LINUX_S390
+       archLittleEndian, // CLASS_LINUX_SH
+-      archBigEndian     // CLASS_LINUX_SHEB
++      archBigEndian,    // CLASS_LINUX_SHEB
++      archLittleEndian  // CLASS_LINUX_ALPHA
+ };
  
- #ifdef FREEBSD
---- firebird-1.5.4.4910/src/remote/xdr.cpp.orig        2007-01-23 16:04:21.000000000 +0100
-+++ firebird-1.5.4.4910/src/remote/xdr.cpp     2007-02-17 22:54:04.743823670 +0100
-@@ -42,10 +42,10 @@
- // The simpliest way to check it is to issue
- // "select abs(2.0/3.0) from rdb$database" from correct client
- // It will return big strange value in case of invalid define
--#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
-+#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
- #define               SWAP_DOUBLE
+ #ifdef __sun
+@@ -319,6 +321,8 @@
+ const SSHORT CLASS            = CLASS_LINUX_SH;
+ #elif defined(SHEB)
+ const SSHORT CLASS            = CLASS_LINUX_SHEB;
++#elif defined(__alpha__)
++const SSHORT CLASS            = CLASS_LINUX_ALPHA;
  #else
--#if !defined(sparc) && !defined(PowerPC) && !defined(HPUX)
-+#if !defined(sparc) && !defined(PowerPC) && !defined(HPUX) && !defined(__powerpc__)
- #error "Define SWAP_DOUBLE for your platform correctly !"
- #endif
+ #error no support on other hardware for Linux
  #endif
---- firebird-1.5.1.4500/src/jrd/utl.cpp.orig   2004-03-29 05:50:11.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/utl.cpp        2004-08-08 14:13:50.000000000 +0200
-@@ -255,7 +255,10 @@
-     "Firebird/Darwin/PowerPC",        /* 63 */
-     "Firebird/SINIX-Z",       /* 64 */
-     "Firebird/linux Sparc",   /* 65 */
--    "Firebird/linux AMD64"    /* 66 */
-+    "Firebird/linux AMD64",   /* 66 */
-+
-+    "Firebird/linux PPC",     /* 67 */
-+    "Firebird/linux alpha"    /* 68 */
+--- Firebird-2.5.0.26074-0/src/jrd/utl.cpp.orig        2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/utl.cpp     2010-10-28 07:57:59.231736853 +0200
+@@ -225,7 +225,8 @@
+       "Firebird/linux s390x",                 // 78
+       "Firebird/linux s390",                  // 79
+       "Firebird/linux SH",                    // 80
+-      "Firebird/linux SHEB"                   // 81
++      "Firebird/linux SHEB",                  // 81
++      "Firebird/linux Alpha"                  // 82
  };
  
  
---- firebird-1.5.1.4500/src/jrd/btr.cpp.orig   2004-08-08 14:17:42.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/btr.cpp        2004-08-08 14:16:30.000000000 +0200
-@@ -191,7 +191,7 @@
- //
- inline SLONG BTR_get_quad(const UCHAR* p)
- {
--#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
-+#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
-       // For IA32 (little-endian) this optimization is a _very_ large speed-up!
-       return *reinterpret_cast<const SLONG*>(p);
- #else
---- firebird-1.5.1.4500/src/include/fb_types.h.orig    2004-03-29 05:49:42.000000000 +0200
-+++ firebird-1.5.1.4500/src/include/fb_types.h 2004-10-08 11:25:29.000000000 +0200
-@@ -74,7 +74,7 @@
- // Temporarly restrict new definition until ULONG clash with Windows
- // type is solved. Win64 port is not possible before that point.
- // Cannot use SIZEOF_LONG define here because we are in a public header
--#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
-+#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha__)
-       /* EKU: Firebird requires (S)LONG to be 32 bit */
- #   define LONG_DEFINED
-     typedef int SLONG;
This page took 0.081709 seconds and 4 git commands to generate.