Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
  2013-09-13 12:02 [PATCH 0/1]LSB " Hongxu Jia
@ 2013-09-13 12:02 ` Hongxu Jia
  2013-09-13 17:40   ` Saul Wold
  0 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2013-09-13 12:02 UTC (permalink / raw)
  To: openembedded-core

The libqt-mt is tested by lsb-dist-checker and lsb-test-desktop,
and it locates in meta-qt3 layer.
So if meta-qt3 is not added, there should be a warning to call
attention; if added, it will add libqt-mt to RDEPENDS.

[YOCTO #5153]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
index 1c1a8d1..f83c5d7 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
@@ -193,6 +193,15 @@ RDEPENDS_packagegroup-core-lsb-python = "\
     python-misc \
 "
 
+def get_libqt3(d):
+    if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
+        return 'libqt-mt3'
+
+    bb.warn('The meta-qt3 layer should be added, this layer provides Qt 3.x')
+    bb.warn('libraries. Its intended use is for passing LSB tests as Qt3 is')
+    bb.warn('a requirement for LSB')
+    return ''
+
 SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop"
 DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to support libraries \
     specified in the LSB Desktop specification"
@@ -221,6 +230,7 @@ RDEPENDS_packagegroup-core-lsb-desktop = "\
     atk \
     libasound \
     ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \
+    ${@get_libqt3(d)} \
 "
 
 RDEPENDS_packagegroup-core-lsb-runtime-add = "\
-- 
1.8.1.2



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

* Re: [PATCH 1/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
  2013-09-13 12:02 ` [PATCH 1/1] LSB " Hongxu Jia
@ 2013-09-13 17:40   ` Saul Wold
  0 siblings, 0 replies; 7+ messages in thread
From: Saul Wold @ 2013-09-13 17:40 UTC (permalink / raw)
  To: Hongxu Jia; +Cc: openembedded-core

On 09/13/2013 05:02 AM, Hongxu Jia wrote:
> The libqt-mt is tested by lsb-dist-checker and lsb-test-desktop,
> and it locates in meta-qt3 layer.
> So if meta-qt3 is not added, there should be a warning to call
> attention; if added, it will add libqt-mt to RDEPENDS.
>
> [YOCTO #5153]
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>   meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 10 ++++++++++
>   1 file changed, 10 insertions(+)
>
> diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
> index 1c1a8d1..f83c5d7 100644
> --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
> +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
> @@ -193,6 +193,15 @@ RDEPENDS_packagegroup-core-lsb-python = "\
>       python-misc \
>   "
>
> +def get_libqt3(d):
> +    if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
> +        return 'libqt-mt3'
> +
I think this should have a check for linuxstdbase so it does not print 
out at other times.

Sau!

> +    bb.warn('The meta-qt3 layer should be added, this layer provides Qt 3.x')
> +    bb.warn('libraries. Its intended use is for passing LSB tests as Qt3 is')
> +    bb.warn('a requirement for LSB')
> +    return ''
> +
>   SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop"
>   DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to support libraries \
>       specified in the LSB Desktop specification"
> @@ -221,6 +230,7 @@ RDEPENDS_packagegroup-core-lsb-desktop = "\
>       atk \
>       libasound \
>       ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \
> +    ${@get_libqt3(d)} \
>   "
>
>   RDEPENDS_packagegroup-core-lsb-runtime-add = "\
>


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

* [PATCH V2 0/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
@ 2013-09-14  2:40 Hongxu Jia
  2013-09-14  2:40 ` [PATCH 1/1] " Hongxu Jia
  0 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2013-09-14  2:40 UTC (permalink / raw)
  To: openembedded-core

Change in V2: Add a check for linuxstdbase so it does not print out warnings
              at other times.

*Problem

Build core-image-lsb for lsb test which doesn't include meta-qt layer,
and there is a LSB 4.1 Library Check failure: unable to find library
libqt-mt.so.3

//Hongxu

The following changes since commit dd36930f3f37b2e0e1258de28ac1b1fa99cf196f:

  bitbake: data_smart: Account for changes in append/prepend/remove in the config hash (2013-09-12 17:03:17 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/fix-lsb-libqt3
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-lsb-libqt3

Hongxu Jia (1):
  LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3

 meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
1.8.1.2



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

* [PATCH 1/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
  2013-09-14  2:40 [PATCH V2 0/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3 Hongxu Jia
@ 2013-09-14  2:40 ` Hongxu Jia
  2013-09-14  5:07   ` Saul Wold
  0 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2013-09-14  2:40 UTC (permalink / raw)
  To: openembedded-core

The libqt-mt is tested by lsb-dist-checker and lsb-test-desktop,
and it locates in meta-qt3 layer.
So if meta-qt3 is not added, there should be a warning to call
attention; if added, it will add libqt-mt to RDEPENDS.

[YOCTO #5153]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
index 1c1a8d1..c0dda5a 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
@@ -193,6 +193,16 @@ RDEPENDS_packagegroup-core-lsb-python = "\
     python-misc \
 "
 
+def get_libqt3(d):
+    if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
+        return 'libqt-mt3'
+
+    if 'linuxstdbase' in d.getVar('DISTROOVERRIDES') or "":
+        bb.warn('The meta-qt3 layer should be added, this layer provides Qt 3.x')
+        bb.warn('libraries. Its intended use is for passing LSB tests as Qt3 is')
+        bb.warn('a requirement for LSB')
+    return ''
+
 SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop"
 DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to support libraries \
     specified in the LSB Desktop specification"
@@ -221,6 +231,7 @@ RDEPENDS_packagegroup-core-lsb-desktop = "\
     atk \
     libasound \
     ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \
+    ${@get_libqt3(d)} \
 "
 
 RDEPENDS_packagegroup-core-lsb-runtime-add = "\
-- 
1.8.1.2



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

* Re: [PATCH 1/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
  2013-09-14  2:40 ` [PATCH 1/1] " Hongxu Jia
@ 2013-09-14  5:07   ` Saul Wold
  2013-09-14  5:11     ` Hongxu Jia
  2013-09-14  5:21     ` Hongxu Jia
  0 siblings, 2 replies; 7+ messages in thread
From: Saul Wold @ 2013-09-14  5:07 UTC (permalink / raw)
  To: Hongxu Jia; +Cc: openembedded-core

On 09/13/2013 07:40 PM, Hongxu Jia wrote:
> The libqt-mt is tested by lsb-dist-checker and lsb-test-desktop,
> and it locates in meta-qt3 layer.
> So if meta-qt3 is not added, there should be a warning to call
> attention; if added, it will add libqt-mt to RDEPENDS.
>
> [YOCTO #5153]
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>   meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
> index 1c1a8d1..c0dda5a 100644
> --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
> +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
> @@ -193,6 +193,16 @@ RDEPENDS_packagegroup-core-lsb-python = "\
>       python-misc \
>   "
>
> +def get_libqt3(d):
> +    if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
> +        return 'libqt-mt3'
> +
I think this might cause unexpected behavoir for people who just happen 
to have qt3 in their bblayer, I would also wrap the linuxstdbase around 
the above line.

Sorry for not being clear about the first time.

Sau!

> +    if 'linuxstdbase' in d.getVar('DISTROOVERRIDES') or "":
> +        bb.warn('The meta-qt3 layer should be added, this layer provides Qt 3.x')
> +        bb.warn('libraries. Its intended use is for passing LSB tests as Qt3 is')
> +        bb.warn('a requirement for LSB')
> +    return ''
> +
>   SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop"
>   DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to support libraries \
>       specified in the LSB Desktop specification"
> @@ -221,6 +231,7 @@ RDEPENDS_packagegroup-core-lsb-desktop = "\
>       atk \
>       libasound \
>       ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \
> +    ${@get_libqt3(d)} \
>   "
>
>   RDEPENDS_packagegroup-core-lsb-runtime-add = "\
>


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

* Re: [PATCH 1/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
  2013-09-14  5:07   ` Saul Wold
@ 2013-09-14  5:11     ` Hongxu Jia
  2013-09-14  5:21     ` Hongxu Jia
  1 sibling, 0 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-09-14  5:11 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

On 09/14/2013 01:07 PM, Saul Wold wrote:
> On 09/13/2013 07:40 PM, Hongxu Jia wrote:
>> The libqt-mt is tested by lsb-dist-checker and lsb-test-desktop,
>> and it locates in meta-qt3 layer.
>> So if meta-qt3 is not added, there should be a warning to call
>> attention; if added, it will add libqt-mt to RDEPENDS.
>>
>> [YOCTO #5153]
>>
>> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>> ---
>>   meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 11 
>> +++++++++++
>>   1 file changed, 11 insertions(+)
>>
>> diff --git 
>> a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb 
>> b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
>> index 1c1a8d1..c0dda5a 100644
>> --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
>> +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
>> @@ -193,6 +193,16 @@ RDEPENDS_packagegroup-core-lsb-python = "\
>>       python-misc \
>>   "
>>
>> +def get_libqt3(d):
>> +    if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
>> +        return 'libqt-mt3'
>> +
> I think this might cause unexpected behavoir for people who just 
> happen to have qt3 in their bblayer, I would also wrap the 
> linuxstdbase around the above line.
>

Alright, I will let linuxstdbase move up

Thanks,
Hongxu

> Sorry for not being clear about the first time.
>
> Sau!
>
>> +    if 'linuxstdbase' in d.getVar('DISTROOVERRIDES') or "":
>> +        bb.warn('The meta-qt3 layer should be added, this layer 
>> provides Qt 3.x')
>> +        bb.warn('libraries. Its intended use is for passing LSB 
>> tests as Qt3 is')
>> +        bb.warn('a requirement for LSB')
>> +    return ''
>> +
>>   SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop"
>>   DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to 
>> support libraries \
>>       specified in the LSB Desktop specification"
>> @@ -221,6 +231,7 @@ RDEPENDS_packagegroup-core-lsb-desktop = "\
>>       atk \
>>       libasound \
>>       ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", 
>> "", d)} \
>> +    ${@get_libqt3(d)} \
>>   "
>>
>>   RDEPENDS_packagegroup-core-lsb-runtime-add = "\
>>



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

* Re: [PATCH 1/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3
  2013-09-14  5:07   ` Saul Wold
  2013-09-14  5:11     ` Hongxu Jia
@ 2013-09-14  5:21     ` Hongxu Jia
  1 sibling, 0 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-09-14  5:21 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

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

Hi Saul,

I have updated the branch as your suggestion.

   git://git.pokylinux.org/poky-contrib hongxu/fix-lsb-libqt3
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-lsb-libqt3

+def get_libqt3(d):
+    if 'linuxstdbase' in d.getVar('DISTROOVERRIDES') or "":
+        if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
+            return 'libqt-mt3'
+
+        bb.warn('The meta-qt3 layer should be added, this layer 
provides Qt 3.x')
+        bb.warn('libraries. Its intended use is for passing LSB tests 
as Qt3 is')
+        bb.warn('a requirement for LSB')
+    return ''
+

Thanks,
Hongxu


On 09/14/2013 01:07 PM, Saul Wold wrote:
> On 09/13/2013 07:40 PM, Hongxu Jia wrote:
>> The libqt-mt is tested by lsb-dist-checker and lsb-test-desktop,
>> and it locates in meta-qt3 layer.
>> So if meta-qt3 is not added, there should be a warning to call
>> attention; if added, it will add libqt-mt to RDEPENDS.
>>
>> [YOCTO #5153]
>>
>> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>> ---
>>   meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 11 
>> +++++++++++
>>   1 file changed, 11 insertions(+)
>>
>> diff --git 
>> a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb 
>> b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
>> index 1c1a8d1..c0dda5a 100644
>> --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
>> +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb
>> @@ -193,6 +193,16 @@ RDEPENDS_packagegroup-core-lsb-python = "\
>>       python-misc \
>>   "
>>
>> +def get_libqt3(d):
>> +    if 'qt3' in d.getVar('BBFILE_COLLECTIONS') or "":
>> +        return 'libqt-mt3'
>> +
> I think this might cause unexpected behavoir for people who just 
> happen to have qt3 in their bblayer, I would also wrap the 
> linuxstdbase around the above line.
>
> Sorry for not being clear about the first time.
>
> Sau!
>
>> +    if 'linuxstdbase' in d.getVar('DISTROOVERRIDES') or "":
>> +        bb.warn('The meta-qt3 layer should be added, this layer 
>> provides Qt 3.x')
>> +        bb.warn('libraries. Its intended use is for passing LSB 
>> tests as Qt3 is')
>> +        bb.warn('a requirement for LSB')
>> +    return ''
>> +
>>   SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop"
>>   DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to 
>> support libraries \
>>       specified in the LSB Desktop specification"
>> @@ -221,6 +231,7 @@ RDEPENDS_packagegroup-core-lsb-desktop = "\
>>       atk \
>>       libasound \
>>       ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", 
>> "", d)} \
>> +    ${@get_libqt3(d)} \
>>   "
>>
>>   RDEPENDS_packagegroup-core-lsb-runtime-add = "\
>>


[-- Attachment #2: Type: text/html, Size: 5233 bytes --]

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

end of thread, other threads:[~2013-09-14  5:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-14  2:40 [PATCH V2 0/1] LSB 4.1 Library Check: fix unable to find library libqt-mt.so.3 Hongxu Jia
2013-09-14  2:40 ` [PATCH 1/1] " Hongxu Jia
2013-09-14  5:07   ` Saul Wold
2013-09-14  5:11     ` Hongxu Jia
2013-09-14  5:21     ` Hongxu Jia
  -- strict thread matches above, loose matches on Subject: below --
2013-09-13 12:02 [PATCH 0/1]LSB " Hongxu Jia
2013-09-13 12:02 ` [PATCH 1/1] LSB " Hongxu Jia
2013-09-13 17:40   ` Saul Wold

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