PKG_SOURCE_URL and file:// location

Hello,
I am trying to build packages with a local tarball. Would the file:// protocol work for PKG_SOURCE_URL or was this support removed?

The error I'm getting is:
Wrong local cache directory -/builds/2devnull/openwrt-modemmanager-packages-.

This is what the Makefile has:

PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=file:///builds/2devnull/openwrt-modemmanager-packages/
PKG_HASH:=97237b7d82b36c1218242e7c38506dc7b32bfc236be3d93bd74b13faba2612d1

I saw this document is using it:

And I also see this check here:

1 Like

This doesn't look like an absolute path, so remove the leading slash, or specify the proper absolute path.

It should be absolute as it is what I see in the gitlab runner logs.

This fails when checking for directory existence:

So, either the directory doesn't exist, or the path is wrong.

Yes, the path was incorrect as this is using Docker-in-Docker (DinD). Needed to place the tarballs in the bind mounts.

This path is now working:

PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=file:///home/build/build_dir/dl/

Thanks for helping on this one.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.