Package Details: esp-idf 5.4.1-1

Git Clone URL: https://aur.archlinux.org/esp-idf.git (read-only, click to copy)
Package Base: esp-idf
Description: Espressif IoT Development Framework. Official development framework for ESP32.
Upstream URL: https://github.com/espressif/esp-idf
Licenses: Apache-2.0
Submitter: GPereira
Maintainer: alex.henrie
Last Packager: alex.henrie
Votes: 26
Popularity: 0.110868
First Submitted: 2018-04-01 22:44 (UTC)
Last Updated: 2025-04-01 03:47 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

gyscos commented on 2025-04-01 12:29 (UTC) (edited on 2025-04-01 12:33 (UTC) by gyscos)

Looks like the release zip file for the 5.4.1 release was recently updated, and the checksum changed.

It's now d78e49aafe46e35d34bc8804b64f23cd0a6cabdfe221876ba59f68b4534f0839.

In addition, the folder extracted from the zip now has the version in the path, requiring a small change to both cd ... lines.

Here's my patch to get it working:

diff --git a/PKGBUILD b/PKGBUILD
index 87e139c..9bc52e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,19 +12,19 @@ options=('!strip')
 install='esp-idf.install'
 source=(https://github.com/espressif/${pkgname}/releases/download/v${pkgver}/${pkgname}-v${pkgver}.zip)
 noextract=(${pkgname}-v${pkgver}.zip)
-sha256sums=('6b6b9e7b5e1d6b946e6cfd062a3ce1cc8bb5957befdda683c2a0d9cb16a45015')
+sha256sums=('d78e49aafe46e35d34bc8804b64f23cd0a6cabdfe221876ba59f68b4534f0839')

 prepare() {
        unzip -o ${pkgname}-v${pkgver}.zip
 }

 build() {
-       cd "$srcdir/${pkgname}"
+       cd "$srcdir/${pkgname}-v${pkgver}"
        git submodule update --init
 }

 package() {
-       cd "${srcdir}/${pkgname}"
+       cd "$srcdir/${pkgname}-v${pkgver}"
        mkdir -p ${pkgdir}/opt/esp-idf
        cp -R . ${pkgdir}/opt/esp-idf
 }

laura7089 commented on 2024-09-18 11:54 (UTC)

I'm getting an error running the install script:

ERROR: tool openocd-esp32 is found in PATH, but has failed: non-zero exit code (127) with message: openocd: error while loading shared libraries: libcapstone.so.4: cannot open shared object file: No such file or directory

The script exits fine afterwards.

Looks like there's a dependency on capstone=4?

shtrom commented on 2024-08-22 07:30 (UTC)

Hum, now I'm seeing a lot of

fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

when building projects, so maybe we can't get away with dropping the .git directory.

shtrom commented on 2024-08-20 09:25 (UTC)

... ah, but that won't work because it does a git submodule update in the build step.

We need to remove the .git directories after that. This can be done with

find . -path \*/.git/\* -delete -o -name .git -delete

That will remove the .git directory from the submodules, too.

So, this:

build() {
    cd "$srcdir/${pkgname}-v${pkgver}"
    git submodule update --init
    find . -path \*/.git/\* -delete -o -name .git -delete
}

Which gives us a ~80MiB package, at around 450MiB when installed.

shtrom commented on 2024-08-20 08:57 (UTC)

FWIW, you can skip extracting the .git directory altogether by adding the following at the end of the unzip command the prepare function:

... -x \*/.git/\*

So:

prepare() {
    unzip -o ${pkgname}-v${pkgver}.zip -x \*/.git/\*
}

taba commented on 2024-06-24 02:48 (UTC)

Am I talking to myself or what

taba commented on 2023-10-18 17:11 (UTC)

Is the .git folder needed for anything? It takes up a gigabyte.

taba commented on 2023-10-08 17:22 (UTC)

@alex.henrie Are you sure dependencies are not missing anything? The official docs https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html list other dependencies.