Package Details: pico-sdk 2.1.0-2

Git Clone URL: https://aur.archlinux.org/pico-sdk.git (read-only, click to copy)
Package Base: pico-sdk
Description: Libraries and tools for C/C++ development on RP2040 microcontrollers.
Upstream URL: https://github.com/raspberrypi/pico-sdk
Licenses: BSD-3-Clause
Conflicts: raspberry-pico-sdk-git
Provides: raspberry-pico-sdk-git
Submitter: Sematre
Maintainer: Sematre
Last Packager: Sematre
Votes: 19
Popularity: 1.70
First Submitted: 2021-07-20 16:52 (UTC)
Last Updated: 2024-12-18 23:23 (UTC)

Latest Comments

dampkwab commented on 2024-12-17 01:38 (UTC)

Here's a patch with submodule tags & shasums

https://pastebin.com/4SHVGz3P

dampkwab commented on 2024-12-16 01:12 (UTC)

That would certainly resolve the issue with repeated rebuilds - cheers @Sematre

Sematre commented on 2024-12-15 16:26 (UTC) (edited on 2024-12-15 16:27 (UTC) by Sematre)

@dampkwab Thanks for reaching out.

VCS packages don't have to track the latest commit of a project. This is stated at the very top of the page that you linked. This also applies to submodules. Quote from the Arch Wiki:

Version control systems can be used for retrieval of source code for usual statically versioned packages, and the latest (trunk) version of a development branch.

I am aware that having unpinned sources in the build file will result in makepkg checking every time for updates. I, personally, don't care too much about this, but I can see why this might bother people. That's why I'm going to start pinning the submodules to their specific sha256 hash. This will keep the spirit of always including all the necessary external dependencies in the sources list, but should also fix the issue with makepkg.

dampkwab commented on 2024-12-15 14:35 (UTC) (edited on 2024-12-15 14:36 (UTC) by dampkwab)

@Sematre Thank you for maintaining this package. I have a suggestion to make:

Although this package uses a git source, it fetches a specific release and is therefore not a VCS package. (that would be pico-sdk-git)

That means the submodules shouldn't be included in the sources array as they should only be updated when a new version of pico-sdk is released. Removing them also greatly improves packaging efficiency.

diff --git a/PKGBUILD b/PKGBUILD
index 364f60b..4c8919c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,31 +18,14 @@ conflicts=("raspberry-pico-sdk-git")
options=('!strip')
install=reload-environment-variables.install
source=("git+${url}.git#tag=${pkgver}"
-        "git+https://github.com/bluekitchen/btstack.git"
-        "git+https://github.com/georgerobotics/cyw43-driver.git"
-        "git+https://github.com/lwip-tcpip/lwip.git"
-        "git+https://github.com/Mbed-TLS/mbedtls.git"
-        "git+https://github.com/hathach/tinyusb.git"
        "setup-environment-variables.sh")
sha256sums=('23acedc0e067cca748aab1041e02d74c8ea29b8ab8689d1ae3a20384e82f105d'
-            'SKIP'
-            'SKIP'
-            'SKIP'
-            'SKIP'
-            'SKIP'
            '155dbf10a6a9239849a166595bb3287bc410ef54f7d850e8dc9c50fddc1a7a3e')

prepare() {
        cd "${srcdir}/pico-sdk"
        git submodule init
-
-       git config submodule."lib/btstack".url      "${srcdir}/btstack"
-       git config submodule."lib/cyw43-driver".url "${srcdir}/cyw43-driver"
-       git config submodule."lib/lwip".url         "${srcdir}/lwip"
-       git config submodule."lib/mbedtls".url      "${srcdir}/mbedtls"
-       git config submodule."lib/tinyusb".url      "${srcdir}/tinyusb"
-
-       git -c protocol.file.allow=always submodule update
+       git submodule update
}

package() {

Could you please apply the above patch?

shtirlic commented on 2024-08-31 16:27 (UTC)

I think we should change the name to Libraries and tools for C/C++ development on Raspberry Pi Pico microcontrollers.

yangon99 commented on 2023-06-04 13:20 (UTC)

Maybe we need a patch for this version(1.5.0-1)

diff --git a/tools/pioasm/pio_disassembler.h b/tools/pioasm/pio_disassembler.h
index 669e08d..652e894 100644
--- a/tools/pioasm/pio_disassembler.h
+++ b/tools/pioasm/pio_disassembler.h
@@ -10,6 +10,7 @@
 #ifdef __cplusplus

 #include <string>
+#include <cstdint>

 typedef unsigned int uint;