diff options
author | Kurt Kanzenbach <kurt@kmk-computers.de> | 2023-04-07 14:13:02 +0200 |
---|---|---|
committer | Kurt Kanzenbach <kurt@kmk-computers.de> | 2023-04-07 14:13:30 +0200 |
commit | d5ff8aaec12880d3a381d0b2d77f36450018d68a (patch) | |
tree | 4f29ac236ecc1078a201541f8aea733c3500e382 /dev-embedded | |
parent | net-im/session-desktop-bin: add 1.10.8, drop 1.10.7 (diff) | |
download | guru-d5ff8aaec12880d3a381d0b2d77f36450018d68a.tar.gz guru-d5ff8aaec12880d3a381d0b2d77f36450018d68a.tar.bz2 guru-d5ff8aaec12880d3a381d0b2d77f36450018d68a.zip |
dev-embedded/rauc: add 1.9
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/rauc/Manifest | 1 | ||||
-rw-r--r-- | dev-embedded/rauc/files/rauc-1.9-tests.patch | 69 | ||||
-rw-r--r-- | dev-embedded/rauc/rauc-1.9.ebuild | 65 |
3 files changed, 135 insertions, 0 deletions
diff --git a/dev-embedded/rauc/Manifest b/dev-embedded/rauc/Manifest index 353a16d1a..10d589565 100644 --- a/dev-embedded/rauc/Manifest +++ b/dev-embedded/rauc/Manifest @@ -1 +1,2 @@ DIST rauc-1.8.tar.xz 1114180 BLAKE2B d88cc35b773f79515227eb8c7f2b8aa15072add6ad38b249d0bc3ee2430e9a78d2ff235c9b257542d365bad59f2e9e8f7463a6c98a8ae5344519dd2d90d742b6 SHA512 126601a567d185ac22b7f58cbfff2a8c42d0d80badc939ef48ea988f1897f2957ec83b3611d80d8f34d39050cc5e205e15041b09d474bfa9a075ff04ee461374 +DIST rauc-1.9.tar.xz 880236 BLAKE2B a42996be51b1afd34be7e72a257d3932bbc4328ced5efa1190a6f5f74296c427e49b819bbd477a8a46a07fa12a4e616278e3370241413989a1a4889f690a84d4 SHA512 461c545619d5827dc0190e0134df04afaf3d10e235b5e521a81be0759aeb8c8452ee5ab8a5a627265d8878fd25f614ad6b8fabaa085fb203ec7c5b4e3e8448a3 diff --git a/dev-embedded/rauc/files/rauc-1.9-tests.patch b/dev-embedded/rauc/files/rauc-1.9-tests.patch new file mode 100644 index 000000000..bafaeed34 --- /dev/null +++ b/dev-embedded/rauc/files/rauc-1.9-tests.patch @@ -0,0 +1,69 @@ +From cfeab43e8c1ebbe952bca9b71fb8400a9947d229 Mon Sep 17 00:00:00 2001 +From: Kurt Kanzenbach <kurt@kmk-computers.de> +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 <kurt@kmk-computers.de> +--- + 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 +@@ -359,18 +359,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.9.ebuild b/dev-embedded/rauc/rauc-1.9.ebuild new file mode 100644 index 000000000..fd6267229 --- /dev/null +++ b/dev-embedded/rauc/rauc-1.9.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_{9..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 +} |