diff options
author | Paul Eggleton <paul.eggleton@microsoft.com> | 2022-04-21 18:40:40 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-25 15:22:12 +0100 |
commit | 445d91575d9a1b7c63b04053ae0bb95416dabbc1 (patch) | |
tree | 0664f5a0c3aca45b510e1b88b88bb4ea0b5b67e3 /documentation | |
parent | 9e75211b3a1edce535bdcc033c34c04bf8b5fa23 (diff) | |
download | poky-445d91575d9a1b7c63b04053ae0bb95416dabbc1.tar.gz |
ref-manual: add empty-dirs QA check and QA_EMPTY_DIRS*
This check is new in kirkstone.
(From yocto-docs rev: baa483e75538013be3261f8c115b8a5364b24c60)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/classes.rst | 5 | ||||
-rw-r--r-- | documentation/ref-manual/qa-checks.rst | 11 | ||||
-rw-r--r-- | documentation/ref-manual/variables.rst | 22 |
3 files changed, 37 insertions, 1 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 60423d8533..a6dafe8f90 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst | |||
@@ -1040,6 +1040,11 @@ Here are the tests you can list with the :term:`WARN_QA` and | |||
1040 | cases, such as dynamically loaded modules, these symlinks | 1040 | cases, such as dynamically loaded modules, these symlinks |
1041 | are needed instead in the main package. | 1041 | are needed instead in the main package. |
1042 | 1042 | ||
1043 | - ``empty-dirs:`` Checks that packages are not installing files to | ||
1044 | directories that are normally expected to be empty (such as ``/tmp``) | ||
1045 | The list of directories that are checked is specified by the | ||
1046 | :term:`QA_EMPTY_DIRS` variable. | ||
1047 | |||
1043 | - ``file-rdeps:`` Checks that file-level dependencies identified by | 1048 | - ``file-rdeps:`` Checks that file-level dependencies identified by |
1044 | the OpenEmbedded build system at packaging time are satisfied. For | 1049 | the OpenEmbedded build system at packaging time are satisfied. For |
1045 | example, a shell script might start with the line ``#!/bin/bash``. | 1050 | example, a shell script might start with the line ``#!/bin/bash``. |
diff --git a/documentation/ref-manual/qa-checks.rst b/documentation/ref-manual/qa-checks.rst index 3364311219..8c475d0f72 100644 --- a/documentation/ref-manual/qa-checks.rst +++ b/documentation/ref-manual/qa-checks.rst | |||
@@ -154,7 +154,16 @@ Errors and Warnings | |||
154 | ``FILES:${PN}-dbg``. See :term:`FILES` for additional | 154 | ``FILES:${PN}-dbg``. See :term:`FILES` for additional |
155 | information on :term:`FILES`. | 155 | information on :term:`FILES`. |
156 | 156 | ||
157 | 157 | .. _qa-check-empty-dirs: | |
158 | |||
159 | - ``<packagename> installs files in <path>, but it is expected to be empty [empty-dirs]`` | ||
160 | |||
161 | The specified package is installing files into a directory that is | ||
162 | normally expected to be empty (such as ``/tmp``). These files may | ||
163 | be more appropriately installed to a different location, or | ||
164 | perhaps alternatively not installed at all, usually by updating the | ||
165 | ``do_install`` task/function. | ||
166 | |||
158 | .. _qa-check-arch: | 167 | .. _qa-check-arch: |
159 | 168 | ||
160 | - ``Architecture did not match (<file_arch>, expected <machine_arch>) in <file> [arch]`` | 169 | - ``Architecture did not match (<file_arch>, expected <machine_arch>) in <file> [arch]`` |
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 39801837ba..754e05c35a 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -6084,6 +6084,28 @@ system and gives an overview of their function and contents. | |||
6084 | In the previous example, | 6084 | In the previous example, |
6085 | the version of the dependency is :term:`PYTHON_PN`. | 6085 | the version of the dependency is :term:`PYTHON_PN`. |
6086 | 6086 | ||
6087 | :term:`QA_EMPTY_DIRS` | ||
6088 | Specifies a list of directories that are expected to be empty when | ||
6089 | packaging; if ``empty-dirs`` appears in :term:`ERROR_QA` or | ||
6090 | :term:`WARN_QA` these will be checked and an error or warning | ||
6091 | (respectively) will be produced. | ||
6092 | |||
6093 | The default :term:`QA_EMPTY_DIRS` value is set in | ||
6094 | :ref:`insane.bbclass <ref-classes-insane>`. | ||
6095 | |||
6096 | :term:`QA_EMPTY_DIRS_RECOMMENDATION` | ||
6097 | Specifies a recommendation for why a directory must be empty, | ||
6098 | which will be included in the error message if a specific directory | ||
6099 | is found to contain files. Must be overridden with the directory | ||
6100 | path to match on. | ||
6101 | |||
6102 | If no recommendation is specified for a directory, then the default | ||
6103 | "but it is expected to be empty" will be used. | ||
6104 | |||
6105 | An example message shows if files were present in '/dev':: | ||
6106 | |||
6107 | QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime" | ||
6108 | |||
6087 | :term:`RANLIB` | 6109 | :term:`RANLIB` |
6088 | The minimal command and arguments to run ``ranlib``. | 6110 | The minimal command and arguments to run ``ranlib``. |
6089 | 6111 | ||