Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
From 93865bad4c00e7d3c867965663fdb9a1a0448db8 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 1 Jan 2023 16:53:23 +0100
|
||||
Subject: [PATCH] configure.ac: use pkg-config to retrieve openssl dependencies
|
||||
|
||||
Use pkg-config to retrieve openssl dependencies such as -latomic and
|
||||
avoids the following build failure when building statically on
|
||||
architectures such as sparc:
|
||||
|
||||
/home/autobuild/autobuild/instance-1/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /home/autobuild/autobuild/instance-1/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_atomic_add':
|
||||
threads_pthread.c:(.text+0x208): undefined reference to `__atomic_is_lock_free'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/49abbaa1eab94b248bff434b40728065d687e278
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://github.com/WayneD/rsync/pull/426
|
||||
---
|
||||
configure.ac | 12 ++++++++----
|
||||
1 file changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ccad7f13..b9591866 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -432,11 +432,15 @@ AH_TEMPLATE([USE_OPENSSL],
|
||||
if test x"$enable_openssl" != x"no"; then
|
||||
if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
- AC_SEARCH_LIBS(EVP_MD_CTX_copy, crypto,
|
||||
+ PKG_CHECK_MODULES(LIBCRYPTO, libcrypto,
|
||||
[AC_DEFINE(USE_OPENSSL)
|
||||
- enable_openssl=yes],
|
||||
- [err_msg="$err_msg$nl- Failed to find EVP_MD_CTX_copy function in openssl crypto lib.";
|
||||
- no_lib="$no_lib openssl"])
|
||||
+ enable_openssl=yes
|
||||
+ LIBS="$LIBS $LIBCRYPTO_LIBS"],
|
||||
+ [AC_SEARCH_LIBS(EVP_MD_CTX_copy, crypto,
|
||||
+ [AC_DEFINE(USE_OPENSSL)
|
||||
+ enable_openssl=yes],
|
||||
+ [err_msg="$err_msg$nl- Failed to find EVP_MD_CTX_copy function in openssl crypto lib.";
|
||||
+ no_lib="$no_lib openssl"])])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
err_msg="$err_msg$nl- Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support."
|
||||
--
|
||||
2.35.1
|
||||
|
||||
10
package/rsync/Config.in
Normal file
10
package/rsync/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_RSYNC
|
||||
bool "rsync"
|
||||
# fork()
|
||||
depends on BR2_USE_MMU
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_POPT
|
||||
help
|
||||
File transfer program to keep remote files in sync.
|
||||
|
||||
https://rsync.samba.org/
|
||||
5
package/rsync/rsync.hash
Normal file
5
package/rsync/rsync.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://rsync.samba.org/ftp/rsync/src/rsync-3.5.0.tar.gz.asc
|
||||
sha256 c7ffd1ef653e99540f661e47cb00b7f9cad1ee6b972399b16f93d672656e0d33 rsync-3.5.0.tar.gz
|
||||
# Locally calculated
|
||||
sha256 85c19ea50a224c2d0067a69c083584e5717b40b76610ec1218f91385775067dd COPYING
|
||||
65
package/rsync/rsync.mk
Normal file
65
package/rsync/rsync.mk
Normal file
@@ -0,0 +1,65 @@
|
||||
################################################################################
|
||||
#
|
||||
# rsync
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RSYNC_VERSION = 3.5.0
|
||||
RSYNC_SITE = https://rsync.samba.org/ftp/rsync/src
|
||||
RSYNC_LICENSE = GPL-3.0+ with exceptions
|
||||
RSYNC_LICENSE_FILES = COPYING
|
||||
RSYNC_CPE_ID_VENDOR = samba
|
||||
RSYNC_SELINUX_MODULES = rsync
|
||||
# We're patching configure.ac
|
||||
RSYNC_AUTORECONF = YES
|
||||
RSYNC_DEPENDENCIES = host-pkgconf zlib popt
|
||||
# We know that our C library is modern enough for C99 vsnprintf(). Since
|
||||
# configure can't detect this, we tell configure that vsnprintf() is safe.
|
||||
RSYNC_CONF_ENV = rsync_cv_HAVE_C99_VSNPRINTF=yes
|
||||
RSYNC_CONF_OPTS = \
|
||||
--with-included-zlib=no \
|
||||
--with-included-popt=no \
|
||||
--disable-roll-simd \
|
||||
--disable-md5-asm
|
||||
|
||||
# reconfigure must be run after autoreconf
|
||||
define RSYNC_RUN_RECONFIGURE
|
||||
cd $(@D) && PATH=$(BR_PATH) make reconfigure
|
||||
endef
|
||||
RSYNC_POST_CONFIGURE_HOOKS += RSYNC_RUN_RECONFIGURE
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
RSYNC_DEPENDENCIES += acl
|
||||
else
|
||||
RSYNC_CONF_OPTS += --disable-acl-support
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4),y)
|
||||
RSYNC_DEPENDENCIES += lz4
|
||||
RSYNC_CONF_OPTS += --enable-lz4
|
||||
else
|
||||
RSYNC_CONF_OPTS += --disable-lz4
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
RSYNC_DEPENDENCIES += openssl
|
||||
RSYNC_CONF_OPTS += --enable-openssl
|
||||
else
|
||||
RSYNC_CONF_OPTS += --disable-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XXHASH),y)
|
||||
RSYNC_DEPENDENCIES += xxhash
|
||||
RSYNC_CONF_OPTS += --enable-xxhash
|
||||
else
|
||||
RSYNC_CONF_OPTS += --disable-xxhash
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
RSYNC_DEPENDENCIES += zstd
|
||||
RSYNC_CONF_OPTS += --enable-zstd
|
||||
else
|
||||
RSYNC_CONF_OPTS += --disable-zstd
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user