get_installed_tracked_exec_files – print existing executables of a package, used for ROOT directory.
Description
Method prints absolute paths with text executable files of current package, which need to be reflected in ROOT,
each on new line. Files are taken from directories, printed by get_installed_tracked_exec_dirs(3).
Names are chosen by templates, given in any_root_exec_name_template.
Default value is *-config *-config-*.
So files of interest for hello-world-1.0,
built for amd64,
would be:
text/ application/xml application/x-shellscript inode/symlink
- /build/image/amd64/hello-world-1.0/usr/bin/hello-config
- /build/image/amd64/hello-world-2.0/usr/bin/hello-config-2
Printed files must be executable scripts. To determine that the file(1) utility is used like that:
file -b --mime-type filenameIf printed type of a file is contained in option any_root_exec_editable, file is considered suitable. Default value of the option is:
text/ application/xml application/x-shellscript inode/symlink
Thus binary executable files do not go to ROOT. If such files are needed, they must be installed in host environment at general default location like /usr/bin/.
Writing
The method writes to T.
Variables
Options
The following options affect the method:
- any_root_exec_name_template
- any_root_exec_editable
Interfaces
See also
any(1),
any-map(7),
any-api(7),
pkg_root(3),
get_installed_tracked_exec_dirs(3),
get_installed_tracked_dirs(3)