summaryrefslogtreecommitdiff
path: root/dev-embedded/picotool
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-08 01:07:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-08 01:07:00 +0000
commit443cfbefc0bbd1e252d323db7597b33ace434817 (patch)
treeaeab1cdb4ddfa5340339e11ffa04b2513377d7e7 /dev-embedded/picotool
parent4c5e0520b3ae5cce70461c3f7fceb313186d6ea2 (diff)
gentoo auto-resync : 08:03:2024 - 01:06:59
Diffstat (limited to 'dev-embedded/picotool')
-rw-r--r--dev-embedded/picotool/Manifest3
-rw-r--r--dev-embedded/picotool/files/picotool-1.1.2-musl.patch17
-rw-r--r--dev-embedded/picotool/picotool-1.1.2.ebuild11
3 files changed, 28 insertions, 3 deletions
diff --git a/dev-embedded/picotool/Manifest b/dev-embedded/picotool/Manifest
index 99b18ae2ed62..490121099625 100644
--- a/dev-embedded/picotool/Manifest
+++ b/dev-embedded/picotool/Manifest
@@ -1,6 +1,7 @@
+AUX picotool-1.1.2-musl.patch 420 BLAKE2B fae2e2cfb951e309a2a3be4ef98b05979ef58a832ffbf2fa7d802f9c31983b566a4c8055c0d11f154a2df552ebe0d00dc51615790cfb2ebe564d454015e80d34 SHA512 c5a73731a734baaf5af4a938d4c00996f3cf28343c728e0cfe575d2797fcd45d730fa5fed22846dc691f69da2825f01b52ced5e4a9b681e99290b4f0ae8d3a75
DIST pico-sdk-1.4.0.tar.gz 959068 BLAKE2B 95c5e61c4d66c345daa4b8aff8e9e2cd90bcc722289ac67c1a18ce00dfa02ef7fb07512a0fdc7558f989746c215cff31979f1ad8a582e20ff2d151fdd109914f SHA512 4be28cf41e5b808a504b4c949f6c3e9fbc425beb4f838a7898bfd78925cc54e0390ff56c036bc7f60a26efac0d6c1bd811b27f7b60a1c8d7bb4750f3fa37690e
DIST picotool-1.1.0.tar.gz 43994 BLAKE2B 2b8536540be912418be1f0f0d93bb59b9cd4832ce46854478fb0bfbcb4463b49e4806068897a1d665b73ea7a764bf0d96f0a56cde01ef6503c74e1eadc4ed9c2 SHA512 5c13a88e90baed28cf435c7641a84c1c814fc473d57f2502ebb594d84c71bbe82632bf0d24b7755ebfec270d85f4588c488917a224b68c93f40573e956026efc
DIST picotool-1.1.2.tar.gz 45282 BLAKE2B b7425ae197adef3f72aafa9450338ab1c3ddd4b1a13ff9f4847951ee3d7fd91226f780061416c0d72f963ad0afcf4a14d85c72b6199482738eb5344c8dc6563f SHA512 63e0c77865243aca0b46cb844f5eb104c762d2b38f645c75f32224b61d9768ef0ba59b55d94480559627ec4b23ad6edc49d013f90646644a5dc798090d37a257
EBUILD picotool-1.1.0.ebuild 771 BLAKE2B e5cc8db4ff5387276535a859bcbebb91f5f72be22ec91036e359d20fb50b6b89c3d228b51cc6f77f9ca8db9e2f9bb693163af8beb01a631c26f993e1290cd15f SHA512 6f8bd797dbf3535200b7dd8efc47ad686dbff49c1da02f292cb11bcb6911c29d03a1a388d3c0ad81f8e47766e87bbe70388300b53135963a500f501326fa23e5
-EBUILD picotool-1.1.2.ebuild 776 BLAKE2B 0c79c6df8f35652a88ccd44a8603fd833029d562d68d4804fcbd6f8b6ae80d9de179738253a5963becbd9fb0ab2762e59a480c4f70c17b57c976f28071bdd9e8 SHA512 8527b829ca784ebfe936a3675ca66b7231783ccedb68ea81edb5ecf4d4a1f91fdc0d18d9134ac0fcf5745767760da0ba8524eed7be837702df41e74da397dd8e
+EBUILD picotool-1.1.2.ebuild 907 BLAKE2B c86001d1ef64bebf938e176330a082b93696ccfbd9c0ff69b7997eb19e3a793b6eaac75c44159b90c061a61938e35fced10dd0d8fd7fd42e99d45cd4e6433f1d SHA512 4e23de6ae3978f2eec040652da01fb258bb1bfd38fcd6fc981b66d5188d17455d8067ab7ab1c0ae57a85f8dfab3eb7ce5203f95905db9a7dc03582ee1d5d3e30
MISC metadata.xml 343 BLAKE2B fb4e41f84c22fe08f905251eae2cb5381faa7adb43ed3895a4059b3d76aa79235745530be48316f24f5eff99abeac3452d7ebd76cd0bb3cfc3c228b2d0250d03 SHA512 8e22662a7cb2a4a80981b95201ee3ee7c800a4bfddf16b836fd75a0353a281ec59872227682635dc556725718b98a96c413ec118369acbc0e2a2b841060197fd
diff --git a/dev-embedded/picotool/files/picotool-1.1.2-musl.patch b/dev-embedded/picotool/files/picotool-1.1.2-musl.patch
new file mode 100644
index 000000000000..77eeda5b6b9c
--- /dev/null
+++ b/dev-embedded/picotool/files/picotool-1.1.2-musl.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/867283
+https://wiki.gentoo.org/wiki/Musl_porting_notes#cdefs.h:_No_such_file_or_directory
+--- a/pico-sdk/src/host/pico_platform/include/pico/platform.h
++++ b/pico-sdk/src/host/pico_platform/include/pico/platform.h
+@@ -13,7 +13,11 @@
+
+ #ifdef __unix__
+
+-#include <sys/cdefs.h>
++#if defined __has_include
++# if __has_include (<sys/cdefs.h>)
++# include <sys/cdefs.h>
++# endif
++#endif
+
+ #endif
+
diff --git a/dev-embedded/picotool/picotool-1.1.2.ebuild b/dev-embedded/picotool/picotool-1.1.2.ebuild
index 4c0f759534b0..fbed611955ca 100644
--- a/dev-embedded/picotool/picotool-1.1.2.ebuild
+++ b/dev-embedded/picotool/picotool-1.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -27,9 +27,16 @@ RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=( "${FILESDIR}"/${PN}-1.1.2-musl.patch )
+
+src_prepare() {
+ mv "${WORKDIR}"/${SDK_P} "${S}"/pico-sdk || die
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
- -DPICO_SDK_PATH="${WORKDIR}"/${SDK_P}
+ -DPICO_SDK_PATH="${S}"/pico-sdk
)
cmake_src_configure
}