From: "Matthew" <matthew.zeng@windriver.com>
To: Randy MacLeod <randy.macleod@windriver.com>
Cc: "Andreas Müller" <schnitzeltony@gmail.com>,
openembedded-devel@lists.openembedded.org
Subject: Re: Regarding poppler auto PACKAGECONFIG when qt5-layer exists
Date: Thu, 2 Apr 2020 16:43:28 -0400 [thread overview]
Message-ID: <87mu7tehzj.fsf@windriver.com> (raw)
In-Reply-To: <CALbNGRQ1LqMOstdxGu4M4+sNUMj0-zabRePq0Z0Q3SNDpjj_2A@mail.gmail.com>
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
prev parent reply other threads:[~2020-04-02 20:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mu7tehzj.fsf@windriver.com \
--to=matthew.zeng@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=randy.macleod@windriver.com \
--cc=schnitzeltony@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.