Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/bareos improve lmdb compile patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9bc003f6b108
branches:  trunk
changeset: 436530:9bc003f6b108
user:      kardel <kardel%pkgsrc.org@localhost>
date:      Tue Aug 04 12:56:15 2020 +0000

description:
improve lmdb compile patch

diffstat:

 sysutils/bareos/distinfo                          |   4 +-
 sysutils/bareos/patches/patch-core_src_lmdb_mdb.c |  24 ++++++++--------------
 2 files changed, 11 insertions(+), 17 deletions(-)

diffs (56 lines):

diff -r 6ed9160e8ced -r 9bc003f6b108 sysutils/bareos/distinfo
--- a/sysutils/bareos/distinfo  Tue Aug 04 11:31:57 2020 +0000
+++ b/sysutils/bareos/distinfo  Tue Aug 04 12:56:15 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2020/07/28 06:36:29 kardel Exp $
+$NetBSD: distinfo,v 1.2 2020/08/04 12:56:15 kardel Exp $
 
 SHA1 (bareos-19.2.8.tar.gz) = b26f7db66e108eed1e20b11c36f994456419748e
 RMD160 (bareos-19.2.8.tar.gz) = 221777925946ab05ddc00063ba51daf4555f16d1
@@ -32,7 +32,7 @@
 SHA1 (patch-core_src_lib_mem__pool.cc) = 16b5adc4a5b2b4fd542b4d330e03283b8994a4a7
 SHA1 (patch-core_src_lib_scsi__lli.cc) = 09aa887d71009baa2ce2203c46c88a89097d6546
 SHA1 (patch-core_src_lib_version.c) = edfd88aed983ea3ce1ead6846707b5625ad5fc51
-SHA1 (patch-core_src_lmdb_mdb.c) = 70c76d7ecf610edb47afbb91f3c4d500d85583fe
+SHA1 (patch-core_src_lmdb_mdb.c) = 6cb69f975c23ec5ae52eb1daa8f6f73b7cbf71fd
 SHA1 (patch-core_src_plugins_stored_scsicrypto-sd.cc) = d59125fd445536e220140acf16e43605a4a98e9c
 SHA1 (patch-core_src_plugins_stored_scsitapealert-sd.cc) = 92ef75fbddb587957ec972480a87fe0f5b110111
 SHA1 (patch-core_src_stored_acquire.cc) = c239b2a4a3769b3f99315fae5cc5ee564454a1ad
diff -r 6ed9160e8ced -r 9bc003f6b108 sysutils/bareos/patches/patch-core_src_lmdb_mdb.c
--- a/sysutils/bareos/patches/patch-core_src_lmdb_mdb.c Tue Aug 04 11:31:57 2020 +0000
+++ b/sysutils/bareos/patches/patch-core_src_lmdb_mdb.c Tue Aug 04 12:56:15 2020 +0000
@@ -1,25 +1,19 @@
-$NetBSD: patch-core_src_lmdb_mdb.c,v 1.1 2020/07/28 06:36:29 kardel Exp $
+$NetBSD: patch-core_src_lmdb_mdb.c,v 1.2 2020/08/04 12:56:15 kardel Exp $
 
-       Fix compilation on NetBSD
+       use POSIX semaphores on NetBSD
 
---- core/src/lmdb/mdb.c.orig   2018-12-20 08:51:51.000000000 +0000
+--- core/src/lmdb/mdb.c.orig   2020-08-04 12:17:56.368741881 +0000
 +++ core/src/lmdb/mdb.c
-@@ -150,7 +150,8 @@ typedef SSIZE_T    ssize_t;
+@@ -150,7 +150,11 @@ typedef SSIZE_T   ssize_t;
  
  #if defined(__APPLE__) || defined (BSD)
  # if !(defined(MDB_USE_POSIX_MUTEX) || defined(MDB_USE_POSIX_SEM))
 -# define MDB_USE_SYSV_SEM     1
-+/* # define MDB_USE_SYSV_SEM  1 */
-+# define MDB_USE_POSIX_SEM    1
++#   if defined(__NetBSD__)
++#     define MDB_USE_POSIX_SEM        1
++#   else
++#     define MDB_USE_SYSV_SEM 1
++#   endif
  # endif
  # define MDB_FDATASYNC                fsync
  #elif defined(ANDROID)
-@@ -4829,7 +4830,7 @@ mdb_env_setup_locks(MDB_env *env, char *
- #endif
- #ifdef MDB_USE_SYSV_SEM
-       int semid;
--      union semun semu;
-+      // XXXkd: union semun semu;
- #endif
-       int rc;
-       off_t size, rsize;



Home | Main Index | Thread Index | Old Index