Source archive is never downloaded for custom package - why?

  • I'm trying to add a custom package to a debug build of LibreELEC.

    My (WiP) packages/debug/heaptrack/package.mk:

    (And I added it to packages/virtual/debug with a new HEAPTRACK switch.)

    When the build gets to this package, it will try to detect the required toolchain (which should be cmake / cmake-make); but the build.LibreELEC-Generic.x86_64-13.0-devel/build/heaptrack-1.5/ directory is empty save for two stamp files.

    There is no trace of the heaptrack-1.5.tar.bz2 source file in sources/ (or anywhere), nor any indication in any log that I can find where it would be downloaded.

    I've verified the PKG_URL by running scripts/build edited to #!/bin/bash -x and it resolves as expected, and manually wget'ing that URL yields an archive with the source files.

    What am I missing / what could be going wrong here?

  • Go to Best Answer
  • That ^ works for me (at least to download the sources):

    Code
    chewitt@toolbox:~/LibreELEC.chewitt$ ls -l sources/heaptrack/heaptrack-1.5.tar.bz2*
    -rw-rw-r-- 1 chewitt chewitt 5553752 Apr 21 15:51 sources/heaptrack/heaptrack-1.5.tar.bz2
    -rw-rw-r-- 1 chewitt chewitt      65 Apr 21 15:51 sources/heaptrack/heaptrack-1.5.tar.bz2.sha256
    -rw-rw-r-- 1 chewitt chewitt      73 Apr 21 15:51 sources/heaptrack/heaptrack-1.5.tar.bz2.url

    NB: there's no need to hide things behind switches, just build the package directly with, e.g.

    PROJECT=Generic ARCH=x86_64 scripts/build heaptrack

  • Typo? PGK_URL