Skip to contentSkip to conversation

insane.bbclass: Added QA warning for shipping /usr/share/info/dir

PATCH In review Mihai Prica 3 participants 5 messages Jul 1, 2013 – Jul 11, 2013

lore
Share & tools
lore
#0 lore raw

cover insane.bbclass: Added QA warning for shipping /usr/share/info/dir

The following changes since commit 80b263430453896189b704d0997943642eec6fef:

classes/insane: remove la2 check which no longer exists from ERROR_QA (2013-06-28 16:33:08 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib mihaip/b3969
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mihaip/b3969

Mihai Prica (1):
insane.bbclass: Added QA warning for shipping /usr/share/info/dir

 meta/classes/insane.bbclass |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 insane.bbclass: Added QA warning for shipping /usr/share/info/dir

/usr/share/info/dir should be generated at install time in a postinst. Added QA warning to check at build time for this file. The warning is disabled by default.

[YOCTO #3969]

---
 meta/classes/insane.bbclass |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meta/classes/insane.bbclass +11 -1
index 27c225f..cde1ea9 100644
@@ -32,7 +32,7 @@ QA_SANE = "True"
 WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \
             textrel already-stripped incompatible-license files-invalid \
             installed-vs-shipped compile-host-path install-host-path \
-            pn-overrides \
+            pn-overrides infodir \
             "
 ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
@@ -552,6 +552,16 @@ def package_qa_check_xorg_driver_abi(path, name, d, elf, messages):
                 return
         messages.append("Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path)))
 
+QAPATHTEST[infodir] = "package_qa_check_infodir"
+def package_qa_check_infodir(path, name, d, elf, messages):
+    """
+    Check that /usr/share/info/dir isn't shipped in a particular package
+    """
+    infodir = d.expand("${infodir}/dir")
+
+    if infodir in path:
+        messages.append("The /usr/share/info/dir file is not meant to be shipped in a particular package.")
+
 def package_qa_check_license(workdir, d):
     """
     Check for changes in the license files 
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 3 lines · Mihai Prica

/usr/share/info/dir should be generated at install time in a postinst. Added QA warning to check at build time for this file. The warning is disabled by default.

Patch is good but why don't we enable this by default?

Ross

#3 lore raw
Quoted 6 lines · Ross
Quoted 3 lines · Mihai Prica

/usr/share/info/dir should be generated at install time in a postinst. Added QA warning to check at build time for this file. The warning is disabled by default.

Patch is good but why don't we enable this by default?

FWIW: this is list of QA issues found with this check in my world builds:

gcc-4.8.1: The /usr/share/info/dir file is not meant to be shipped in a particular package. ed-1.7: The /usr/share/info/dir file is not meant to be shipped in a particular package. emacs-23.4: The /usr/share/info/dir file is not meant to be shipped in a particular package. quagga-0.99.21: The /usr/share/info/dir file is not meant to be shipped in a particular package. lzip-1.14: The /usr/share/info/dir file is not meant to be shipped in a particular package.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw

Hi Ross,

Quoted 9 lines

-----Original Message-----

Quoted 6 lines · Ross
Quoted 3 lines · Mihai Prica

/usr/share/info/dir should be generated at install time in a postinst. Added QA warning to check at build time for this file. The warning is disabled by default.

Patch is good but why don't we enable this by default?

Sorry for the responding so late but I've missed this mail. I've looked at master and Paul already enabled this check.

Thanks,
Mihai

Quoted 16 lines

FWIW: this is list of QA issues found with this check in my world builds:

gcc-4.8.1: The /usr/share/info/dir file is not meant to be shipped in a particular package.
ed-1.7: The /usr/share/info/dir file is not meant to be shipped in a particular package.
emacs-23.4: The /usr/share/info/dir file is not meant to be shipped in a particular package.
quagga-0.99.21: The /usr/share/info/dir file is not meant to be shipped in a particular package.
lzip-1.14: The /usr/share/info/dir file is not meant to be shipped in a particular package.

--
Martin 'JaMa' Jansa jabber: [email protected]