include $(TOPDIR)/rules.mk
PKG_NAME:=samba
-PKG_VERSION:=4.12.3
-PKG_RELEASE:=5
+PKG_VERSION:=4.12.5
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
http://www.nic.funet.fi/index/samba/pub/samba/stable/ \
http://samba.mirror.bit.nl/samba/ftp/stable/ \
https://download.samba.org/pub/samba/stable/
-PKG_HASH:=3fadbca4504937820d0d8a34e500a1efdcc35e0c554f05bd0a844916ae528727
+PKG_HASH:=54b41cc6378acae20dd155ba55d78ff171875c2eaa3f05f87b485d3d6891b815
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
PKG_LICENSE:=GPL-3.0-only
define Package/samba4-libs
$(call Package/samba4/Default)
TITLE+= libs
- DEPENDS:= +libtirpc +libreadline +libpopt +libcap +zlib +libgnutls +libtasn1 +libuuid +libopenssl +USE_GLIBC:libpthread \
+ DEPENDS:= +libtirpc +libreadline +libpopt +libcap +zlib +libgnutls +libtasn1 +libuuid +libopenssl +libpthread \
+PACKAGE_libpam:libpam \
+SAMBA4_SERVER_VFS:attr \
+SAMBA4_SERVER_VFSX:libaio \
Utilities collection
endef
-TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections -I$(STAGING_DIR)/usr/include/tirpc
+TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
# dont mess with sambas private rpath!
RSTRIP:=:
CONFIGURE_VARS += \
- CPP="$(TARGET_CROSS)cpp"
+ CPP="$(TARGET_CROSS)cpp" \
+ XSLTPROC=false \
+ WAF_NO_PREFORK=1
CONFIGURE_CMD = ./buildtools/bin/waf
HOST_CONFIGURE_CMD = ./buildtools/bin/waf
--- /dev/null
+--- a/lib/util/util_paths.c 2020-07-03
++++ b/lib/util/util_paths.c 2020-07-03
+@@ -26,6 +26,9 @@
+ #include "dynconfig/dynconfig.h"
+ #include "lib/util/util_paths.h"
+ #include "system/passwd.h"
++#if !defined(__GLIBC__)
++ #define NSS_BUFLEN_PASSWD 1024
++#endif
+
+ /**
+ * @brief Returns an absolute path to a file in the Samba modules directory.