summaryrefslogtreecommitdiff
path: root/meta-pkgs
diff options
context:
space:
mode:
authormartin <martin>2013-01-16 16:27:23 +0000
committermartin <martin>2013-01-16 16:27:23 +0000
commit04006841e09a08cca514ce840a2282960cb76030 (patch)
tree89ac191113da02f7a2927f8f5a720a175bd75314 /meta-pkgs
parenta58b8e462eb78e3c5043b9406a247ab3c2f94357 (diff)
downloadpkgsrc-04006841e09a08cca514ce840a2282960cb76030.tar.gz
Patch jam to provide greater alignement on NetBSD/sparc, where time_t (64bit)
requires greater alignement than pointers.
Diffstat (limited to 'meta-pkgs')
-rw-r--r--meta-pkgs/boost/distinfo3
-rw-r--r--meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c27
2 files changed, 29 insertions, 1 deletions
diff --git a/meta-pkgs/boost/distinfo b/meta-pkgs/boost/distinfo
index 1deb354c9a9..e1fafdf51f4 100644
--- a/meta-pkgs/boost/distinfo
+++ b/meta-pkgs/boost/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.50 2012/11/07 21:04:11 adam Exp $
+$NetBSD: distinfo,v 1.51 2013/01/16 16:27:23 martin Exp $
SHA1 (boost_1_52_0.tar.bz2) = cddd6b4526a09152ddc5db856463eaa1dc29c5d9
RMD160 (boost_1_52_0.tar.bz2) = 94f72f4553a88495f2052029fb2e90cf8366e75d
@@ -16,3 +16,4 @@ SHA1 (patch-boost_foreach.hpp) = 7cd26c4983873bcac284ad400950e341c559f9a8
SHA1 (patch-boost_foreach_fwd.hpp) = 5accd68d559213a9677f7d1204e72dd082a42a41
SHA1 (patch-libs_context_build_Jamfile.v2) = 93cad3cc588c84e333688318df7250d14a3c302e
SHA1 (patch-libs_filesystem_src_unique_path.cpp) = 3666663305bba85871f2ef291dc117158c678643
+SHA1 (patch-tools_build_v2_engine_hash.c) = f0ea5e721bcb0b215dca466bf8f2794021a62223
diff --git a/meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c b/meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c
new file mode 100644
index 00000000000..68de8c1ad56
--- /dev/null
+++ b/meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c
@@ -0,0 +1,27 @@
+# $NetBSD: patch-tools_build_v2_engine_hash.c,v 1.1 2013/01/16 16:27:23 martin Exp $
+# fix alignement for sparc - time_t requires greater alignement than
+# void*
+
+--- tools/build/v2/engine/hash.c.orig 2012-04-26 05:35:55.000000000 +0200
++++ tools/build/v2/engine/hash.c 2013-01-16 16:13:21.000000000 +0100
+@@ -32,10 +32,19 @@
+
+ /* Header attached to all data items entered into a hash table. */
+
++#if defined(__sparc__) && defined(__NetBSD__)
++/* time_t is bigger than a pointer and needs natural alignement */
++#define ARCH_ALIGNMENT 8
++#endif
++
+ struct hashhdr
+ {
+ struct item * next;
+-};
++}
++#ifdef ARCH_ALIGNMENT
++ __attribute__((aligned(ARCH_ALIGNMENT)))
++#endif
++;
+
+ typedef struct item
+ {