* [PATCH] sed: Cope with ${bindir} and ${base_bindir} being the same
@ 2015-02-05 17:02 Mike Crowe
2015-02-05 17:38 ` Burton, Ross
0 siblings, 1 reply; 6+ messages in thread
From: Mike Crowe @ 2015-02-05 17:02 UTC (permalink / raw)
To: openembedded-core; +Cc: Mike Crowe
${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.2.2.bb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] sed: Cope with ${bindir} and ${base_bindir} being the same
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
0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2015-02-05 17:38 UTC (permalink / raw)
To: Mike Crowe; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 358 bytes --]
On 5 February 2015 at 17:02, Mike Crowe <mac@mcrowe.com> wrote:
> ${bindir} and ${base_bindir} may be the same. If they are don't try and
> move files onto themselves.
>
Funnily enough I did the same fix last week but didn't send it to the list
yet as I needed to rewrite the message.
Can you update this to change both versions of sed?
Ross
[-- Attachment #2: Type: text/html, Size: 822 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] sed: Cope with ${bindir} and ${base_bindir} being the same
2015-02-05 17:38 ` Burton, Ross
@ 2015-02-05 17:42 ` Mike Crowe
2015-02-05 17:50 ` [PATCHv2] " Mike Crowe
0 siblings, 1 reply; 6+ messages in thread
From: Mike Crowe @ 2015-02-05 17:42 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
On Thursday 05 February 2015 at 17:38:07 +0000, Burton, Ross wrote:
> On 5 February 2015 at 17:02, Mike Crowe <mac@mcrowe.com> wrote:
>
> > ${bindir} and ${base_bindir} may be the same. If they are don't try and
> > move files onto themselves.
> >
>
> Funnily enough I did the same fix last week but didn't send it to the list
> yet as I needed to rewrite the message.
>
> Can you update this to change both versions of sed?
Oh, I spotted there were two versions of sed but managed to forget that by
the time I'd tested the patch. :(
I'll send an updated patch.
Thanks.
Mike.
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCHv2] sed: Cope with ${bindir} and ${base_bindir} being the same
2015-02-05 17:42 ` Mike Crowe
@ 2015-02-05 17:50 ` Mike Crowe
2015-03-03 16:56 ` Mike Crowe
0 siblings, 1 reply; 6+ messages in thread
From: Mike Crowe @ 2015-02-05 17:50 UTC (permalink / raw)
To: openembedded-core; +Cc: Mike Crowe
${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
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCHv2] sed: Cope with ${bindir} and ${base_bindir} being the same
2015-02-05 17:50 ` [PATCHv2] " Mike Crowe
@ 2015-03-03 16:56 ` Mike Crowe
2015-03-03 17:28 ` Burton, Ross
0 siblings, 1 reply; 6+ messages in thread
From: Mike Crowe @ 2015-03-03 16:56 UTC (permalink / raw)
To: openembedded-core, Burton, Ross
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-03 17:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-03-03 17:28 ` Burton, Ross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox