public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/rauc/, dev-embedded/rauc/files/
Date: Sat, 26 Feb 2022 18:16:39 +0000 (UTC)	[thread overview]
Message-ID: <1645822585.c372f44426e07dbe04be4aeeba54a761a3232072.flow@gentoo> (raw)

commit:     c372f44426e07dbe04be4aeeba54a761a3232072
Author:     Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Fri Feb 25 20:56:25 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Feb 25 20:56:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c372f444

dev-embedded/rauc: Bump version to v1.6

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>

 dev-embedded/rauc/Manifest                   |  1 +
 dev-embedded/rauc/files/rauc-1.6-tests.patch | 65 ++++++++++++++++++++++++++++
 dev-embedded/rauc/rauc-1.6.ebuild            | 65 ++++++++++++++++++++++++++++
 3 files changed, 131 insertions(+)

diff --git a/dev-embedded/rauc/Manifest b/dev-embedded/rauc/Manifest
index bf900b233..471945007 100644
--- a/dev-embedded/rauc/Manifest
+++ b/dev-embedded/rauc/Manifest
@@ -1 +1,2 @@
 DIST rauc-1.5.1.tar.xz 837056 BLAKE2B 9c035925aa0ff84029e6163ac2f5f2e53bba9174db8ab84328809d7cb68d5bb807d4d6e432e30581fa7eb4234444af7b38607a1b6ce208eb803d8ebafe700bea SHA512 d8b20cdf8e2eacbf4cf219ce4d2bd116faac27d951e9100ec154eb6693471b50159f3005c209119e06306355a9687216460206f38238f951642fcd53794ec1ea
+DIST rauc-1.6.tar.xz 878684 BLAKE2B 0fa4686db47793fefb675d3f3b873741a46a7f7ae4bdf931d66dfcba480963504b9d140edf65c4f88aff9753e61658f56e39189603a51d52583a90b50b1b810c SHA512 265646e3abb97c47344a8c9a62c022824b5cae12264915a06987ba4f9d63f25ee56b7e7df5aa59489bdb3f34cad72b6ec1c4b58d041e6203dab529b517ec0388

diff --git a/dev-embedded/rauc/files/rauc-1.6-tests.patch b/dev-embedded/rauc/files/rauc-1.6-tests.patch
new file mode 100644
index 000000000..12b5e2267
--- /dev/null
+++ b/dev-embedded/rauc/files/rauc-1.6-tests.patch
@@ -0,0 +1,65 @@
+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 |   20 ++++++++++----------
+ 2 files changed, 10 insertions(+), 17 deletions(-)
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -155,10 +155,6 @@ check_PROGRAMS = \
+ 	test/progress.test \
+ 	test/slot.test
+ 
+-if WANT_NETWORK
+-check_PROGRAMS += test/network.test
+-endif
+-
+ if WANT_JSON
+ check_PROGRAMS += test/boot_switch.test
+ endif
+@@ -242,9 +238,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
+@@ -283,16 +283,16 @@ test_expect_success "rauc bundle" "
+   test -f ${TEST_TMPDIR}/out.raucb
+ "
+ 
+-test_expect_success "rauc bundle mksquashfs extra args" "
+-  rm -f ${TEST_TMPDIR}/out.raucb &&
+-  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\" \
+-    $SHARNESS_TEST_DIRECTORY/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" "
++#   rm -f ${TEST_TMPDIR}/out.raucb &&
++#   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\" \
++#     $SHARNESS_TEST_DIRECTORY/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)" "
+   rm -f ${TEST_TMPDIR}/out.raucb &&

diff --git a/dev-embedded/rauc/rauc-1.6.ebuild b/dev-embedded/rauc/rauc-1.6.ebuild
new file mode 100644
index 000000000..3e4f7ced6
--- /dev/null
+++ b/dev-embedded/rauc/rauc-1.6.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_{8..10} )
+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
+}


             reply	other threads:[~2022-02-26 18:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-26 18:16 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-08 16:32 [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/rauc/, dev-embedded/rauc/files/ David Roman
2024-09-08 16:32 David Roman
2024-01-26 10:35 David Roman
2023-08-17  5:15 Viorel Munteanu
2023-08-17  5:15 Viorel Munteanu
2023-07-12  5:39 Viorel Munteanu
2022-10-04  2:54 Haelwenn Monnier
2021-01-24 16:05 Andrew Ammerlaan
2021-01-24 16:05 Andrew Ammerlaan
2020-12-25 20:42 Haelwenn Monnier
2020-12-25 20:42 Haelwenn Monnier
2020-08-15 18:15 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1645822585.c372f44426e07dbe04be4aeeba54a761a3232072.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox