From: Chong Lu <Chong.Lu@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: [PATCH V5] rrdtool: enable perl and python bindings
Date: Fri, 25 Apr 2014 16:22:07 +0800 [thread overview]
Message-ID: <535A1B2F.1010909@windriver.com> (raw)
In-Reply-To: <535A126F.1010300@dominion.thruhere.net>
On 04/25/2014 03:44 PM, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Chong Lu schreef op 25-04-14 04:22:
>> 1. default enable perl and python bindings 2. rrdtool uses perl.real,
>> perl.real doesn't know where the PERL5LIB should be when prebuilts are
>> used. Use the wrapper perl instead, perl sets PERL5LIB and invokes
>> perl.real 3. While using dash as /bin/sh, subsequent commands in
>> functions will not use the environment variables passed to the function
>> call line unless explicitly run "export ENV_VAR". 4. delete unrecognized
>> options: "--enable-local-libpng" and "--enable-local-zlib"
>>
>> Signed-off-by: Chong Lu <Chong.Lu@windriver.com> ---
>> meta-oe/recipes-extended/rrdtool/rrdtool_1.4.7.bb | 129
>> ++++++++++++++++++++- 1 file changed, 123 insertions(+), 6 deletions(-)
>>
>> diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.4.7.bb
>> b/meta-oe/recipes-extended/rrdtool/rrdtool_1.4.7.bb index
>> 533451f..36785cd 100644 ---
>> a/meta-oe/recipes-extended/rrdtool/rrdtool_1.4.7.bb +++
>> b/meta-oe/recipes-extended/rrdtool/rrdtool_1.4.7.bb @@ -15,25 +15,142 @@
>> SRC_URI = "http://oss.oetiker.ch/rrdtool/pub/rrdtool-${PV}.tar.gz \
>> SRC_URI[md5sum] = "ffe369d8921b4dfdeaaf43812100c38f" SRC_URI[sha256sum] =
>> "956aaf431c955ba88dd7d98920ade3a8c4bad04adb1f9431377950a813a7af11"
>>
>> -inherit autotools gettext +inherit autotools gettext pythonnative
>> perlnative python-dir
>>
>> EXTRA_AUTORECONF = "-I m4"
>>
>> -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "python perl" +
>> +PACKAGES_DYNAMIC += "^${PN}-perl ^${PN}-python"
> No, just no. Martin said 'Add it to PACKAGES'.
>
If I add it to PACKAGES, I will get following errors:
ERROR: QA Issue: rrdtool-perl is listed in PACKAGES multiple times, this
leads to packaging errors.
ERROR: QA Issue: rrdtool-python is listed in PACKAGES multiple times,
this leads to packaging errors.
>> +python populate_packages_prepend() { + def fill_more(name,
>> rdep=None): + if name is None or name.strip() == "": +
>> return + + fpack=d.getVar('PACKAGES') or "" +
>> fpack="${PN}-" + name + " " + fpack + d.setVar('PACKAGES', fpack)
>> + if rdep is not None: +
>> prdep=d.getVar('RDEPENDS_${PN}-' + name) or "" + prdep=rdep +
>> " " + prdep + d.setVar('RDEPENDS_${PN}-' + name, prdep) + +
>> prdep=d.getVar('RDEPENDS_${PN}-' + name) or "" + bb.debug(1,
>> "RDEPENDS_${PN}-" + name + "=" + prdep) + +
>> conf=(d.getVar('PACKAGECONFIG', True) or "").split() +
>> pack=d.getVar('PACKAGES') or "" + bb.debug(1, "PACKAGECONFIG=%s" %
>> conf) + bb.debug(1, "PACKAGES1=%s" % pack ) + + if "perl" in conf
>> : + fill_more("perl") + + if "python" in conf: +
>> fill_more("python") + + pack=d.getVar('PACKAGES', True) or "" +
>> bb.debug(1, "PACKAGES after=%s" % pack) + + #debug code +
>> #prdep=d.getVar('RDEPENDS_${PN}') or "" + #bb.debug(1,
>> "RDEPENDS_${PN}" + "=" + prdep) + #prdep=d.getVar('RDEPENDS') or "" +
>> #bb.debug(1, "RDEPENDS" + "=" + prdep) +}
> What is this?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFTWhJvMkyGM64RGpERArXTAJ4u1918rurp4h7aTEX6wW2/J0C+IgCeLLQc
> ALaeAdoJhjuntnDEx23edT0=
> =0QxD
> -----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-04-25 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-25 2:22 [PATCH V5] rrdtool: enable perl and python bindings Chong Lu
2014-04-25 7:44 ` Koen Kooi
2014-04-25 8:22 ` Chong Lu [this message]
2014-04-25 12:34 ` 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=535A1B2F.1010909@windriver.com \
--to=chong.lu@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
/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.