Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir
@ 2013-07-01 10:30 Mihai Prica
  2013-07-01 10:31 ` [PATCH 1/1] " Mihai Prica
  0 siblings, 1 reply; 5+ messages in thread
From: Mihai Prica @ 2013-07-01 10:30 UTC (permalink / raw)
  To: openembedded-core

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(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir
  2013-07-01 10:30 [PATCH 0/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir Mihai Prica
@ 2013-07-01 10:31 ` Mihai Prica
  2013-07-01 14:51   ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Mihai Prica @ 2013-07-01 10:31 UTC (permalink / raw)
  To: openembedded-core

/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]

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
---
 meta/classes/insane.bbclass |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 27c225f..cde1ea9 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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 
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir
  2013-07-01 10:31 ` [PATCH 1/1] " Mihai Prica
@ 2013-07-01 14:51   ` Burton, Ross
  2013-07-10 11:44     ` Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2013-07-01 14:51 UTC (permalink / raw)
  To: Mihai Prica; +Cc: openembedded-core

On 1 July 2013 11:31, Mihai Prica <mihai.prica@intel.com> wrote:
> /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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir
  2013-07-01 14:51   ` Burton, Ross
@ 2013-07-10 11:44     ` Martin Jansa
  2013-07-11  7:15       ` Prica, Mihai
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2013-07-10 11:44 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

On Mon, Jul 01, 2013 at 03:51:26PM +0100, Burton, Ross wrote:
> On 1 July 2013 11:31, Mihai Prica <mihai.prica@intel.com> wrote:
> > /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.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir
  2013-07-10 11:44     ` Martin Jansa
@ 2013-07-11  7:15       ` Prica, Mihai
  0 siblings, 0 replies; 5+ messages in thread
From: Prica, Mihai @ 2013-07-11  7:15 UTC (permalink / raw)
  To: Martin Jansa, Burton, Ross; +Cc: openembedded-core@lists.openembedded.org

Hi Ross,

> -----Original Message-----
> 
> On Mon, Jul 01, 2013 at 03:51:26PM +0100, Burton, Ross wrote:
> > On 1 July 2013 11:31, Mihai Prica <mihai.prica@intel.com> wrote:
> > > /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

> 
> 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: Martin.Jansa@gmail.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-11  7:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 10:30 [PATCH 0/1] insane.bbclass: Added QA warning for shipping /usr/share/info/dir Mihai Prica
2013-07-01 10:31 ` [PATCH 1/1] " Mihai Prica
2013-07-01 14:51   ` Burton, Ross
2013-07-10 11:44     ` Martin Jansa
2013-07-11  7:15       ` Prica, Mihai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox