Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2018 00:02:58 +0000 (UTC)
From:      "Timur I. Bakeyev" <timur@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r463612 - in head/databases/ldb13: . files
Message-ID:  <201803050002.w2502w4o065891@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: timur
Date: Mon Mar  5 00:02:58 2018
New Revision: 463612
URL: https://svnweb.freebsd.org/changeset/ports/463612

Log:
  Update ldb13 to the latest 1.3.2 version.

Added:
  head/databases/ldb13/files/patch-ldb_cache.c   (contents, props changed)
  head/databases/ldb13/files/patch-ldb_mod_op_test.c   (contents, props changed)
Deleted:
  head/databases/ldb13/files/patch-common__ldb_modules.c
Modified:
  head/databases/ldb13/Makefile
  head/databases/ldb13/distinfo

Modified: head/databases/ldb13/Makefile
==============================================================================
--- head/databases/ldb13/Makefile	Sun Mar  4 23:14:00 2018	(r463611)
+++ head/databases/ldb13/Makefile	Mon Mar  5 00:02:58 2018	(r463612)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=		ldb
-PORTVERSION=		1.3.1
+PORTVERSION=		1.3.2
 PORTREVISION=		0
 PORTEPOCH=		0
 CATEGORIES=		databases
@@ -49,11 +49,15 @@ CONFIGURE_ARGS+=	--mandir=${MANPREFIX}/man \
 			--disable-rpath \
 			--without-gettext
 
-OPTIONS_DEFINE=		MANPAGES
+OPTIONS_DEFINE=		MANPAGES DEBUG
 MANPAGES_DESC=		Build and install manpages (requires textproc/docbook-xsl)
 
 .include <bsd.port.options.mk>
 
+DEBUG_CONFIGURE_ON=	--verbose --enable-debug
+DEBUG_MAKE_ARGS=	--verbose
+DEBUG_FLAGS=		-g -ggdb3 -O0
+
 LDB_BINS=		bin/ldbedit \
 			bin/ldbmodify \
 			bin/ldbadd \
@@ -170,16 +174,18 @@ pre-build-MANPAGES-off:
 .endfor
 
 post-install:
-.for lib in ${LDB_BINS} ${LDB_LIBS}
+.if !defined(WITH_DEBUG)
+.	for lib in ${LDB_BINS} ${LDB_LIBS}
 			${STRIP_CMD} ${STAGEDIR}${PREFIX}/${lib}
-.endfor
-.if !defined(NO_PYTHON)
+.	endfor
+.	if !defined(NO_PYTHON)
 			${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyldb-util.so
 			${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ldb.so
-.if defined(SAMBA4_PYTHON3)
+.		if defined(SAMBA4_PYTHON3)
 			${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyldb-util.${SAMBA4_PYTHON3_SO_ABI}.so
 			${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SAMBA4_PYTHON3_SITELIBDIR}/ldb.${SAMBA4_PYTHON3_SO_ABI}.so
-.endif
+.		endif
+.	endif
 .endif
 
 .include <bsd.port.post.mk>

Modified: head/databases/ldb13/distinfo
==============================================================================
--- head/databases/ldb13/distinfo	Sun Mar  4 23:14:00 2018	(r463611)
+++ head/databases/ldb13/distinfo	Mon Mar  5 00:02:58 2018	(r463612)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1516159739
-SHA256 (ldb-1.3.1.tar.gz) = b19f2c9f55ae0f46aa5ebaea0bf1a47ec1ac135e1d78af0f6318cf50bf62cbd2
-SIZE (ldb-1.3.1.tar.gz) = 1361723
+TIMESTAMP = 1520025663
+SHA256 (ldb-1.3.2.tar.gz) = ce3ef0b7358a8c5437d2cc0ba3fd6c2f2b7017bc87b09527406c8e34a82376ab
+SIZE (ldb-1.3.2.tar.gz) = 1364976

Added: head/databases/ldb13/files/patch-ldb_cache.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/ldb13/files/patch-ldb_cache.c	Mon Mar  5 00:02:58 2018	(r463612)
@@ -0,0 +1,13 @@
+--- ldb_tdb/ldb_cache.c.orig	2018-03-04 05:41:25.313506000 +0100
++++ ldb_tdb/ldb_cache.c	2018-03-04 05:46:09.353115000 +0100
+@@ -91,7 +91,9 @@ static int ldb_schema_attribute_compare(
+ {
+ 	const struct ldb_schema_attribute *sa1 = (const struct ldb_schema_attribute *)p1;
+ 	const struct ldb_schema_attribute *sa2 = (const struct ldb_schema_attribute *)p2;
+-	return ldb_attr_cmp(sa1->name, sa2->name);
++	int res = ldb_attr_cmp(sa1->name, sa2->name);
++
++	return (res) ? res : (sa1->flags > sa2->flags) ? 1 : (sa1->flags < sa2->flags) ? -1 : 0;
+ }
+ 
+ /*

Added: head/databases/ldb13/files/patch-ldb_mod_op_test.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/ldb13/files/patch-ldb_mod_op_test.c	Mon Mar  5 00:02:58 2018	(r463612)
@@ -0,0 +1,11 @@
+--- tests/ldb_mod_op_test.c.orig	2018-03-02 23:35:09.639709000 +0100
++++ tests/ldb_mod_op_test.c	2018-03-02 23:44:00.194683000 +0100
+@@ -3529,7 +3529,7 @@ static void test_ldb_unique_index_duplic
+ 	assert_int_equal(ret, LDB_SUCCESS);
+ 
+ 	msg02 = ldb_msg_new(tmp_ctx);
+-	assert_non_null(msg01);
++	assert_non_null(msg02);
+ 
+ 	msg02->dn = ldb_dn_new_fmt(msg02, test_ctx->ldb, "dc=test02");
+ 	assert_non_null(msg02->dn);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803050002.w2502w4o065891>