Comment 1 for bug 591261

Revision history for this message
kaixinbird (kaixinbird) wrote :

i Modify the samba build file in (packages/network/samba)

add the option

--without-acl-support \

-------------------------------------------------------------------------------------

#!/bin/sh

. config/options

$SCRIPTS/build toolchain

if [ "$AVAHI_DAEMON" = yes ]; then
  $SCRIPTS/build avahi
  SMB_AVAHI="--enable-avahi"
else
  SMB_AVAHI="--disable-avahi"
fi

# Fails to compile using the gold linker
  CFLAGS=`echo $CFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
  CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
  LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`

# Fails to compile with GCC's link time optimization.
  CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
  CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
  LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`

export samba_cv_CC_NEGATIVE_ENUM_VALUES=no

cd $PKG_BUILD/source3
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --localstatedir=/var \
            --sysconfdir=/etc \
            --with-configdir=/etc/samba \
            --with-privatedir=/var/run \
            --enable-shared \
            --disable-static \
            --enable-debug \
            --with-fhs \
            --enable-pie \
            --with-pthreads \
            --with-sqlite3 \
            --enable-relro \
            --disable-swat \
            --disable-cups \
            $SMB_AVAHI \
            --without-pam \
            --without-ads \
            --without-libtalloc \
            --without-libtdb \
            --without-libnetapi \
            --without-cifsmount \
            --without-ldap \
            --without-acl-support \
     --with-winbind \
            --with-dnsupdate \
            --with-automount \
            --with-included-popt \
            --with-libsmbclient \
            --without-libsmbsharemodes \
            --without-quotas \
            --without-sys-quotas \
            --with-syslog \

make bin/libsmbclient.so \
     bin/smbd

mkdir -p $SYSROOT_PREFIX/usr/lib
  cp -PR bin/libsmbclient.so* $SYSROOT_PREFIX/usr/lib

mkdir -p $SYSROOT_PREFIX/usr/include
  cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include

mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
  cp pkgconfig/smbclient.pc $SYSROOT_PREFIX/usr/lib/pkgconfig