From: Robert Yang <liezhi.yang@windriver.com>
To: "Andreas Müller" <schnitzeltony@googlemail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/2] clutter-gst-3.0: add --enable/disable-gudev
Date: Fri, 13 Nov 2015 13:54:27 +0800 [thread overview]
Message-ID: <56457B13.3080402@windriver.com> (raw)
In-Reply-To: <CALbNGRSVOnr5+rScvstYDou7u-ngdx=9mGgwa9cdtBWVvus2Fg@mail.gmail.com>
On 11/12/2015 05:17 PM, Andreas Müller wrote:
> On Thu, Nov 12, 2015 at 10:06 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>>
>>
>> On 11/12/2015 05:00 PM, Andreas Müller wrote:
>>>
>>> On Thu, Nov 12, 2015 at 9:51 AM, Robert Yang <liezhi.yang@windriver.com>
>>> wrote:
>>>>
>>>> Fix dangling dependns on gudev, and systemd doesn't provide libgudev, so
>>>> it can't be enabled when systemd either.
>>>>
>>>> Fixed:
>>>> libtool: error: cannot find the library
>>>> 'tmp/sysroots/qemuarm64/usr/lib64/libgudev-1.0.la' or unhandled argument
>>>> 'tmp/sysroots/qemuarm64/usr/lib64/libgudev-1.0.la'
>>>>
>>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>>> ---
>>>> meta/recipes-graphics/clutter/clutter-gst-3.0.inc | 15 ++++++-
>>>> .../0001-configure.ac-add-enable-gudev.patch | 45
>>>> ++++++++++++++++++++
>>>> 2 files changed, 59 insertions(+), 1 deletion(-)
>>>> create mode 100644
>>>> meta/recipes-graphics/clutter/clutter-gst-3.0/0001-configure.ac-add-enable-gudev.patch
>>>>
>>>> diff --git a/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
>>>> b/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
>>>> index d4fed71..c29bc7a 100644
>>>> --- a/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
>>>> +++ b/meta/recipes-graphics/clutter/clutter-gst-3.0.inc
>>>> @@ -4,7 +4,12 @@ LICENSE = "LGPLv2+"
>>>>
>>>> inherit clutter
>>>>
>>>> -SRC_URI +=
>>>> "file://0001-Install-example-binary-needed-for-core-image-clutter.patch"
>>>> +SRC_URI +=
>>>> "file://0001-Install-example-binary-needed-for-core-image-clutter.patch \
>>>> + file://0001-configure.ac-add-enable-gudev.patch \
>>>> + "
>>>> +
>>>> +PACKAGECONFIG ??= ""
>>>> +PACKAGECONFIG[gudev] = "--enable-gudev,--disable-gudev,udev"
>>>>
>>>> DEPENDS = "gstreamer1.0-plugins-base gstreamer1.0-plugins-bad
>>>> clutter-1.0"
>>>> RDEPENDS_${PN} += "gstreamer1.0-meta-base"
>>>> @@ -12,6 +17,14 @@ PACKAGES =+ "${PN}-examples"
>>>>
>>>> EXTRA_OECONF += "--disable-introspection"
>>>>
>>>> +python () {
>>>> + if bb.utils.contains('EXTRA_OECONF', '--enable-gudev', True, False,
>>>> d) and \
>>>> + bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d):
>>>> + bb.warn("%s: gudev can't be enabled since systemd doesn't
>>>> provide libgudev" % \
>>>> + d.getVar("PN", True))
>>>> + d.appendVar('EXTRA_OECONF', ' --disable-gudev')
>>>> +}
>>>> +
>>>
>>> I think this part of the patch is wrong: You have to replace udev by
>>> gudev in DEPENDS part of packageconfig above and skip python function
>>
>>
>> I think that there is no gudev but udev ? udev provides gudev, but systemd
>> only provides udev, no gudev.
>>
> Sorry I meant libgudev - it is in meta-oe.
>
> I think there two cases of interest (packageconfig 'gudev' not set is
> boring - so not a case :)
>
> * distros with system: If packageconfig 'gudev' is set and meta-oe is
> not layers a parse error will occure similar to your python code.
> * non-systemd-distros: If packageconfig is set udev is pulled in (udev
> provides gudev for non systemd distros)
Sorry, what did you mean, please ? Are fine with this patch ?
// Robert
>
> Regards
>
> Andreas
>
next prev parent reply other threads:[~2015-11-13 5:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 8:51 [PATCH 0/2] meta: fix gdbm and clutter-gst-3.0 Robert Yang
2015-11-12 8:51 ` [PATCH 1/2] gdbm 1.8.3: install libgdbm_compat Robert Yang
2015-11-12 8:51 ` [PATCH 2/2] clutter-gst-3.0: add --enable/disable-gudev Robert Yang
2015-11-12 9:00 ` Andreas Müller
2015-11-12 9:06 ` Robert Yang
2015-11-12 9:17 ` Andreas Müller
2015-11-13 5:54 ` Robert Yang [this message]
2015-11-18 23:01 ` Burton, Ross
2015-11-12 10:25 ` Martin Jansa
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=56457B13.3080402@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=schnitzeltony@googlemail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox