[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1663/8267] ref-manual: Added 3 new QA sanity checks.

commit 33b01c502fa0e408a1f18631454af739dbd2adb4
Author: Scott Rifenbark <srifenbark gmail com>
Date:   Tue Jul 19 13:48:26 2016 -0700

    ref-manual: Added 3 new QA sanity checks.
    Fixes [YOCTO #9983]
    Added the host-user-contaminated, invalid-chars, and invalid-packageconfig
    QA checks.
    (From yocto-docs rev: 5bd28f9386a8afff435254788fbce73a7fc48305)
    Signed-off-by: Scott Rifenbark <srifenbark gmail com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 documentation/ref-manual/ref-classes.xml |   30 ++++++++++++++++++++++++++++++
 documentation/ref-manual/ref-tasks.xml   |    3 ++-
 2 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index c58c567..1d6c45d 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -1606,6 +1606,17 @@
                 <link linkend='var-FILES'><filename>FILES</filename></link>
                 variable values that contain "//", which is invalid.
+            <listitem><para><emphasis><filename>host-user-contaminated:</filename></emphasis>
+                Checks that no package produced by the recipe contains any
+                files outside of <filename>/home</filename> with a user or
+                group ID that matches the user running BitBake.
+                A match usually indicates that the files are being installed
+                with an incorrect UID/GID, since target IDs are independent
+                from host IDs.
+                For additional information, see the section describing the
+                <link linkend='ref-tasks-install'><filename>do_install</filename></link>
+                task.
+                </para></listitem>
                 Report when packages are excluded from being created due to
                 being marked with a license that is in
@@ -1633,6 +1644,25 @@
                 <filename>do_install</filename> if the files are not
                 needed in any package.
+            <listitem><para><emphasis><filename>invalid-chars:</filename></emphasis>
+                Checks that the recipe metadata variables
+                <link linkend='var-DESCRIPTION'><filename>DESCRIPTION</filename></link>,
+                <link linkend='var-SUMMARY'><filename>SUMMARY</filename></link>,
+                <link linkend='var-LICENSE'><filename>LICENSE</filename></link>,
+                and
+                <link linkend='var-SECTION'><filename>SECTION</filename></link>
+                do not contain non-UTF-8 characters.
+                Some package managers do not support such characters.
+                </para></listitem>
+            <listitem><para><emphasis><filename>invalid-packageconfig:</filename></emphasis>
+                Checks that no undefined features are being added to
+                <link linkend='var-PACKAGECONFIG'><filename>PACKAGECONFIG</filename></link>.
+                For example, any name "foo" for which the following form
+                does not exist:
+                <literallayout class='monospaced'>
+     PACKAGECONFIG[foo] = "..."
+                </literallayout>
+                </para></listitem>
                 Checks <filename>.la</filename> files for any <filename>TMPDIR</filename>
diff --git a/documentation/ref-manual/ref-tasks.xml b/documentation/ref-manual/ref-tasks.xml
index d180eee..22c1e26 100644
--- a/documentation/ref-manual/ref-tasks.xml
+++ b/documentation/ref-manual/ref-tasks.xml
@@ -300,7 +300,8 @@
                     recursive <filename>cp</filename> command, can preserve the
                     UID and/or GID of the original file, which is usually not
                     what you want.
-                    The <filename>host-user-contaminated</filename>
+                    The
+                    <link linkend='ref-classes-insane'><filename>host-user-contaminated</filename></link>
                     QA check checks for files that probably have the wrong

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]