Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418331 - net-fs/samba-3.6.5 with cluster support no way to configure idmap_tdb2
Summary: net-fs/samba-3.6.5 with cluster support no way to configure idmap_tdb2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-31 06:19 UTC by Vladimir
Modified: 2012-08-10 07:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2012-05-31 06:19:31 UTC
I am trying to  test samba cluster on gentoo. 

From  http://wiki.samba.org/index.php/CTDB_Setup :
To build a copy of Samba3 with clustering and ctdb support you should do this:
......
   ./configure --with-ctdb=/usr/src/ctdb --with-cluster-support --enable-pie=no --with-shared-modules=idmap_tdb2
......

But when I enable  cluster and cman use ebuild not configure source with idmap_tdb2, neither disable pie. As a result winbindd can not find tdb2.so and can not correctly work in cluster. 



So I have  resolve this problem by ebuild patch.

............
src_configure() {
        local myconf

        # Filter out -fPIE
        [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie"
        #Disable pae on cluster 
        use cluster && myconf+="  --enable-pie=no"
...........


pkg_setup() {
.....   
        #Adding idmap_tdb2 backend 
        use cluster && SHAREDMODS="${SHAREDMODS},idmap_tdb2" 
        fi
}
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2012-08-10 07:24:42 UTC
Fixed in bump to 3.6.7