From patchwork Thu Jan 14 02:38:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pavel_=C5=A0imerda?= X-Patchwork-Id: 1426139 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=simerda.eu Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=VBfAw5oQ; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DGT9Q0TXVz9sT6 for ; Thu, 14 Jan 2021 13:42:01 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4LyYGii04ydVhd5t3HXuxt9Pt+4tc6/h3++f59Rl+MY=; b=VBfAw5oQeWNEN9osZQAEHQeq9 6dm/eFl4VCAer6mGYtq2xLGxfGCm0dFpRL7tQmnUxuiL+oVa94Ov9wLUbiitJEkzWQoA+0wvZzlPX wjAgbTRBuDEpBpPWAuS6HXzzzmZEYnp5vxS9i1271T2CzJ7KFyfwFNm9JDQXWGAYgEoNN5M6x+7Ih 0lbqKHzRq9LFwf/UzYscI2sHYrR0/b4vZHDUvKE9Pv3+aPpbyeSS0D8MyXTK8vqI+4A4Hv/U7Pd8a X/PE8M1DndifACjia/PudGd3BiXWHziwzbnW+q8bCisq+GqkF0J2P9osWB2WA3Q3gL1rG2UZqaS7/ s2WNWa1cA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzsXj-0007m0-3P; Thu, 14 Jan 2021 02:39:23 +0000 Received: from fox.pavlix.cz ([2a01:430:17:1::ffff:1417]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzsXh-0007l5-04 for openwrt-devel@lists.openwrt.org; Thu, 14 Jan 2021 02:39:22 +0000 Received: from zorg.lan (unknown [217.30.64.218]) by fox.pavlix.cz (Postfix) with ESMTPSA id 6F145E37CE; Thu, 14 Jan 2021 03:39:12 +0100 (CET) From: =?utf-8?q?Pavel_=C5=A0imerda?= To: openwrt-devel@lists.openwrt.org Subject: [PATCH 2/2] libteam: add library to control team devices Date: Thu, 14 Jan 2021 03:38:48 +0100 Message-Id: <20210114023848.27135-2-code@simerda.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210114023848.27135-1-code@simerda.eu> References: <20210114023848.27135-1-code@simerda.eu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210113_213921_163723_ED9F9D56 X-CRM114-Status: GOOD ( 12.63 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Pavel_=C5=A0imerda?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org --- package/network/services/libteam/Makefile | 30 +++++++++++++ .../0001-fix-build-on-OpenWRT-musl-libc.patch | 43 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 package/network/services/libteam/Makefile create mode 100644 package/network/services/libteam/patches/0001-fix-build-on-OpenWRT-musl-libc.patch diff --git a/package/network/services/libteam/Makefile b/package/network/services/libteam/Makefile new file mode 100644 index 0000000000..367134656b --- /dev/null +++ b/package/network/services/libteam/Makefile @@ -0,0 +1,30 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME := libteam +PKG_FIXUP := autoreconf +PKG_BUILD_DEPENDS := libdaemon jansson +PKG_INSTALL := 1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL=https://github.com/jpirko/libteam.git +PKG_SOURCE_DATE:=2021-01-12 +PKG_SOURCE_VERSION:=61efd6de2fbb8ee077863ee5a355ac3dfd9365b9 + +PKG_LICENSE:=LGPL-2.1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libteam + SECTION := base + CATEGORY := Network + DEPENDS := +libnl +libnl-cli +libnl-core +libnl-genl +libnl-nf +libnl-route +libdaemon +jansson + TITLE := Library for controlling team network device + URL := http://libteam.org/ +endef + +define Package/libteam/install + $(INSTALL_DIR) $(1)/ + $(CP) $(PKG_INSTALL_DIR)/. $(1)/ +endef + +$(eval $(call BuildPackage,libteam)) diff --git a/package/network/services/libteam/patches/0001-fix-build-on-OpenWRT-musl-libc.patch b/package/network/services/libteam/patches/0001-fix-build-on-OpenWRT-musl-libc.patch new file mode 100644 index 0000000000..71b2b8abba --- /dev/null +++ b/package/network/services/libteam/patches/0001-fix-build-on-OpenWRT-musl-libc.patch @@ -0,0 +1,43 @@ +From 5a5825708ba0bfcb7700a9fba4ea9f8c41c1ae6c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pavel=20=C5=A0imerda?= +Date: Tue, 5 Jan 2021 22:13:06 +0100 +Subject: [PATCH] fix build on OpenWRT/musl-libc +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Pavel Šimerda +--- + teamd/teamd_runner_lacp.c | 2 -- + utils/teamnl.c | 1 + + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/teamd/teamd_runner_lacp.c b/teamd/teamd_runner_lacp.c +index 9437f05..f524be2 100644 +--- a/teamd/teamd_runner_lacp.c ++++ b/teamd/teamd_runner_lacp.c +@@ -23,9 +23,7 @@ + #include + #include + #include +-#include + #include +-#include + #include + #include + #include +diff --git a/utils/teamnl.c b/utils/teamnl.c +index c53345d..ec2b435 100644 +--- a/utils/teamnl.c ++++ b/utils/teamnl.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.29.2 +