initial buildroot for linux 5.15
This commit is contained in:
+62
@@ -0,0 +1,62 @@
|
||||
From b3c61360a93b7f08fc9c33526056211408301ea9 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 23 Nov 2020 21:16:38 +0100
|
||||
Subject: [PATCH] configure.ac: use pkg-config to find netfilter_conntrack
|
||||
|
||||
Use pkg-config to retrieve the dependencies of netfilter_conntrack
|
||||
and avoid the following build failure when building statically:
|
||||
|
||||
configure:13096: /data/buildroot-test/instance-1/output-1/host/bin/x86_64-linux-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -static -I/data/buildroot-test/instance-1/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include -DPCRE_STATIC -pthread -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -static -L/data/buildroot-test/instance-1/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib conftest.c -lnetfilter_conntrack -lnfnetlink -lev -lcares -lsodium -lmbedcrypto -lpcre >&5
|
||||
/data/buildroot-test/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: /data/buildroot-test/instance-1/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/libnetfilter_conntrack.a(api.o): in function `nfct_fill_hdr.constprop.4':
|
||||
api.c:(.text+0x3f): undefined reference to `mnl_nlmsg_put_header'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/6cad497a7ab941a0ee3fd7007defc81e30cdcbe0
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status:
|
||||
https://github.com/shadowsocks/shadowsocks-libev/pull/2773]
|
||||
---
|
||||
configure.ac | 5 +++--
|
||||
src/Makefile.am | 2 +-
|
||||
2 files changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 9787bc2..207c041 100755
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -252,7 +252,8 @@ AC_ARG_ENABLE(connmarktos,
|
||||
if test x"$enable_connmarktos" = "xyes" ; then
|
||||
AC_MSG_NOTICE([Linux Netfilter Conntrack support requested by --enable-connmarktos: ${enable_connmarktos}])
|
||||
if test "x$enable_connmarktos" != "xno"; then
|
||||
- AC_SEARCH_LIBS([nfct_query], [netfilter_conntrack],,[
|
||||
+ PKG_CHECK_MODULES([NETFILTER_CONNTRACK], [libnetfilter_conntrack],,
|
||||
+ [AC_SEARCH_LIBS([nfct_query], [netfilter_conntrack],,[
|
||||
if test x"$enable_connmarktos" = "xyes"; then
|
||||
AC_MSG_ERROR([--enable-connmarktos specified but libnetfilter-conntrack library not found])
|
||||
fi
|
||||
@@ -262,7 +263,7 @@ if test x"$enable_connmarktos" = "xyes" ; then
|
||||
if test x"$enable_connmarktos" = "xyes"; then
|
||||
AC_MSG_ERROR([--enable-connmarktos specified but libnetfilter-conntrack headers not found])
|
||||
fi
|
||||
- with_netfilter_conntrack=no])
|
||||
+ with_netfilter_conntrack=no])])
|
||||
# If nothing is broken; enable the libraries usage.
|
||||
if test "x$with_netfilter_conntrack" != "xno"; then
|
||||
with_netfilter_conntrack=yes
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index c261ed0..b81ced7 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -9,7 +9,7 @@ AM_CFLAGS += -I$(top_srcdir)/libcork/include
|
||||
endif
|
||||
AM_CFLAGS += $(LIBPCRE_CFLAGS)
|
||||
|
||||
-SS_COMMON_LIBS = $(INET_NTOP_LIB) $(LIBPCRE_LIBS)
|
||||
+SS_COMMON_LIBS = $(INET_NTOP_LIB) $(LIBPCRE_LIBS) $(NETFILTER_CONNTRACK_LIBS)
|
||||
if !USE_SYSTEM_SHARED_LIB
|
||||
SS_COMMON_LIBS += $(top_builddir)/libbloom/libbloom.la \
|
||||
$(top_builddir)/libipset/libipset.la \
|
||||
--
|
||||
2.29.2
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
config BR2_PACKAGE_SHADOWSOCKS_LIBEV
|
||||
bool "shadowsocks-libev"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # for libcork
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_8 || !BR2_ARCH_IS_64 # for libcork
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_C_ARES
|
||||
select BR2_PACKAGE_LIBEV
|
||||
select BR2_PACKAGE_LIBSODIUM
|
||||
select BR2_PACKAGE_MBEDTLS
|
||||
select BR2_PACKAGE_PCRE
|
||||
help
|
||||
Shadowsocks-libev is a lightweight secured SOCKS5 proxy for
|
||||
embedded devices and low-end boxes.
|
||||
|
||||
https://github.com/shadowsocks/shadowsocks-libev
|
||||
|
||||
config BR2_PACKAGE_SHADOWSOCKS_LIBEV_CONNMARKTOS
|
||||
bool "connmarktos support in ss-server"
|
||||
depends on BR2_PACKAGE_SHADOWSOCKS_LIBEV
|
||||
select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
|
||||
help
|
||||
Build ss-server with the connmark to TOS feature.
|
||||
|
||||
This feature requires advanced tc, iptables and conntrack
|
||||
rules to perform QoS on the server side.
|
||||
|
||||
If unsure, don't enable this option
|
||||
|
||||
comment "shadowsocks-libev needs a toolchain w/ threads"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_8 || !BR2_ARCH_IS_64
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,7 @@
|
||||
# Locally computed
|
||||
sha256 cfc8eded35360f4b67e18dc447b0c00cddb29cc57a3cec48b135e5fb87433488 shadowsocks-libev-3.3.5.tar.gz
|
||||
|
||||
# License files, locally calculated
|
||||
sha256 736883f97d44dbec288bb82819f18f4f86d02ae3192f6a9abefa00db76bace41 COPYING
|
||||
sha256 c41a4bc2c4c43e4daa3051e77e31b2d5c8500498afaeac6d831d55a4bb8de3fb libbloom/LICENSE
|
||||
sha256 4fa2ada54f8c0410ec243265378242ffe862386d5ac517f8dd30a1911d25ae93 libcork/COPYING
|
||||
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# shadowsocks-libev
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SHADOWSOCKS_LIBEV_VERSION = 3.3.5
|
||||
SHADOWSOCKS_LIBEV_SITE = https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(SHADOWSOCKS_LIBEV_VERSION)
|
||||
SHADOWSOCKS_LIBEV_LICENSE = GPL-3.0+, BSD-2-Clause (libbloom), BSD-3-Clause (libcork, libipset)
|
||||
SHADOWSOCKS_LIBEV_LICENSE_FILES = COPYING libbloom/LICENSE libcork/COPYING
|
||||
SHADOWSOCKS_LIBEV_CPE_ID_VENDOR = shadowsocks
|
||||
SHADOWSOCKS_LIBEV_DEPENDENCIES = host-pkgconf c-ares libev libsodium mbedtls pcre
|
||||
SHADOWSOCKS_LIBEV_INSTALL_STAGING = YES
|
||||
# We're patching configure.ac
|
||||
SHADOWSOCKS_LIBEV_AUTORECONF = YES
|
||||
SHADOWSOCKS_LIBEV_CONF_OPTS = \
|
||||
--with-pcre=$(STAGING_DIR)/usr \
|
||||
--disable-ssp
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SHADOWSOCKS_LIBEV_CONNMARKTOS),y)
|
||||
SHADOWSOCKS_LIBEV_DEPENDENCIES += libnetfilter_conntrack
|
||||
SHADOWSOCKS_LIBEV_CONF_OPTS += --enable-connmarktos
|
||||
else
|
||||
SHADOWSOCKS_LIBEV_CONF_OPTS += --disable-connmarktos
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user