From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6D1B015800A for ; Wed, 12 Jul 2023 05:39:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 410AFE07DB; Wed, 12 Jul 2023 05:39:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 28D44E07DB for ; Wed, 12 Jul 2023 05:39:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id E27E8340AB2 for ; Wed, 12 Jul 2023 05:39:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 39897AD4 for ; Wed, 12 Jul 2023 05:39:21 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1689100348.52eb17d8820266bf422ae5973f37f3290395d14b.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/rauc/, dev-embedded/rauc/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-embedded/rauc/Manifest dev-embedded/rauc/files/rauc-1.10-tests.patch dev-embedded/rauc/rauc-1.10.ebuild X-VCS-Directories: dev-embedded/rauc/files/ dev-embedded/rauc/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 52eb17d8820266bf422ae5973f37f3290395d14b X-VCS-Branch: master Date: Wed, 12 Jul 2023 05:39:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9d7bac4f-b1d2-4a4b-9787-b7b8266aaa1b X-Archives-Hash: 090a0b46f8dea7e63c1ef73f4fd2e42e commit: 52eb17d8820266bf422ae5973f37f3290395d14b Author: Kurt Kanzenbach kmk-computers de> AuthorDate: Tue Jul 11 18:32:28 2023 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Tue Jul 11 18:32:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=52eb17d8 dev-embedded/rauc: add 1.10 Signed-off-by: Kurt Kanzenbach kmk-computers.de> dev-embedded/rauc/Manifest | 1 + dev-embedded/rauc/files/rauc-1.10-tests.patch | 69 +++++++++++++++++++++++++++ dev-embedded/rauc/rauc-1.10.ebuild | 65 +++++++++++++++++++++++++ 3 files changed, 135 insertions(+) diff --git a/dev-embedded/rauc/Manifest b/dev-embedded/rauc/Manifest index 9db0fabf2..f5faec623 100644 --- a/dev-embedded/rauc/Manifest +++ b/dev-embedded/rauc/Manifest @@ -1 +1,2 @@ +DIST rauc-1.10.tar.xz 911872 BLAKE2B 389f29b3786c20ca26d28c39642e72895bfd5b5f88958facfe2b65796ecb4d18645361dd7d490df23b0561878f020fdf8ffbcb41efd4fa9226190a79bc9e01db SHA512 b87e3fef41a4e5c44513bae4366502f0285d0b0136c80fcdede36171710735a26dacecf324a8638feb23c1b60929fc25a53a58213294a93e488827aed3cba926 DIST rauc-1.9.tar.xz 880236 BLAKE2B a42996be51b1afd34be7e72a257d3932bbc4328ced5efa1190a6f5f74296c427e49b819bbd477a8a46a07fa12a4e616278e3370241413989a1a4889f690a84d4 SHA512 461c545619d5827dc0190e0134df04afaf3d10e235b5e521a81be0759aeb8c8452ee5ab8a5a627265d8878fd25f614ad6b8fabaa085fb203ec7c5b4e3e8448a3 diff --git a/dev-embedded/rauc/files/rauc-1.10-tests.patch b/dev-embedded/rauc/files/rauc-1.10-tests.patch new file mode 100644 index 000000000..710f6e02c --- /dev/null +++ b/dev-embedded/rauc/files/rauc-1.10-tests.patch @@ -0,0 +1,69 @@ +From cfeab43e8c1ebbe952bca9b71fb8400a9947d229 Mon Sep 17 00:00:00 2001 +From: Kurt Kanzenbach +Date: Sat, 15 Aug 2020 08:45:21 +0200 +Subject: [PATCH] tests: Disable failed tests + +The network and squashfs tests won't work within portage. Disable them. + +Signed-off-by: Kurt Kanzenbach +--- + Makefile.am | 7 ------- + test/rauc.t | 24 ++++++++++++------------ + 2 files changed, 12 insertions(+), 19 deletions(-) + +--- a/Makefile.am ++++ b/Makefile.am +@@ -171,10 +171,6 @@ check_PROGRAMS = \ + test/slot.test \ + test/stats.test + +-if WANT_NETWORK +-check_PROGRAMS += test/network.test +-endif +- + if ENABLE_STREAMING + check_PROGRAMS += test/nbd.test + endif +@@ -282,9 +278,6 @@ test_utils_test_LDADD = librauctest.la + test_install_test_SOURCES = test/install.c + test_install_test_LDADD = librauctest.la + +-test_network_test_SOURCES = test/network.c +-test_network_test_LDADD = librauctest.la +- + test_progress_test_SOURCES = test/progress.c + test_progress_test_LDADD = librauctest.la + +--- a/test/rauc.t ++++ b/test/rauc.t +@@ -371,18 +371,18 @@ test_expect_success "rauc bundle (test c + test -f ${TEST_TMPDIR}/out.raucb + " + +-test_expect_success "rauc bundle mksquashfs extra args" " +- test_when_finished rm -rf ${TEST_TMPDIR}/install-content && +- test_when_finished rm -f ${TEST_TMPDIR}/out.raucb && +- cp -rL ${SHARNESS_TEST_DIRECTORY}/install-content ${TEST_TMPDIR}/ && +- rauc \ +- --cert $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/autobuilder-1.cert.pem \ +- --key $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/private/autobuilder-1.pem \ +- bundle \ +- --mksquashfs-args=\"-comp xz -info -progress\" \ +- ${TEST_TMPDIR}/install-content ${TEST_TMPDIR}/out.raucb && +- rauc -c $SHARNESS_TEST_DIRECTORY/test.conf info ${TEST_TMPDIR}/out.raucb +-" ++# test_expect_success "rauc bundle mksquashfs extra args" " ++# test_when_finished rm -rf ${TEST_TMPDIR}/install-content && ++# test_when_finished rm -f ${TEST_TMPDIR}/out.raucb && ++# cp -rL ${SHARNESS_TEST_DIRECTORY}/install-content ${TEST_TMPDIR}/ && ++# rauc \ ++# --cert $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/autobuilder-1.cert.pem \ ++# --key $SHARNESS_TEST_DIRECTORY/openssl-ca/dev/private/autobuilder-1.pem \ ++# bundle \ ++# --mksquashfs-args=\"-comp xz -info -progress\" \ ++# ${TEST_TMPDIR}/install-content ${TEST_TMPDIR}/out.raucb && ++# rauc -c $SHARNESS_TEST_DIRECTORY/test.conf info ${TEST_TMPDIR}/out.raucb ++# " + + test_expect_success PKCS11 "rauc bundle with PKCS11 (key 1)" " + test_when_finished rm -rf ${TEST_TMPDIR}/install-content && diff --git a/dev-embedded/rauc/rauc-1.10.ebuild b/dev-embedded/rauc/rauc-1.10.ebuild new file mode 100644 index 000000000..a3aadea33 --- /dev/null +++ b/dev-embedded/rauc/rauc-1.10.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DOCS_BUILDER="sphinx" +DOCS_DIR="${S}/docs" + +inherit autotools python-any-r1 docs + +DESCRIPTION="Lightweight update client that runs on your Embedded Linux device" +HOMEPAGE="https://rauc.io/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~amd64" +IUSE="gpt json network service test" + +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-util/gdbus-codegen + virtual/pkgconfig + test? ( + dev-libs/opensc + net-misc/casync + sys-fs/mtd-utils + sys-fs/squashfs-tools + sys-libs/libfaketime + ) +" +RDEPEND=" + dev-libs/glib:2 + dev-libs/openssl:0= + json? ( dev-libs/json-glib ) + network? ( net-misc/curl ) + service? ( sys-apps/dbus ) +" +DEPEND=" + ${RDEPEND} +" + +PATCHES=( "${FILESDIR}/${P}-tests.patch" ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=( + $(use_enable gpt) + $(use_enable json) + $(use_enable network) + $(use_enable service) + ) + econf "${myconf[@]}" +} + +src_compile() { + default + docs_compile +}