Return-Path: Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by mail.openembedded.org (Postfix) with ESMTP id 7D43977D04 for ; Tue, 11 Apr 2017 21:12:24 +0000 (UTC) Received: from webmail.kmu-office.ch (unknown [178.209.48.103]) by mail.kmu-office.ch (Postfix) with ESMTPSA id A79DF5C1B28; Tue, 11 Apr 2017 23:12:09 +0200 (CEST) MIME-Version: 1.0 Date: Tue, 11 Apr 2017 14:12:12 -0700 From: Stefan Agner To: Martin Jansa In-Reply-To: References: <1491165189-7839-1-git-send-email-stefan@agner.ch> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.1.3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1491945129; bh=0wDG/ij8F+8NS2usRUJ2ODh9+hruWl7EgvpGyaU++yE=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; b=zjfXNk+bWUUf8mYwpdwmQbZBBq4otZACTMy95nAQrHDuGv1+BrKIVbpqI0qdoKoyMgeQ6IIkptAlP6kJ9c/pDcUrsKHq1HLpHUHCpDBzjGoJLz4EyWzPD+FGZbCaoHFEkFMPKnmXfMIhbZlbKpGsODUuU8MVACaYF9NxgckXJoI= X-Content-Filtered-By: Mailman/MimeDel 2.1.12 Cc: openembedded-devel Subject: Re: [meta-networking][PATCH] wireguard: add WireGuard kernel module and tools X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2017 21:12:25 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I guess one solution would be adding PACKAGE_ARCH = "${MACHINE_ARCH}" to the wireguard-tools recipe, but that seems wrong to me since we can reuse wireguard-tools for all TUNE_PKGARCH's... Any hint/help appreciated. -- Stefan On 2017-04-06 00:29, Martin Jansa wrote: > TUNE_PKGARCH package cannot depend on MACHINE_ARCH module unless you remove this dependency from sstate signature in layer.conf > > Complete log: http://logs.nslu2-linux.org/buildlogs/oe/world/pyro/log.signatures.20170405_114645.log/ > * ERROR: 3 issues were found in these recipes: wireguard-tools > > * ERROR: 1 errors found in signatures.qemux86.do_configure.sigdata.log > * ERROR: 1 errors found in signatures.qemux86.do_populate_sysroot.sigdata.log > * ERROR: 1 errors found in signatures.qemux86.do_package_write_ipk.sigdata.log > > * ERROR: wireguard-tools different signature for task do_configure.sigdata between qemux86copy and qemux86 > * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-glibc/sstate-diff/1491428805/signatures.qemux86.do_configure.sigdata.log > * ERROR: wireguard-tools different signature for task do_populate_sysroot.sigdata between qemux86copy and qemux86 > * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-glibc/sstate-diff/1491428805/signatures.qemux86.do_populate_sysroot.sigdata.log > * ERROR: wireguard-tools different signature for task do_package_write_ipk.sigdata between qemux86copy and qemux86 > * ERROR: 1 errors found in /home/jenkins/oe/world/shr-core/tmp-glibc/sstate-diff/1491428805/signatures.qemux86.do_package_write_ipk.sigdata.log > * ERROR: 3 issues were found in these recipes: wireguard-tools > > On Sun, Apr 2, 2017 at 10:33 PM, Stefan Agner wrote: > >> WireGuard is an extremely simple yet fast and modern VPN that utilizes >> state-of-the-art cryptography. It aims to be faster, simpler, leaner, >> and more useful than IPSec, while avoiding the massive headache. >> >> The recipes add the current experimental snapshot v0.0.20170324 >> out-of-tree kernel module and tools. The kernel module has some kernel >> configuration dependencies such as some configuration part of >> features/netfilter/netfilter.scc, hence netfilter.scc should be part >> of KERNEL_EXTRA_FEATURES (which is the case by default). >> >> Signed-off-by: Stefan Agner >> --- >> .../wireguard/wireguard-module_0.0.20170324.bb [1] | 9 ++++++++ >> .../wireguard/wireguard-tools_0.0.20170324.bb [2] | 27 ++++++++++++++++++++++ >> .../recipes-kernel/wireguard/wireguard.inc | 18 +++++++++++++++ >> 3 files changed, 54 insertions(+) >> create mode 100644 meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170324.bb [1] >> create mode 100644 meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20170324.bb [2] >> create mode 100644 meta-networking/recipes-kernel/wireguard/wireguard.inc >> >> diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170324.bb [1] b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170324.bb [1] >> new file mode 100644 >> index 0000000..aeb8269 >> --- /dev/null >> +++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_0.0.20170324.bb [1] >> @@ -0,0 +1,9 @@ >> +require wireguard.inc >> + >> +inherit module >> + >> +EXTRA_OEMAKE += "KERNELDIR=${STAGING_KERNEL_DIR}" >> +MAKE_TARGETS = "module" >> +MODULES_INSTALL_TARGET = "module-install" >> + >> +RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit" >> diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20170324.bb [2] b/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20170324.bb [2] >> new file mode 100644 >> index 0000000..79d420f >> --- /dev/null >> +++ b/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20170324.bb [2] >> @@ -0,0 +1,27 @@ >> +require wireguard.inc >> + >> +inherit bash-completion systemd pkgconfig >> + >> +DEPENDS = "wireguard-module libmnl" >> + >> +do_compile_prepend () { >> + cd ${S}/tools >> +} >> + >> +do_install () { >> + cd ${S}/tools >> + oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ >> + SYSTEMDUNITDIR="${systemd_unitdir}" \ >> + WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ >> + WITH_BASHCOMPLETION=yes \ >> + WITH_WGQUICK=yes \ >> + install >> +} >> + >> +FILES_${PN} = " \ >> + ${sysconfdir} \ >> + ${systemd_unitdir} \ >> + ${bindir} \ >> +" >> + >> +RDEPENDS_${PN} = "wireguard-module" >> diff --git a/meta-networking/recipes-kernel/wireguard/wireguard.inc b/meta-networking/recipes-kernel/wireguard/wireguard.inc >> new file mode 100644 >> index 0000000..cec7260 >> --- /dev/null >> +++ b/meta-networking/recipes-kernel/wireguard/wireguard.inc >> @@ -0,0 +1,18 @@ >> +SUMMARY = "WireGuard is an extremely simple yet fast and modern VPN" >> +DESCRIPTION="WireGuard is a secure network tunnel, operating at layer 3, \ >> +implemented as a kernel virtual network interface for Linux, which aims to \ >> +replace both IPsec for most use cases, as well as popular user space and/or \ >> +TLS-based solutions like OpenVPN, while being more secure, more performant, \ >> +and easier to use." >> +SECTION = "networking" >> +HOMEPAGE = "https://www.wireguard.io/" >> +LICENSE = "GPLv2" >> + >> +LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" >> + >> +SRC_URI = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${PV}.tar.xz [3]" >> + >> +SRC_URI[md5sum] = "fead9ae2d7c6729e39f529913584494a" >> +SRC_URI[sha256sum] = "2ec08a5d74cb3a63576f06d3cae695b6b8995acd9665e2fa4da91927b467ca51" >> + >> +S = "${WORKDIR}/WireGuard-${PV}/src/" >> -- >> 2.7.4 >> >> -- >> _______________________________________________ >> Openembedded-devel mailing list >> Openembedded-devel@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel [4] Links: ------ [1] http://wireguard-module_0.0.20170324.bb [2] http://wireguard-tools_0.0.20170324.bb [3] https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${PV}.tar.xz [4] http://lists.openembedded.org/mailman/listinfo/openembedded-devel