From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-860073-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 954DC58973
	for <garchives@archives.gentoo.org>; Wed, 27 Jan 2016 23:05:25 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8D52321C026;
	Wed, 27 Jan 2016 23:05:24 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 0E52921C026
	for <gentoo-commits@lists.gentoo.org>; Wed, 27 Jan 2016 23:05:23 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 0269F33E3A9
	for <gentoo-commits@lists.gentoo.org>; Wed, 27 Jan 2016 23:05:23 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 036B1E5F
	for <gentoo-commits@lists.gentoo.org>; Wed, 27 Jan 2016 23:05:20 +0000 (UTC)
From: "Ian Stakenvicius" <axs@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ian Stakenvicius" <axs@gentoo.org>
Message-ID: <1453935899.342d66f9a56b13bc363b96e48b795fd9fc618dc9.axs@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-fs/samba/samba-4.2.7-r1.ebuild net-fs/samba/samba-4.2.7-r2.ebuild net-fs/samba/samba-4.3.3-r1.ebuild net-fs/samba/samba-4.3.4-r1.ebuild net-fs/samba/samba-4.3.4.ebuild
X-VCS-Directories: net-fs/samba/
X-VCS-Committer: axs
X-VCS-Committer-Name: Ian Stakenvicius
X-VCS-Revision: 342d66f9a56b13bc363b96e48b795fd9fc618dc9
X-VCS-Branch: master
Date: Wed, 27 Jan 2016 23:05:20 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 1f3aae7d-bf6e-49b3-b425-efceb7d2040f
X-Archives-Hash: 4dad1e95a9ce323b15cdeabbedf0b78f

commit:     342d66f9a56b13bc363b96e48b795fd9fc618dc9
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 22:22:43 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 23:04:59 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=342d66f9

net-fs/samba: bundle ctdb

Samba is the only consumer of dev-db/ctdb, and samba-4.2 and above has dropped support
for building against an external ctdb.  This commit builds and installs ctdb bundled
within samba instead, and soft-blocks the external package to avoid collisions.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=561402

Package-Manager: portage-2.2.26

 .../{samba-4.2.7-r1.ebuild => samba-4.2.7-r2.ebuild}    | 15 +++++++++++++--
 net-fs/samba/samba-4.3.3-r1.ebuild                      | 16 ++++++++++++++--
 .../samba/{samba-4.3.4.ebuild => samba-4.3.4-r1.ebuild} | 17 ++++++++++++++---
 3 files changed, 41 insertions(+), 7 deletions(-)

diff --git a/net-fs/samba/samba-4.2.7-r1.ebuild b/net-fs/samba/samba-4.2.7-r2.ebuild
similarity index 94%
rename from net-fs/samba/samba-4.2.7-r1.ebuild
rename to net-fs/samba/samba-4.2.7-r2.ebuild
index 4530acc..8ea6722 100644
--- a/net-fs/samba/samba-4.2.7-r1.ebuild
+++ b/net-fs/samba/samba-4.2.7-r2.ebuild
@@ -31,6 +31,12 @@ ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
 MULTILIB_WRAPPED_HEADERS=(
 	/usr/include/samba-4.0/policy.h
 	/usr/include/samba-4.0/dcerpc_server.h
+	/usr/include/samba-4.0/ctdb.h
+	/usr/include/samba-4.0/ctdb_client.h
+	/usr/include/samba-4.0/ctdb_protocol.h
+	/usr/include/samba-4.0/ctdb_private.h
+	/usr/include/samba-4.0/ctdb_typesafe_cb.h
+	/usr/include/samba-4.0/ctdb_version.h
 )
 
 # sys-apps/attr is an automagic dependency (see bug #489748)
@@ -58,7 +64,7 @@ CDEPEND="${PYTHON_DEPS}
 	acl? ( virtual/acl )
 	addns? ( net-dns/bind-tools[gssapi] )
 	aio? ( dev-libs/libaio )
-	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
+	cluster? ( !dev-db/ctdb )
 	cups? ( net-print/cups )
 	dmapi? ( sys-apps/dmapi )
 	fam? ( virtual/fam )
@@ -90,6 +96,8 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
 
 WAF_BINARY="${S}/buildtools/bin/waf"
 
+SHAREDMODS=""
+
 pkg_setup() {
 	python-single-r1_pkg_setup
 	if use aio ; then
@@ -104,6 +112,9 @@ pkg_setup() {
 			ewarn "and recompile your kernel..."
 		fi
 	fi
+	if use cluster ; then
+		SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
+	fi
 }
 
 src_prepare() {
@@ -142,7 +153,6 @@ multilib_src_configure() {
 			$(use_with ads)
 			$(usex ads '--with-shared-modules=idmap_ad' '')
 			$(use_with aio aio-support)
-			$(usex cluster '--with-ctdb-dir=/usr' '')
 			$(use_enable avahi)
 			$(use_with cluster cluster-support)
 			$(use_enable cups)
@@ -160,6 +170,7 @@ multilib_src_configure() {
 			$(usex system-mitkrb5 '--with-system-mitkrb5' '')
 			$(use_with winbind)
 			$(usex test '--enable-selftest' '')
+			--with-shared-modules=${SHAREDMODS}
 		)
 	else
 		myconf+=(

diff --git a/net-fs/samba/samba-4.3.3-r1.ebuild b/net-fs/samba/samba-4.3.3-r1.ebuild
index bb4da0b..17a8911 100644
--- a/net-fs/samba/samba-4.3.3-r1.ebuild
+++ b/net-fs/samba/samba-4.3.3-r1.ebuild
@@ -30,6 +30,13 @@ ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
 
 MULTILIB_WRAPPED_HEADERS=(
 	/usr/include/samba-4.0/policy.h
+	/usr/include/samba-4.0/dcerpc_server.h
+	/usr/include/samba-4.0/ctdb.h
+	/usr/include/samba-4.0/ctdb_client.h
+	/usr/include/samba-4.0/ctdb_protocol.h
+	/usr/include/samba-4.0/ctdb_private.h
+	/usr/include/samba-4.0/ctdb_typesafe_cb.h
+	/usr/include/samba-4.0/ctdb_version.h
 )
 
 # sys-apps/attr is an automagic dependency (see bug #489748)
@@ -56,7 +63,7 @@ CDEPEND="${PYTHON_DEPS}
 	acl? ( virtual/acl )
 	addns? ( net-dns/bind-tools[gssapi] )
 	aio? ( dev-libs/libaio )
-	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
+	cluster? ( !dev-db/ctdb )
 	cups? ( net-print/cups )
 	dmapi? ( sys-apps/dmapi )
 	fam? ( virtual/fam )
@@ -88,6 +95,8 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
 
 WAF_BINARY="${S}/buildtools/bin/waf"
 
+SHAREDMODS=""
+
 pkg_setup() {
 	python-single-r1_pkg_setup
 	if use aio ; then
@@ -102,6 +111,9 @@ pkg_setup() {
 			ewarn "and recompile your kernel..."
 		fi
 	fi
+	if use cluster ; then
+		SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
+	fi
 }
 
 src_prepare() {
@@ -140,7 +152,6 @@ multilib_src_configure() {
 			$(use_with ads)
 			$(usex ads '--with-shared-modules=idmap_ad' '')
 			$(use_with aio aio-support)
-			$(usex cluster '--with-ctdb-dir=/usr' '')
 			$(use_enable avahi)
 			$(use_with cluster cluster-support)
 			$(use_enable cups)
@@ -158,6 +169,7 @@ multilib_src_configure() {
 			$(usex system-mitkrb5 '--with-system-mitkrb5' '')
 			$(use_with winbind)
 			$(usex test '--enable-selftest' '')
+			--with-shared-modules=${SHAREDMODS}
 		)
 	else
 		myconf+=(

diff --git a/net-fs/samba/samba-4.3.4.ebuild b/net-fs/samba/samba-4.3.4-r1.ebuild
similarity index 93%
rename from net-fs/samba/samba-4.3.4.ebuild
rename to net-fs/samba/samba-4.3.4-r1.ebuild
index 45798e9..cf4f9af 100644
--- a/net-fs/samba/samba-4.3.4.ebuild
+++ b/net-fs/samba/samba-4.3.4-r1.ebuild
@@ -31,6 +31,12 @@ ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
 MULTILIB_WRAPPED_HEADERS=(
 	/usr/include/samba-4.0/policy.h
 	/usr/include/samba-4.0/dcerpc_server.h
+	/usr/include/samba-4.0/ctdb.h
+	/usr/include/samba-4.0/ctdb_client.h
+	/usr/include/samba-4.0/ctdb_protocol.h
+	/usr/include/samba-4.0/ctdb_private.h
+	/usr/include/samba-4.0/ctdb_typesafe_cb.h
+	/usr/include/samba-4.0/ctdb_version.h
 )
 
 # sys-apps/attr is an automagic dependency (see bug #489748)
@@ -41,7 +47,7 @@ CDEPEND="${PYTHON_DEPS}
 	dev-libs/popt[${MULTILIB_USEDEP}]
 	sys-libs/readline:=
 	virtual/libiconv
-	dev-python/subunit[${PYTHON_USEDEP}]
+	dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
 	>=net-libs/socket_wrapper-1.1.3[${MULTILIB_USEDEP}]
 	sys-apps/attr[${MULTILIB_USEDEP}]
 	sys-libs/libcap
@@ -57,7 +63,7 @@ CDEPEND="${PYTHON_DEPS}
 	acl? ( virtual/acl )
 	addns? ( net-dns/bind-tools[gssapi] )
 	aio? ( dev-libs/libaio )
-	cluster? ( >=dev-db/ctdb-1.0.114_p1 )
+	cluster? ( !dev-db/ctdb )
 	cups? ( net-print/cups )
 	dmapi? ( sys-apps/dmapi )
 	fam? ( virtual/fam )
@@ -89,6 +95,8 @@ CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
 
 WAF_BINARY="${S}/buildtools/bin/waf"
 
+SHAREDMODS=""
+
 pkg_setup() {
 	python-single-r1_pkg_setup
 	if use aio ; then
@@ -103,6 +111,9 @@ pkg_setup() {
 			ewarn "and recompile your kernel..."
 		fi
 	fi
+	if use cluster ; then
+		SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
+	fi
 }
 
 src_prepare() {
@@ -141,7 +152,6 @@ multilib_src_configure() {
 			$(use_with ads)
 			$(usex ads '--with-shared-modules=idmap_ad' '')
 			$(use_with aio aio-support)
-			$(usex cluster '--with-ctdb-dir=/usr' '')
 			$(use_enable avahi)
 			$(use_with cluster cluster-support)
 			$(use_enable cups)
@@ -159,6 +169,7 @@ multilib_src_configure() {
 			$(usex system-mitkrb5 '--with-system-mitkrb5' '')
 			$(use_with winbind)
 			$(usex test '--enable-selftest' '')
+			--with-shared-modules=${SHAREDMODS}
 		)
 	else
 		myconf+=(