From: Mike Crowe <mac@mcrowe.com>
To: openembedded-core@lists.openembedded.org, "Burton,
Ross" <ross.burton@intel.com>
Subject: Re: [PATCHv2] sed: Cope with ${bindir} and ${base_bindir} being the same
Date: Tue, 3 Mar 2015 16:56:48 +0000 [thread overview]
Message-ID: <20150303165648.GA11515@mcrowe.com> (raw)
In-Reply-To: <1423158623-26927-1-git-send-email-mac@mcrowe.com>
On Thursday 05 February 2015 at 17:50:23 +0000, Mike Crowe wrote:
> ${bindir} and ${base_bindir} may be the same. If they are don't try and
> move files onto themselves.
>
> Signed-off-by: Mike Crowe <mac@mcrowe.com>
> ---
> meta/recipes-extended/sed/sed_4.1.2.bb | 6 ++++--
> meta/recipes-extended/sed/sed_4.2.2.bb | 6 ++++--
> 2 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-extended/sed/sed_4.1.2.bb b/meta/recipes-extended/sed/sed_4.1.2.bb
> index 4c0f345..40e3a53 100644
> --- a/meta/recipes-extended/sed/sed_4.1.2.bb
> +++ b/meta/recipes-extended/sed/sed_4.1.2.bb
> @@ -23,8 +23,10 @@ do_configure_prepend () {
> do_install () {
> autotools_do_install
> install -d ${D}${base_bindir}
> - mv ${D}${bindir}/sed ${D}${base_bindir}/sed
> - rmdir ${D}${bindir}/
> + if [ ! ${D}${bindir} -ef ${D}${base_bindir} ]; then
> + mv ${D}${bindir}/sed ${D}${base_bindir}/sed
> + rmdir ${D}${bindir}/
> + fi
> }
>
> ALTERNATIVE_${PN} = "sed"
> diff --git a/meta/recipes-extended/sed/sed_4.2.2.bb b/meta/recipes-extended/sed/sed_4.2.2.bb
> index 72976de..bbfa238 100644
> --- a/meta/recipes-extended/sed/sed_4.2.2.bb
> +++ b/meta/recipes-extended/sed/sed_4.2.2.bb
> @@ -22,8 +22,10 @@ EXTRA_OECONF = "--disable-acl \
> do_install () {
> autotools_do_install
> install -d ${D}${base_bindir}
> - mv ${D}${bindir}/sed ${D}${base_bindir}/sed
> - rmdir ${D}${bindir}/
> + if [ ! ${D}${bindir} -ef ${D}${base_bindir} ]; then
> + mv ${D}${bindir}/sed ${D}${base_bindir}/sed
> + rmdir ${D}${bindir}/
> + fi
> }
>
> ALTERNATIVE_${PN} = "sed"
> --
> 2.1.4
It doesn't look like this patch has been merged. Is there something wrong
with it than I need to attend to?
Thanks.
Mike.
next prev parent reply other threads:[~2015-03-03 16:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 17:02 [PATCH] sed: Cope with ${bindir} and ${base_bindir} being the same Mike Crowe
2015-02-05 17:38 ` Burton, Ross
2015-02-05 17:42 ` Mike Crowe
2015-02-05 17:50 ` [PATCHv2] " Mike Crowe
2015-03-03 16:56 ` Mike Crowe [this message]
2015-03-03 17:28 ` Burton, Ross
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=20150303165648.GA11515@mcrowe.com \
--to=mac@mcrowe.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.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