public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/esptool/
Date: Fri,  3 Jun 2022 11:01:23 +0000 (UTC)	[thread overview]
Message-ID: <1654254079.f75235e0764bf935a5097d7002a34dec047e0305.juippis@gentoo> (raw)

commit:     f75235e0764bf935a5097d7002a34dec047e0305
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Fri May 20 10:59:33 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Jun  3 11:01:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f75235e0

dev-embedded/esptool: version bump to 4.1

esptool-4.1: new 4.x release with breaking changes:
- Public API has been defined by limiting access to internals that have been refactored into multiple source files.
- If active security features are detected, the default behavior changes to prevent unintentional bricking.
- Flash parameters in an image header can now be changed only when no SHA256 digest is appended
- The ESP8684 alias has been removed, ESP32-C2 has to be used.
- Megabit flash sizes have been deprecated, use megabyte units from now on.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-embedded/esptool/Manifest           |  1 +
 dev-embedded/esptool/esptool-4.1.ebuild | 58 +++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-embedded/esptool/Manifest b/dev-embedded/esptool/Manifest
index 524c1849b23f..b1095cfe393f 100644
--- a/dev-embedded/esptool/Manifest
+++ b/dev-embedded/esptool/Manifest
@@ -1,3 +1,4 @@
 DIST esptool-3.2.tar.gz 7155428 BLAKE2B f81a8b77f1994599c3302915915e225249a5e735accbe47c8936de47564e47a33ae711df47c57e599d980b450dc4d710f819087a97d086b9d0f15a98622c0da4 SHA512 5e67b3a17190e051d7706ee2dbbe855488765a7bfed15b15f5a04022c3fbf19112905ba6a672c37b1bac5501d45d477cfff07c004cd83b2d1a111430992cefc1
 DIST esptool-3.3.1.tar.gz 7261340 BLAKE2B c6ee391dcbc331d9f931bfd969333fc3bfc5628d422d52e2963c9d465f4680dca5debaf17cd2f6aca0db9dcc06563fe775d7d6c15dacdff481c52577c26d4364 SHA512 8da34f7b555513d499141ce403f19c3e77b6944eecde440c757faf3bbf5e915e44ff0bcabf1b2cb7f5fe26caa717bb47104ad808c46feaf1dea254d548048095
 DIST esptool-3.3.tar.gz 7259717 BLAKE2B b9952dff9a1884cae5325730056673d96bd442c82cd799196d99fe5287b72bc567d312102779f64c4a526c19bd36d0f742b4e81434de8b4dadf406a19bd3d423 SHA512 1f1a43832ae5487c570e49c97ca18831371f5a4ac0d4b260fa8b7356c7af40b8514722ded630a6c84e3d59f7fba78c9d70b291d1fa581fc25ea37204ded44363
+DIST esptool-4.1.tar.gz 7275429 BLAKE2B d89e0d2b90a9005deea71ba14328c5616062d0ada82c309fa4ad4f4c3861e0683b99e70328d6ae60f0fc0e788e25d6b0a4e39596c1c6cfac0e779840ec796f18 SHA512 b9df8d361fe1a97f0649fed03abc919df1c2ff118dc4dd05abeec641ba2d16e6c308894bd91657768e03a6801ec9e5393e573b4c3016b624e842fef7c6354b41

diff --git a/dev-embedded/esptool/esptool-4.1.ebuild b/dev-embedded/esptool/esptool-4.1.ebuild
new file mode 100644
index 000000000000..c36ddc73f65d
--- /dev/null
+++ b/dev-embedded/esptool/esptool-4.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
+HOMEPAGE="https://github.com/espressif/esptool"
+SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	$(python_gen_cond_dep '
+		dev-python/bitstring[${PYTHON_USEDEP}]
+		dev-python/cryptography[${PYTHON_USEDEP}]
+		>=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}]
+		dev-python/pyserial[${PYTHON_USEDEP}]
+		dev-python/reedsolomon[${PYTHON_USEDEP}]
+	')
+"
+BDEPEND="
+	$(python_gen_cond_dep '
+		dev-python/wheel[${PYTHON_USEDEP}]
+	')
+	test? ( $(python_gen_cond_dep '
+		dev-python/coverage[${PYTHON_USEDEP}]
+		dev-python/pyelftools[${PYTHON_USEDEP}]
+	') )
+"
+
+python_test() {
+	"${EPYTHON}" test/test_imagegen.py || die "test_imagegen.py failed with ${EPYTHON}"
+	"${EPYTHON}" test/test_espsecure.py || die "test_espsecure.py failed with ${EPYTHON}"
+	"${EPYTHON}" test/test_espefuse_host.py || die "test_espefuse_host.py failed with ${EPYTHON}"
+	"${EPYTHON}" test/test_merge_bin.py || die "test_merge_bin.py failed with ${EPYTHON}"
+	"${EPYTHON}" test/test_modules.py || die "test_modules.py failed with ${EPYTHON}"
+	# test/test_esptool.py and test/test_espefuse.py need real hardware connected
+}
+
+pkg_postinst() {
+	if ver_test "${REPLACING_VERSIONS}" -lt "4"; then
+		ewarn "${P} - new 4.x release with breaking changes:"
+		ewarn "  - Public API has been defined by limiting access to internals that have been refactored into multiple source files"
+		ewarn "  - If active security features are detected, the default behavior changes to prevent unintentional bricking"
+		ewarn "  - Flash parameters in an image header can now be changed only when no SHA256 digest is appended"
+		ewarn "  - The ESP8684 alias has been removed, ESP32-C2 has to be used"
+		ewarn "  - Megabit flash sizes have been deprecated, use megabyte units from now on"
+	fi
+}


             reply	other threads:[~2022-06-03 11:01 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 11:01 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-03 22:42 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/esptool/ Sam James
2024-07-03 22:38 Sam James
2024-05-29  5:37 Joonas Niilola
2024-05-29  5:37 Joonas Niilola
2024-04-15 20:02 Florian Schmaus
2024-04-15  6:03 Joonas Niilola
2024-04-15  6:03 Joonas Niilola
2024-02-28  6:55 Joonas Niilola
2024-02-28  6:55 Joonas Niilola
2024-01-28 23:15 Sam James
2023-06-29 12:47 Joonas Niilola
2023-06-11 11:38 Viorel Munteanu
2023-06-11 11:38 Viorel Munteanu
2023-06-11 11:38 Viorel Munteanu
2023-06-01 20:04 Sam James
2023-05-18 19:42 Sam James
2023-04-03 10:26 Viorel Munteanu
2023-04-03 10:26 Viorel Munteanu
2023-03-08 14:13 Joonas Niilola
2023-02-27 13:12 Joonas Niilola
2023-02-27 13:12 Joonas Niilola
2023-02-16  5:01 Sam James
2023-01-19  1:39 Sam James
2022-12-21 22:47 Sam James
2022-12-05 10:54 Florian Schmaus
2022-11-04 17:13 Matthew Smith
2022-11-04 17:13 Matthew Smith
2022-11-04 17:13 Matthew Smith
2022-09-17  6:04 Joonas Niilola
2022-08-09 16:33 Matthew Smith
2022-07-26 13:10 Joonas Niilola
2022-07-26 13:10 Joonas Niilola
2022-06-07  5:21 Sam James
2022-06-03 11:01 Joonas Niilola
2022-06-03 11:01 Joonas Niilola
2022-06-03 11:01 Joonas Niilola
2022-03-31 11:45 Joonas Niilola
2022-03-31 11:45 Joonas Niilola
2022-03-04 13:53 Joonas Niilola
2021-12-07  7:48 Agostino Sarubbo
2021-10-31  2:55 Sam James
2021-10-31  2:55 Sam James
2021-08-08  7:45 Agostino Sarubbo
2021-07-05 11:16 Michał Górny
2021-06-15  1:14 Sam James
2021-06-15  1:14 Sam James
2021-02-12 16:20 Sam James
2021-02-04 14:42 Agostino Sarubbo
2021-02-04 14:09 Sam James
2020-12-12  4:32 Sam James
2020-12-12  4:27 Sam James
2020-11-28  9:15 Joonas Niilola
2020-11-13  2:46 Sam James
2020-11-12 22:54 Thomas Deutschmann
2020-10-11  9:30 Joonas Niilola
2020-10-04 21:15 Michał Górny
2020-08-25 12:43 Sam James
2020-05-07 21:21 Andreas Sturmlechner
2020-02-05 19:12 Michał Górny
2019-11-24 21:07 Aaron Bauman
2019-11-24 19:33 Manuel Rüger
2019-05-31 18:58 Georgy Yakovlev
2018-04-05 21:33 Michał Górny
2018-03-20 11:45 Manuel Rüger
2018-03-15 20:17 Markus Meier
2018-01-08 23:57 Thomas Deutschmann
2017-12-23 15:08 Manuel Rüger
2017-12-16 10:31 Tobias Klausmann
2017-11-24 23:09 Michael Palimaka
2017-11-21 18:04 Manuel Rüger
2017-09-10 10:54 Manuel Rüger
2017-09-10 10:54 Manuel Rüger
2017-06-26 17:31 Manuel Rüger
2017-06-15 15:31 Manuel Rüger
2017-05-14 11:10 Manuel Rüger

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=1654254079.f75235e0764bf935a5097d7002a34dec047e0305.juippis@gentoo \
    --to=juippis@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