* Regarding poppler auto PACKAGECONFIG when qt5-layer exists
[not found] <87o8sbf8e4.fsf@windriver.com>
@ 2020-04-01 20:28 ` Matthew
2020-04-01 21:02 ` [oe] " Khem Raj
[not found] ` <CALbNGRSB_ZNW1qyFYuhTnR-eKCPo_oU5Bg+K4_UE5oiiCdXD=Q@mail.gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Matthew @ 2020-04-01 20:28 UTC (permalink / raw)
To: openembedded-devel
Hello,
In meta-oe/recipes-support/poppler/poppler_0.85.0.bb line 17, there is the line
PACKAGECONFIG ??= "jpeg openjpeg png tiff nss ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}"
Let's say I add meta-qt5 to bblayers.conf, but I don't plan to use it immediately in a build. Therefore I haven't make any additional change to local.conf.
However I will be receiving the following error when starting a build:
WARNING: qtbase is not whitelisted, figuring out PNWHITELIST...
ERROR: Nothing PROVIDES 'qtbase' (but .../meta-openembedded/meta-oe/recipes-support/poppler/poppler_0.85.0.bb DEPENDS on or otherwise requires it)
because PACKAGECONFIG is changed so it assumes I'll be using qt5. Is this reasonable?
--
Mingde (Matthew) Zeng
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [oe] Regarding poppler auto PACKAGECONFIG when qt5-layer exists
2020-04-01 20:28 ` Regarding poppler auto PACKAGECONFIG when qt5-layer exists Matthew
@ 2020-04-01 21:02 ` Khem Raj
2020-04-02 3:32 ` Matthew
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2020-04-01 21:02 UTC (permalink / raw)
To: Matthew, openembedded-devel
On 4/1/20 1:28 PM, Matthew wrote:
>
> Hello,
>
> In meta-oe/recipes-support/poppler/poppler_0.85.0.bb line 17, there is the line
>
> PACKAGECONFIG ??= "jpeg openjpeg png tiff nss ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}"
>
> Let's say I add meta-qt5 to bblayers.conf, but I don't plan to use it immediately in a build. Therefore I haven't make any additional change to local.conf.
>
> However I will be receiving the following error when starting a build:
>
> WARNING: qtbase is not whitelisted, figuring out PNWHITELIST...
> ERROR: Nothing PROVIDES 'qtbase' (but .../meta-openembedded/meta-oe/recipes-support/poppler/poppler_0.85.0.bb DEPENDS on or otherwise requires it)
>
> because PACKAGECONFIG is changed so it assumes I'll be using qt5. Is this reasonable?
>
Yeah I think here the choice is dynamic, what happens if you add a
bbappend where you do PACKAGECONFIG_remove = "qt5" does that work ?
>
> --
> Mingde (Matthew) Zeng
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [oe] Regarding poppler auto PACKAGECONFIG when qt5-layer exists
2020-04-01 21:02 ` [oe] " Khem Raj
@ 2020-04-02 3:32 ` Matthew
0 siblings, 0 replies; 4+ messages in thread
From: Matthew @ 2020-04-02 3:32 UTC (permalink / raw)
To: Khem Raj; +Cc: Matthew, openembedded-devel
Khem Raj <raj.khem@gmail.com> writes:
> On 4/1/20 1:28 PM, Matthew wrote:
>> Hello,
>> In meta-oe/recipes-support/poppler/poppler_0.85.0.bb line 17, there
>> is the line
>> PACKAGECONFIG ??= "jpeg openjpeg png tiff nss
>> ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '',
>> d)}"
>> Let's say I add meta-qt5 to bblayers.conf, but I don't plan to use
>> it immediately in a build. Therefore I haven't make any additional
>> change to local.conf.
>> However I will be receiving the following error when starting a
>> build:
>> WARNING: qtbase is not whitelisted, figuring out PNWHITELIST...
>> ERROR: Nothing PROVIDES 'qtbase' (but .../meta-openembedded/meta-oe/recipes-support/poppler/poppler_0.85.0.bb DEPENDS on or otherwise requires it)
>> because PACKAGECONFIG is changed so it assumes I'll be using qt5. Is
>> this reasonable?
>>
>
> Yeah I think here the choice is dynamic, what happens if you add a
> bbappend where you do PACKAGECONFIG_remove = "qt5" does that work ?
Haven't test specifically, but this should work.
However I personally don't think it is reasonable to add a PACKAGECONFIG_remove line, or any line in local.conf for a layer that I don't plan to use immediately.
The layer is added to bblayers.conf because I can use it whenever I feel necessary for my build, but I don't think anything should be triggered based on bblayers.conf, it creates more confusion.
Matthew
>
>> --
>> Mingde (Matthew) Zeng
>>
>>
>>
--
Mingde (Matthew) Zeng
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regarding poppler auto PACKAGECONFIG when qt5-layer exists
[not found] ` <CALbNGRQ1LqMOstdxGu4M4+sNUMj0-zabRePq0Z0Q3SNDpjj_2A@mail.gmail.com>
@ 2020-04-02 20:43 ` Matthew
0 siblings, 0 replies; 4+ messages in thread
From: Matthew @ 2020-04-02 20:43 UTC (permalink / raw)
To: Randy MacLeod; +Cc: Andreas Müller, openembedded-devel
Andreas Müller <schnitzeltony@gmail.com> writes:
> On Thu, Apr 2, 2020 at 7:27 PM Randy MacLeod
> <randy.macleod@windriver.com> wrote:
>>
>> On 2020-04-02 10:17 a.m., Mingde (Matthew) Zeng wrote:
>> >
>> > Andreas Müller <schnitzeltony@gmail.com> writes:
>> >
>> >> On Wed, Apr 1, 2020 at 7:02 PM Mingde (Matthew) Zeng
>> >> <matthew.zeng@windriver.com> wrote:
>> >>>
>> >>> Hello,
>> >>>
>> >>> In meta-oe/recipes-support/poppler/poppler_0.85.0.bb line 17, there is the line
>> >>>
>> >>> PACKAGECONFIG ??= "jpeg openjpeg png tiff nss ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}"
>> >>>
>> >>> Let's say I add meta-qt5 to bblayers.conf, but I don't plan to use it immediately in a build. Therefore I haven't make any additional change to local.conf.
>> >>>
>> >>> However I will be receiving the following error when starting a build:
>> >>>
>> >>> WARNING: qtbase is not whitelisted, figuring out PNWHITELIST...
>> >>> ERROR: Nothing PROVIDES 'qtbase' (but .../meta-openembedded/meta-oe/recipes-support/poppler/poppler_0.85.0.bb DEPENDS on or otherwise requires it)
>> >> Guess I know how this is going to end so just out of curiosity: What
>> >> configuration is causing 'qtbase is not whitelisted' ?
>> >
>> > This is the problem. I don't have any configuration in local.conf related to qt5, because I don't plan to use it in my build. It is only in bblayers.conf so I can use qt5 layer when I feel necessary.
>>
>> Mathew is building xfce using the whitelist bbclass that some people
>> use. When he added meta-qt5 and whitelisted a few recipes, the
>> build broke. I don't object to adding changing how poppler works
>> when qt is present but by default as Matthew said, adding a layer
>> should not change anything. On the other hand, I can understand how
>> it would be very convenient to have the dependencies and configuration
>> change automatically. Could the be a tunable that is off by default?
>> The obvious downside to such an approach is testing but the
>> PACKAGECONFIGs already suffer from lack of testing so this only makes
>> it incrementally less tested! ;-)
>>
>>
>> There are only two such dynamic package configurarations in meta-oe:
>> $ grep -r BBFILE_COLLECTIONS | grep "PACKAGECONFIG "
>> meta-oe/recipes-support/poppler/poppler_0.85.0.bb:PACKAGECONFIG ??=
>> "jpeg openjpeg png tiff nss ${@bb.utils.contains('BBFILE_COLLECTIONS',
>> 'qt5-layer', 'qt5', '', d)}"
>> meta-networking/recipes-support/wireshark/wireshark_3.2.2.bb:PACKAGECONFIG
>> ?= "libpcap gnutls libnl libcap sbc
>> ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5 plugins',
>> '', d)}"
>>
>>
>> and the only other such usage that I have in the meta-foo layers in my
>> local collection is:
>> meta-security/meta-tpm/recipes-tpm/swtpm/swtpm_0.2.0.bb:PACKAGECONFIG +=
>> "${@bb.utils.contains('BBFILE_COLLECTIONS', 'filesystems-layer', 'cuse',
>> '', d)}"
>>
>> so fixing this isn't a huge impact.
>>
>> Matthew,
>> If Andreas agrees, please send a patch removing this behaviour
>> unless someone replies this week, providing a mechanism and a
>> local.conf setting to make it configurable.
Sounds good, let's see if there is an alternative mechanism.
>>
>> ../Randy
> Ahh - thanks for explanation. Send out whatever is 'correct' I won't
> complain and find a way to not break the qt-based pdf readers /
> poppler consumers.
>
> Andreas
--
Mingde (Matthew) Zeng
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-02 20:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87o8sbf8e4.fsf@windriver.com>
2020-04-01 20:28 ` Regarding poppler auto PACKAGECONFIG when qt5-layer exists Matthew
2020-04-01 21:02 ` [oe] " Khem Raj
2020-04-02 3:32 ` Matthew
[not found] ` <CALbNGRSB_ZNW1qyFYuhTnR-eKCPo_oU5Bg+K4_UE5oiiCdXD=Q@mail.gmail.com>
[not found] ` <871rp6t1jg.fsf@windriver.com>
[not found] ` <21293c7f-669d-8153-2104-f9de823a7362@windriver.com>
[not found] ` <CALbNGRQ1LqMOstdxGu4M4+sNUMj0-zabRePq0Z0Q3SNDpjj_2A@mail.gmail.com>
2020-04-02 20:43 ` Matthew
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.