Skip to content

build, android: make apk fails if depends source cache is in a non-default location #22522

@achow101

Description

@achow101

When building the Android dependencies and SOURCES_PATH is set to a non-default location (i.e. not in the depends directory), doing make apk results in the following error:

find: ‘../depends/sources/’: No such file or directory
find: ‘../depends/sources/’: No such file or directory
tar: --exclude=*/*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
find: ‘../depends/sources/’: No such file or directory
find: ‘../depends/sources/’: No such file or directory
tar: --exclude=*/*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
find: ‘../depends/sources/’: No such file or directory
find: ‘../depends/sources/’: No such file or directory
tar: --exclude=*/*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

It seems like the culprit is

QT_BASE_VERSION = $(lastword $(shell $(MOC) --version))
QT_BASE_PATH = $(shell find ../depends/sources/ -maxdepth 1 -type f -regex ".*qtbase.*$(QT_BASE_VERSION)\.tar.xz")
QT_BASE_TLD = $(shell tar tf $(QT_BASE_PATH) --exclude='*/*')
which is looking for files in the default depends sources path.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions