@@ -712,6 +712,7 @@ F: package/x264/
N: David GOUARIN <dgouarin@gmail.com>
F: package/librelp/
+F: package/libtalloc/
N: David Lechner <david@lechnology.com>
F: board/lego/ev3/
@@ -1894,6 +1894,7 @@ menu "Other"
source "package/libsigc/Config.in"
source "package/libsigsegv/Config.in"
source "package/libspatialindex/Config.in"
+ source "package/libtalloc/Config.in"
source "package/libtasn1/Config.in"
source "package/libtommath/Config.in"
source "package/libtpl/Config.in"
new file mode 100644
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBTALLOC
+ bool "libtalloc"
+ depends on BR2_TOOLCHAIN_USES_GLIBC && !BR2_COMPILER_PARANOID_UNSAFE_PATH || !BR2_TOOLCHAIN_USES_GLIBC
+ help
+ talloc is a hierarchical, reference counted memory pool system with
+ destructors. It is the core memory allocator used in Samba.
+
+ https://talloc.samba.org/talloc/doc/html/index.html
+
new file mode 100644
@@ -0,0 +1,42 @@
+Checking simple C program: OK
+rpath library support: OK
+-Wl,--version-script support: OK
+Checking getconf LFS_CFLAGS: NO
+Checking for large file support without additional flags: OK
+Checking for -D_LARGE_FILES: OK
+Checking correct behavior of strtoll: NO
+Checking for working strptime: OK
+Checking for C99 vsnprintf: OK
+Checking for HAVE_SHARED_MMAP: OK
+Checking for HAVE_MREMAP: OK
+Checking for HAVE_INCOHERENT_MMAP: NO
+Checking for HAVE_SECURE_MKSTEMP: OK
+Checking for HAVE_IFACE_GETIFADDRS: OK
+Checking for kernel change notify support: OK
+Checking for Linux kernel oplocks: OK
+Checking for kernel share modes: OK
+Checking if can we convert from CP850 to UCS-2LE: OK
+Checking if can we convert from UTF-8 to UCS-2LE: OK
+Checking whether we can use Linux thread-specific credentials with 32-bit system calls: OK
+Checking whether we can use Linux thread-specific credentials: OK
+Checking whether setreuid is available: OK
+Checking whether setresuid is available: OK
+Checking whether seteuid is available: OK
+Checking whether fcntl locking is available: OK
+Checking whether fcntl lock supports open file description locks: OK
+Checking for the maximum value of the 'time_t' type: OK
+Checking whether the realpath function allows a NULL argument: OK
+Checking whether POSIX capabilities are available: OK
+Checking for ftruncate extend: OK
+vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
+getcwd takes a NULL argument: OK
+Checking uname sysname type: "Linux"
+Checking uname release type: "5.4.0"
+Checking uname version type: "#1 Tue Oct 1 00:00:00 UTC 2020"
+Checking value of NSIG: "65"
+Checking value of _NSIG: "65"
+Checking value of SIGRTMAX: "64"
+Checking value of SIGRTMIN: "34"
+Checking errno of iconv for illegal multibyte sequence: "0"
+checking for clnt_create(): OK
+Checking for a 64-bit host to support lmdb: NO
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77 talloc-2.3.1.tar.gz
+
new file mode 100644
@@ -0,0 +1,55 @@
+################################################################################
+#
+# libtalloc
+#
+################################################################################
+
+LIBTALLOC_VERSION = 2.3.1
+LIBTALLOC_SOURCE = talloc-$(LIBTALLOC_VERSION).tar.gz
+LIBTALLOC_SITE = https://www.samba.org/ftp/talloc
+LIBTALLOC_LICENSE = LGPL-3.0
+LIBTALLOC_LICENSE_FILES =
+LIBTALLOC_INSTALL_STAGING = YES
+
+LIBTALLOC_CONF_OPTS += --disable-python
+LIBTALLOC_NEEDS_EXTERNAL_WAF = YES
+
+define LIBTALLOC_CONFIGURE_CMDS
+ $(INSTALL) -m 0644 package/libtalloc/libtalloc-cache.txt $(@D)/cache.txt;
+ echo 'Checking uname machine type: $(BR2_ARCH)' >>$(@D)/cache.txt;
+ cd $(@D) && $(TARGET_CONFIGURE_OPTS) $(LIBTALLOC_CONF_ENV) \
+ $(HOST_DIR)/bin/python3 buildtools/bin/waf configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --cross-compile \
+ --cross-answers=$(@D)/cache.txt \
+ --hostcc=gcc \
+ $(LIBTALLOC_CONF_OPTS) \
+ $(LIBTALLOC_WAF_OPTS)
+endef
+
+define LIBTALLOC_BUILD_CMDS
+ cd $(@D) && \
+ $(TARGET_MAKE_ENV) $(HOST_DIR)/bin/python3 buildtools/bin/waf \
+ build -j $(PARALLEL_JOBS) $(LIBTALLOC_BUILD_OPTS) \
+ $(LIBTALLOC_WAF_OPTS)
+endef
+
+define LIBTALLOC_INSTALL_STAGING_CMDS
+ cd $(@D) && \
+ $(TARGET_MAKE_ENV) $(HOST_DIR)/bin/python3 buildtools/bin/waf \
+ install --destdir=$(STAGING_DIR) \
+ $(LIBTALLOC_INSTALL_STAGING_OPTS) \
+ $(LIBTALLOC_WAF_OPTS)
+endef
+
+define LIBTALLOC_INSTALL_TARGET_CMDS
+ cd $(@D) && \
+ $(TARGET_MAKE_ENV) $(HOST_DIR)/bin/python3 buildtools/bin/waf \
+ install --destdir=$(TARGET_DIR) \
+ $(LIBTALLOC_INSTALL_TARGET_OPTS) \
+ $(LIBTALLOC_WAF_OPTS)
+endef
+
+$(eval $(waf-package))
+
talloc is a hierarchical, reference counted memory pool system with destructors. It is the core memory allocator used in Samba. Signed-off-by: David GOUARIN <dgouarin@gmail.com> --- DEVELOPERS | 1 + package/Config.in | 1 + package/libtalloc/Config.in | 9 +++++ package/libtalloc/libtalloc-cache.txt | 42 ++++++++++++++++++++ package/libtalloc/libtalloc.hash | 3 ++ package/libtalloc/libtalloc.mk | 55 +++++++++++++++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 package/libtalloc/Config.in create mode 100644 package/libtalloc/libtalloc-cache.txt create mode 100644 package/libtalloc/libtalloc.hash create mode 100644 package/libtalloc/libtalloc.mk