diff options
author | joerg <joerg@pkgsrc.org> | 2014-11-21 14:13:51 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2014-11-21 14:13:51 +0000 |
commit | 7ce304d005b3015c694705a83699a3f57a4b5f29 (patch) | |
tree | d1cc776ec75ffb27f0832f591e9639257772c41f /lang | |
parent | 5141a8a7c627a21b50294ade3ce1e0b5ab003438 (diff) | |
download | pkgsrc-7ce304d005b3015c694705a83699a3f57a4b5f29.tar.gz |
Fix build on !Linux ARM platforms. Ignore the existance of CRAY for now,
if someone really have one which is broken in this regard, it should use
normal offsetof...
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php53/distinfo | 4 | ||||
-rw-r--r-- | lang/php53/patches/patch-Zend_zend__ini.h | 32 | ||||
-rw-r--r-- | lang/php53/patches/patch-main_php.h | 31 |
3 files changed, 66 insertions, 1 deletions
diff --git a/lang/php53/distinfo b/lang/php53/distinfo index 648c8f04c50..ceb57ba5abf 100644 --- a/lang/php53/distinfo +++ b/lang/php53/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.77 2014/10/23 16:18:47 taca Exp $ +$NetBSD: distinfo,v 1.78 2014/11/21 14:13:51 joerg Exp $ SHA1 (php-5.3.29.tar.bz2) = 6e9e492c6d5853d063ddb9a4dbef60b8e5d87444 RMD160 (php-5.3.29.tar.bz2) = e57beb4fdda41bca81b5856161bc97f3c5e3e9da @@ -6,6 +6,7 @@ Size (php-5.3.29.tar.bz2) = 11396771 bytes SHA1 (suhosin-patch-5.3.29-0.9.10.patch.bz2) = b81a9b24f758cef4319759e09d011c7a350232a7 RMD160 (suhosin-patch-5.3.29-0.9.10.patch.bz2) = 7685501fd40426068c58dfbe844d12f1af299d80 Size (suhosin-patch-5.3.29-0.9.10.patch.bz2) = 32437 bytes +SHA1 (patch-Zend_zend__ini.h) = dc019ec8f30c8525f6ba24f771f38e4fea23dd30 SHA1 (patch-aa) = fd930d0d9b1c60e8c7c514cfb6864b61ce4d158d SHA1 (patch-ab) = 36789fea71e316d5c4358e597df1928d94f8ea6a SHA1 (patch-ac) = b194eaed2d81877166b13db58b37c5ddff0210a6 @@ -25,6 +26,7 @@ SHA1 (patch-ext_standard_basic__functions.c) = 017fd25e646af4d7eb2a0bd13b3c8da34 SHA1 (patch-ext_standard_var__unserializer.c) = eb590c1d5349320e45bbdaf97c875b11eb275cfb SHA1 (patch-ext_standard_var__unserializer.re) = 23478a8a26c2c106efc4f0727743e2fffdebaf54 SHA1 (patch-ext_xmlrpc_libxmlrpc_xmlrpc.c) = 9fd4004b4d94fcbf8d4104027018b46794bee127 +SHA1 (patch-main_php.h) = 3f206a423a906932cb7f4662188580a9ce9fd79d SHA1 (patch-main_streams_cast.c) = d68b69c9418a8780b1610b8755487771f7c46a5a SHA1 (patch-php__mssql.c) = 524c4e5d7ede0e503049bf1febec58e0c4a29aa4 SHA1 (patch-sapi_fpm_fpm_events_port.c) = ad45bcebadf923ee8cb3f2ad4d78d21dd178a8e3 diff --git a/lang/php53/patches/patch-Zend_zend__ini.h b/lang/php53/patches/patch-Zend_zend__ini.h new file mode 100644 index 00000000000..359eab376d7 --- /dev/null +++ b/lang/php53/patches/patch-Zend_zend__ini.h @@ -0,0 +1,32 @@ +$NetBSD: patch-Zend_zend__ini.h,v 1.1 2014/11/21 14:13:51 joerg Exp $ + +--- Zend/zend_ini.h.orig 2014-11-20 21:46:26.000000000 +0000 ++++ Zend/zend_ini.h +@@ -28,27 +28,8 @@ + #define ZEND_INI_ALL (ZEND_INI_USER|ZEND_INI_PERDIR|ZEND_INI_SYSTEM) + + #ifndef XtOffsetOf +-# if defined(CRAY) || (defined(__arm) && !defined(LINUX)) +-# ifdef __STDC__ +-# define XtOffset(p_type, field) _Offsetof(p_type, field) +-# else +-# ifdef CRAY2 +-# define XtOffset(p_type, field) \ +- (sizeof(int)*((unsigned int)&(((p_type)NULL)->field))) +- +-# else /* !CRAY2 */ +- +-# define XtOffset(p_type, field) ((unsigned int)&(((p_type)NULL)->field)) +- +-# endif /* !CRAY2 */ +-# endif /* __STDC__ */ +-# else /* ! (CRAY || __arm) */ +- + # define XtOffset(p_type, field) \ + ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL))) +- +-# endif /* !CRAY */ +- + # ifdef offsetof + # define XtOffsetOf(s_type, field) offsetof(s_type, field) + # else diff --git a/lang/php53/patches/patch-main_php.h b/lang/php53/patches/patch-main_php.h new file mode 100644 index 00000000000..a0bb355c3b8 --- /dev/null +++ b/lang/php53/patches/patch-main_php.h @@ -0,0 +1,31 @@ +$NetBSD: patch-main_php.h,v 1.1 2014/11/21 14:13:51 joerg Exp $ + +--- main/php.h.orig 2014-11-20 21:45:33.000000000 +0000 ++++ main/php.h +@@ -419,26 +419,8 @@ END_EXTERN_C() + */ + + #ifndef XtOffset +-#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__))) +-#ifdef __STDC__ +-#define XtOffset(p_type, field) _Offsetof(p_type, field) +-#else +-#ifdef CRAY2 +-#define XtOffset(p_type, field) \ +- (sizeof(int)*((unsigned int)&(((p_type)NULL)->field))) +- +-#else /* !CRAY2 */ +- +-#define XtOffset(p_type, field) ((unsigned int)&(((p_type)NULL)->field)) +- +-#endif /* !CRAY2 */ +-#endif /* __STDC__ */ +-#else /* ! (CRAY || __arm) */ +- + #define XtOffset(p_type, field) \ + ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL))) +- +-#endif /* !CRAY */ + #endif /* ! XtOffset */ + + #ifndef XtOffsetOf |