diff options
author | obache <obache@pkgsrc.org> | 2010-09-28 11:08:28 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-09-28 11:08:28 +0000 |
commit | c7a685e2ed2a9c95f0f07022618f0f671f0e3c15 (patch) | |
tree | 49f15dd555b7c37da449ada1c1132e06f1a4630a | |
parent | c2106dc9d08d2af8430cd5205273ac9e2e649651 (diff) | |
download | pkgsrc-c7a685e2ed2a9c95f0f07022618f0f671f0e3c15.tar.gz |
Fixes build failure on MIPS arch, PR#43894.
-rw-r--r-- | databases/db4/distinfo | 3 | ||||
-rw-r--r-- | databases/db4/patches/patch-ae | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/databases/db4/distinfo b/databases/db4/distinfo index 9063b7a0b8d..e566bdfa603 100644 --- a/databases/db4/distinfo +++ b/databases/db4/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.36 2010/06/02 12:06:21 adam Exp $ +$NetBSD: distinfo,v 1.37 2010/09/28 11:08:28 obache Exp $ SHA1 (db-4.8.30.tar.gz) = ab36c170dda5b2ceaad3915ced96e41c6b7e493c RMD160 (db-4.8.30.tar.gz) = dd2fcd4c9b857a91e2f491fd4fadb0c51b993a9c @@ -6,3 +6,4 @@ Size (db-4.8.30.tar.gz) = 22887305 bytes SHA1 (patch-aa) = 1004feec022eefbf3fd57b6d9af99edc5a2bf17a SHA1 (patch-ab) = 55108861b7a14288199fc5b421ae898290511afd SHA1 (patch-ac) = 045a3b83b9c6c164382ec546b06ae248620552cf +SHA1 (patch-ae) = 43e574154de93dba60392b09d6ebddbca1036849 diff --git a/databases/db4/patches/patch-ae b/databases/db4/patches/patch-ae new file mode 100644 index 00000000000..e39a5a41c6a --- /dev/null +++ b/databases/db4/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1 2010/09/28 11:08:29 obache Exp $ + +* fixes build failure on MIPS arch with -mips1. + +--- dbinc/mutex_int.h.orig 2010-04-12 20:25:22.000000000 +0000 ++++ dbinc/mutex_int.h +@@ -778,10 +778,14 @@ MUTEX_SET(tsl_t *tsl) { + static inline void + MUTEX_UNSET(tsl_t *tsl) { + __asm__ volatile( ++ " .set push \n" ++ " .set mips2 \n" + " .set noreorder \n" ++ " .set nomacro \n" + " sync \n" + " sw $0, %0 \n" + " .set reorder \n" ++ " .set pop \n" + : "=m" (*tsl) + : "m" (*tsl) + : "memory"); |