From dde93de0e8bc74bf49b5d3dde376614951b7b5f0 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Mon, 7 Oct 2024 12:03:31 +0000 Subject: [PATCH] talloc: initial package required by cifs-utils-7.1 --- packages/devel/talloc/config/talloc-cache.txt | 48 ++++++++++++++ packages/devel/talloc/package.mk | 62 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 packages/devel/talloc/config/talloc-cache.txt create mode 100644 packages/devel/talloc/package.mk diff --git a/packages/devel/talloc/config/talloc-cache.txt b/packages/devel/talloc/config/talloc-cache.txt new file mode 100644 index 0000000000..d4deb25508 --- /dev/null +++ b/packages/devel/talloc/config/talloc-cache.txt @@ -0,0 +1,48 @@ +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: "3.0.0" +Checking uname version type: "#1 Tue Nov 1 12:34:56 UTC 2013" +Checking value of NSIG: "32" +Checking value of _NSIG: "64" +Checking value of SIGRTMAX: "64" +Checking value of SIGRTMIN: "32" +Checking errno of iconv for illegal multibyte sequence: "0" +Checking for a 64-bit host to support lmdb: NO +Checking value of GNUTLS_CIPHER_AES_128_CFB8: OK +Checking value of GNUTLS_MAC_AES_CMAC_128: OK +Checking whether fcntl supports flags to send direct I/O availability signals: OK +Checking whether fcntl supports setting/geting hints: OK +Checking for gnutls fips mode support: NO +Checking for readlink breakage: NO +Checking whether fcntl supports setting/getting hints: OK diff --git a/packages/devel/talloc/package.mk b/packages/devel/talloc/package.mk new file mode 100644 index 0000000000..49f8b873d0 --- /dev/null +++ b/packages/devel/talloc/package.mk @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv) + +PKG_NAME="talloc" +PKG_VERSION="2.4.2" +PKG_SHA256="85ecf9e465e20f98f9950a52e9a411e14320bc555fa257d87697b7e7a9b1d8a6" +PKG_LICENSE="LGPL-3.0-or-later" +PKG_SITE="https://talloc.samba.org/" +PKG_URL="https://www.samba.org/ftp/talloc/talloc-${PKG_VERSION}.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_LONGDESC="talloc is a hierarchical, reference counted memory pool system with destructors" + +configure_package() { + PKG_WAF_VERBOSE="-v" + + PKG_CONFIGURE_OPTS="--prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --cross-compile \ + --cross-answers=${PKG_BUILD}/cache.txt \ + --hostcc=gcc \ + --disable-rpath \ + --disable-rpath-install \ + --disable-rpath-private-install" +} + +pre_configure_target() { + # talloc uses its own build directory + cd ${PKG_BUILD} + rm -rf .${TARGET_NAME} + + # support 64-bit offsets and seeks on 32-bit platforms + if [ "${TARGET_ARCH}" = "arm" ]; then + export CFLAGS+=" -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED_ -Doff_t=off64_t -Dlseek=lseek64" + fi +} + +configure_target() { + cp ${PKG_DIR}/config/talloc-cache.txt ${PKG_BUILD}/cache.txt + echo "Checking uname machine type: \"${TARGET_ARCH}\"" >>${PKG_BUILD}/cache.txt + + PYTHON_CONFIG="${SYSROOT_PREFIX}/usr/bin/python3-config" \ + python_LDFLAGS="" python_LIBDIR="" \ + PYTHON=${TOOLCHAIN}/bin/python3 ./configure ${PKG_CONFIGURE_OPTS} +} + +make_target() { + make ${PKG_SAMBA_TARGET} -j${CONCURRENCY_MAKE_LEVEL} +} + +makeinstall_target() { + PYTHONHASHSEED=1 WAF_MAKE=1 ./buildtools/bin/waf install ${PKG_WAF_VERBOSE} --destdir=${SYSROOT_PREFIX} -j${CONCURRENCY_MAKE_LEVEL} +} + +post_makeinstall_target() { + mkdir -p ${INSTALL}/usr/lib + cp -PR ${PKG_BUILD}/bin/default/libtalloc.so* ${INSTALL}/usr/lib +}