From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 6/7] package_rpm: fix strip_multilib function
Date: Wed, 3 Aug 2011 10:38:53 -0500 [thread overview]
Message-ID: <4E396B8D.9060806@windriver.com> (raw)
In-Reply-To: <a59303a5b3249096635224817a6b20c828277132.1312384552.git.dongxiao.xu@intel.com>
On 8/3/11 10:19 AM, Dongxiao Xu wrote:
> The previous logic could only strip MLPREFIX from the first element in
> an array, take an example, strip_multilib the [lib32-a lib32-b lib32-c]
> will result in [a lib32-b lib32-c]. This commit change it to strip all
> elements' multilib prefix.
>
> CC: Mark Hatle <mark.hatle@windriver.com>
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
> meta/classes/package_rpm.bbclass | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
> index 9d0eeba..a29ce9d 100644
> --- a/meta/classes/package_rpm.bbclass
> +++ b/meta/classes/package_rpm.bbclass
> @@ -326,7 +326,7 @@ python write_specfile () {
> for ext in multilibs.split():
> eext = ext.split(':')
> if len(eext) > 1 and eext[0] == 'multilib' and name and name.find(eext[1] + '-') == 0:
> - name = (eext[1] + '-').join(name.split(eext[1] + '-', 1)[1:])
> + name = " ".join(name.split(eext[1] + '-')[1:])
This looks incorrect to me, with the " ".join, it's going to join multiple
elements with a whitespace between them. The original code was written to work
on one item at a time within the list of multilibs.
How well has this been tested? Since I don't have all of the context this very
well might be correct within the current scope of the multilib implementation.
> return name
>
> # ml = bb.data.getVar("MLPREFIX", d, True)
> @@ -720,7 +720,7 @@ python do_package_rpm () {
> def strip_multilib(name, d):
> ml = bb.data.getVar("MLPREFIX", d, True)
> if ml and name and len(ml) != 0 and name.find(ml) == 0:
> - return ml.join(name.split(ml, 1)[1:])
> + return " ".join(name.split(ml)[1:])
> return name
>
> workdir = bb.data.getVar('WORKDIR', d, True)
next prev parent reply other threads:[~2011-08-03 15:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 15:19 [PATCH 0/7][PULL] Multilib: various fixes Dongxiao Xu
2011-08-03 15:19 ` [PATCH 1/7] eglibc-locale: Specially handle FILES_eglibc-gconv for multilib Dongxiao Xu
2011-08-03 15:19 ` [PATCH 2/7] libxml-simple-perl: Use BBCLASSEXTEND insteand of *-native recipe Dongxiao Xu
2011-08-03 15:19 ` [PATCH 3/7] openjade-native: Change RDEPENDS of sgml-common-native Dongxiao Xu
2011-08-03 15:19 ` [PATCH 4/7] multilib: Use BPN instead of PN for style like lib${PN} Dongxiao Xu
2011-08-03 15:19 ` [PATCH 5/7] multilib: remove MULTILIB_PACKAGE_ARCHS variable Dongxiao Xu
2011-08-03 15:32 ` Mark Hatle
2011-08-04 0:59 ` Xu, Dongxiao
2011-08-11 0:44 ` Xu, Dongxiao
2011-08-11 15:47 ` Mark Hatle
2011-08-03 15:19 ` [PATCH 6/7] package_rpm: fix strip_multilib function Dongxiao Xu
2011-08-03 15:38 ` Mark Hatle [this message]
2011-08-04 1:44 ` Xu, Dongxiao
2011-08-03 15:19 ` [PATCH 7/7] package_rpm: Fix package rename issue in multilib case Dongxiao Xu
2011-08-03 15:29 ` [PATCH 0/7][PULL] Multilib: various fixes Mark Hatle
2011-08-03 17:07 ` Richard Purdie
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=4E396B8D.9060806@windriver.com \
--to=mark.hatle@windriver.com \
--cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox