get_installed_tracked_dirs – print existing directories of a package, used for ROOT directory.

Description

Method prints absolute paths with directories of current package, which are needed to be reflected in ROOT, each on new line. For each prefix from PREFIX_LIST all paths from root_TRACKED_DIRS are joined and printed. The latter is set up with option any_root_tracked_dirs.

Default values are /usr for PREFIX_LIST and lib include for root_TRACKED_DIRS. Assuming package hello-world-1.0 and profile id amd64, that will result in paths:

/build/image/amd64/hello-world-1.0/usr/lib
/build/image/amd64/hello-world-1.0/usr/include

In case of /usr /usr/local for PREFIX_LIST resulting directories will be:

/build/image/amd64/hello-world-1.0/usr/lib
/build/image/amd64/hello-world-1.0/usr/include
/build/image/amd64/hello-world-1.0/usr/local/lib
/build/image/amd64/hello-world-1.0/usr/local/include

If build is non-containerised, paths will contain path to the working directory as well.

Writing

The method does not write to any directories.

Variables

The method uses any-api(7) variables:
D
PREFIX_LIST

The method uses engine variables:

root_TRACKED_DIRS

Options

The following options affect the method:
any_root_tracked_dirs

See also

any(1), any-map(7), any-api(7), pkg_root(3)