mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
ref-manual, template: Permalinks for QA errors and warnings
Updated the ref-qa-checks.xml chapter so that each QA warning
or error message would generate a permalink that is suitable
for searching from the poky codebase. To implement this, I
had to embed an id marker in the <para> tag that precedes each
<code></code> tag pair. The 'xxx' string of the id is the leaf
portion of the permalink.
This creates the following tag construct:
<para id='xxx'>
<code>
some-warning-or-error-message
</code>
</para>
The permalink is generated with the help of the new
qa-code-permalinks.xsl file, which triggers on the
<para><code></code></para> construct. This new file resides
in documentation/template.
Right now, this construct
is unique to the ref-manual's chapter on the QA error and warnings
chapter only. However, if for some reason that construct is
used in any other part of the ref-manual, a generically numbered
permalink would also be generated.
The ref-manual-customization.xsl file was also altered to include
the new documentation/template/qa-code-permalinks.xsl file.
Reported-by: Paul Eggleton <paul.eggleton@linux.intel.com>
(From yocto-docs rev: aec27a9f8337575d31bfe0066563da99259046e0)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6f32f3c757
commit
3e991ee685
@@ -59,10 +59,21 @@
|
||||
<section id='qa-errors-and-warnings'>
|
||||
<title>Errors and Warnings</title>
|
||||
|
||||
<!--
|
||||
This section uses the <para><code> construct to enable permalinks for the
|
||||
various QA issue and warning messages. The file templates/qa-code-permalinks.xsl
|
||||
is used to locate the construct and generate the permalink. This solution
|
||||
leverages the fact that right now this section in the ref-manual is the only
|
||||
place is all the YP docs that uses the <para><code> construct. If, in the
|
||||
future, that construct were to appear in the ref-manual, a generic permalink
|
||||
would be generated for the text between <code></code>. If a better solution
|
||||
can be found then it should be implemented. I can't find one at the moment.
|
||||
-->
|
||||
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-libexec'>
|
||||
<code>
|
||||
<packagename>: <path> is using libexec please relocate to <libexecdir> [libexec]
|
||||
</code>
|
||||
@@ -87,7 +98,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-rpaths'>
|
||||
<code>
|
||||
package <packagename> contains bad RPATH <rpath> in file <file> [rpaths]
|
||||
</code>
|
||||
@@ -119,7 +130,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-useless-rpaths'>
|
||||
<code>
|
||||
<packagename>: <file> contains probably-redundant RPATH <rpath> [useless-rpaths]
|
||||
</code>
|
||||
@@ -147,7 +158,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-dev-so'>
|
||||
<code>
|
||||
non -dev/-dbg/-nativesdk package contains symlink .so: <packagename> path '<path>' [dev-so]
|
||||
</code>
|
||||
@@ -178,7 +189,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-staticdev'>
|
||||
<code>
|
||||
non -staticdev package contains static .a library: <packagename> path '<path>' [staticdev]
|
||||
</code>
|
||||
@@ -205,7 +216,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-libdir'>
|
||||
<code>
|
||||
<packagename>: found library in wrong location [libdir]
|
||||
</code>
|
||||
@@ -236,7 +247,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-debug-files'>
|
||||
<code>
|
||||
non debug package contains .debug directory: <packagename> path <path> [debug-files]
|
||||
</code>
|
||||
@@ -269,7 +280,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-arch'>
|
||||
<code>
|
||||
Architecture did not match (<machine_arch> to <file_arch>) on <file> [arch]
|
||||
</code>
|
||||
@@ -308,7 +319,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-arch-bit-size-no-match'>
|
||||
<code>
|
||||
Bit size did not match (<machine_bits> to <file_bits>) <recipe> on <file> [arch]
|
||||
</code>
|
||||
@@ -347,7 +358,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-arch-endianness-no-match'>
|
||||
<code>
|
||||
Endianness did not match (<machine_endianness> to <file_endianness>) on <file> [arch]
|
||||
</code>
|
||||
@@ -386,7 +397,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-textrel'>
|
||||
<code>
|
||||
ELF binary '<file>' has relocations in .text [textrel]
|
||||
</code>
|
||||
@@ -397,13 +408,6 @@
|
||||
<filename>.text</filename> sections.
|
||||
This situation can result in a performance impact
|
||||
at runtime.
|
||||
<note>
|
||||
A bug currently exists that causes this
|
||||
warning to appear erroneously.
|
||||
See
|
||||
<ulink url='https://bugzilla.yoctoproject.org/show_bug.cgi?id=6104'></ulink>
|
||||
for more information.
|
||||
</note>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@@ -416,7 +420,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-ldflags'>
|
||||
<code>
|
||||
No GNU_HASH in the elf binary: '<file>' [ldflags]
|
||||
</code>
|
||||
@@ -448,7 +452,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-xorg-driver-abi'>
|
||||
<code>
|
||||
Package <packagename> contains Xorg driver (<driver>) but no xorg-abi- dependencies [xorg-driver-abi]
|
||||
</code>
|
||||
@@ -478,7 +482,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-infodir'>
|
||||
<code>
|
||||
The /usr/share/info/dir file is not meant to be shipped in a particular package. [infodir]
|
||||
</code>
|
||||
@@ -506,7 +510,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-symlink-to-sysroot'>
|
||||
<code>
|
||||
Symlink <path> in <packagename> points to TMPDIR [symlink-to-sysroot]
|
||||
</code>
|
||||
@@ -533,7 +537,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-la'>
|
||||
<code>
|
||||
<file> failed sanity test (workdir) in path <path> [la]
|
||||
</code>
|
||||
@@ -559,7 +563,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-pkgconfig'>
|
||||
<code>
|
||||
<file> failed sanity test (tmpdir) in path <path> [pkgconfig]
|
||||
</code>
|
||||
@@ -584,7 +588,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-debug-deps'>
|
||||
<code>
|
||||
<packagename> rdepends on <debug_packagename> [debug-deps]
|
||||
</code>
|
||||
@@ -632,7 +636,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-dev-deps'>
|
||||
<code>
|
||||
<packagename> rdepends on <dev_packagename> [dev-deps]
|
||||
</code>
|
||||
@@ -680,7 +684,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-dep-cmp'>
|
||||
<code>
|
||||
<var>_<packagename> is invalid: <comparison> (<value>) only comparisons <, =, >, <=, and >= are allowed [dep-cmp]
|
||||
</code>
|
||||
@@ -711,7 +715,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-compile-host-path'>
|
||||
<code>
|
||||
<recipename>: The compile log indicates that host include and/or library paths were used. Please check the log '<logfile>' for more information. [compile-host-path]
|
||||
</code>
|
||||
@@ -736,7 +740,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-install-host-path'>
|
||||
<code>
|
||||
<recipename>: The install log indicates that host include and/or library paths were used. Please check the log '<logfile>' for more information. [install-host-path]
|
||||
</code>
|
||||
@@ -761,7 +765,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-autoconf-log'>
|
||||
<code>
|
||||
This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. Rerun configure task after fixing this. The path was '<path>'
|
||||
</code>
|
||||
@@ -786,7 +790,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-pkgname'>
|
||||
<code>
|
||||
<packagename> doesn't match the [a-z0-9.+-]+ regex [pkgname]
|
||||
</code>
|
||||
@@ -818,7 +822,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-unknown-configure-option'>
|
||||
<code>
|
||||
<recipe>: configure was passed unrecognized options: <options> [unknown-configure-option]
|
||||
</code>
|
||||
@@ -854,7 +858,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-pn-overrides'>
|
||||
<code>
|
||||
Recipe <recipefile> has PN of "<recipename>" which is in OVERRIDES, this can result in unexpected behavior. [pn-overrides]
|
||||
</code>
|
||||
@@ -894,7 +898,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-pkgvarcheck'>
|
||||
<code>
|
||||
<recipefile>: Variable <variable> is set as not being package specific, please fix this. [pkgvarcheck]
|
||||
</code>
|
||||
@@ -932,7 +936,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-already-stripped'>
|
||||
<code>
|
||||
File '<file>' from <recipename> was already stripped, this will prevent future debugging! [already-stripped]
|
||||
</code>
|
||||
@@ -977,7 +981,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-packages-list'>
|
||||
<code>
|
||||
<packagename> is listed in PACKAGES multiple times, this leads to packaging errors. [packages-list]
|
||||
</code>
|
||||
@@ -1002,7 +1006,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-files-invalid'>
|
||||
<code>
|
||||
FILES variable for package <packagename> contains '//' which is invalid. Attempting to fix this but you should correct the metadata. [files-invalid]
|
||||
</code>
|
||||
@@ -1025,7 +1029,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-installed-vs-shipped'>
|
||||
<code>
|
||||
<recipename>: Files/directories were installed but not shipped [installed-vs-shipped]
|
||||
</code>
|
||||
@@ -1065,7 +1069,7 @@
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<para id='qa-issue-old-and-new-package-and-version-names'>
|
||||
<code>
|
||||
<oldpackage>-<oldpkgversion> was registered as shlib provider for <library>, changing it to <newpackage>-<newpkgversion> because it was built later
|
||||
</code>
|
||||
@@ -1151,7 +1155,6 @@ enabled by default:
|
||||
</note>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
</chapter>
|
||||
<!--
|
||||
vim: expandtab tw=80 ts=4
|
||||
|
||||
Reference in New Issue
Block a user