Building LibreELEC: Wireguard tools error

  • I am trying to build LE locally but run into the following error:

    Cannot get wireguard-tools sources: https://git/zx2c4/com/wire…20250521.tar.xz

    I had a look at the above URL, it doesn't exist. The tar file is available at a different URL (remove the snapshot piece) but changing the package.pm file with this updated URL produces a similar error.

    I tried manually downloading the tar file and saving it locally in the proper folder, but the checksum is different and I'm still stuck.

    Appreciate the help!


    John

  • Code
    https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-v1.0.20250521.tar.xz

    This URL ^ (correctly formatted, unlike the one you posted) works fine for me.

    Or bump bump the wireguard-tools package to the current release, e.g. https://github.com/LibreELEC/Libr…ools/package.mk

    Or download the .tar.xz file from somewhere else (and storing it with the correct filename) to sources/wireguard-tools/ and then manually generate the required .url and .sha256 files and content (look at existing files to crib the simple format).

  • Appreciate the quick reply. Building LE still doesn't work:

    Not sure what's happening, hope this is enough info for it to get fixed. I'll give your manual suggestions a go, cheers.

  • The online repo the .tar.xz file is downloaded from has (for unknown reasons) regenerated the download and this has caused the hash of the downloaded file to change. We see the same on GitHub sometimes.

    The correct fix is updating PKG_SHA256 in package.mk to use the 'got' hash value instead of the current 'wanted' hash. The alternate workaround is setting PKG_SHA256="" (null) which disables the hash check. The one-line command vpeter posted does this.