* [PATCH] scons: fix conflict during do_rootfs
@ 2019-06-24 9:29 changqing.li
2019-06-24 9:43 ` Burton, Ross
2019-06-25 10:06 ` Adrian Bunk
0 siblings, 2 replies; 5+ messages in thread
From: changqing.li @ 2019-06-24 9:29 UTC (permalink / raw)
To: openembedded-core
From: Changqing Li <changqing.li@windriver.com>
fix below error:
file /usr/bin/scons conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/scons-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/scons-configure-cache conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/scons-configure-cache-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/scons-time conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/scons-time-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/sconsign conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
file /usr/bin/sconsign-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
meta/recipes-devtools/python/python-scons_3.0.5.bb | 14 +++++++++++++-
meta/recipes-devtools/python/python3-scons_3.0.5.bb | 14 +++++++++++++-
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/python/python-scons_3.0.5.bb b/meta/recipes-devtools/python/python-scons_3.0.5.bb
index 939c15b..94c2d07 100644
--- a/meta/recipes-devtools/python/python-scons_3.0.5.bb
+++ b/meta/recipes-devtools/python/python-scons_3.0.5.bb
@@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
-inherit setuptools
+inherit setuptools update-alternatives
RDEPENDS_${PN} = "\
python-fcntl \
@@ -22,3 +22,15 @@ RDEPENDS_${PN} = "\
python-shell \
python-pprint \
"
+
+ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign sconsign-3.0.5"
+ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
+ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
+ALTERNATIVE_TARGET[scons-configure-cache] = "${bindir}/scons-configure-cache"
+ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] = "${bindir}/scons-configure-cache-3.0.5"
+ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
+ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
+ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
+ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
+
+ALTERNATIVE_PRIORITY = "20"
diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
index 7fb75a6..6e240d8 100644
--- a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
+++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
@@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
-inherit setuptools3
+inherit setuptools3 update-alternatives
do_install_prepend() {
sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/script/*
@@ -27,3 +27,15 @@ RDEPENDS_${PN} = "\
python3-pickle \
python3-pprint \
"
+
+ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign sconsign-3.0.5"
+ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
+ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
+ALTERNATIVE_TARGET[scons-configure-cache] = "${bindir}/scons-configure-cache"
+ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] = "${bindir}/scons-configure-cache-3.0.5"
+ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
+ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
+ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
+ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
+
+ALTERNATIVE_PRIORITY = "30"
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] scons: fix conflict during do_rootfs
2019-06-24 9:29 [PATCH] scons: fix conflict during do_rootfs changqing.li
@ 2019-06-24 9:43 ` Burton, Ross
2019-06-25 1:25 ` Changqing Li
2019-06-25 10:06 ` Adrian Bunk
1 sibling, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2019-06-24 9:43 UTC (permalink / raw)
To: Changqing Li; +Cc: OE-core
Is this actually needed? Can we just delete python-scons?
Ross
On Mon, 24 Jun 2019 at 10:33, <changqing.li@windriver.com> wrote:
>
> From: Changqing Li <changqing.li@windriver.com>
>
> fix below error:
> file /usr/bin/scons conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-configure-cache conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-configure-cache-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-time conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-time-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/sconsign conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/sconsign-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>
> Signed-off-by: Changqing Li <changqing.li@windriver.com>
> ---
> meta/recipes-devtools/python/python-scons_3.0.5.bb | 14 +++++++++++++-
> meta/recipes-devtools/python/python3-scons_3.0.5.bb | 14 +++++++++++++-
> 2 files changed, 26 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/python/python-scons_3.0.5.bb b/meta/recipes-devtools/python/python-scons_3.0.5.bb
> index 939c15b..94c2d07 100644
> --- a/meta/recipes-devtools/python/python-scons_3.0.5.bb
> +++ b/meta/recipes-devtools/python/python-scons_3.0.5.bb
> @@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
> UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
> UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
>
> -inherit setuptools
> +inherit setuptools update-alternatives
>
> RDEPENDS_${PN} = "\
> python-fcntl \
> @@ -22,3 +22,15 @@ RDEPENDS_${PN} = "\
> python-shell \
> python-pprint \
> "
> +
> +ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign sconsign-3.0.5"
> +ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
> +ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
> +ALTERNATIVE_TARGET[scons-configure-cache] = "${bindir}/scons-configure-cache"
> +ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] = "${bindir}/scons-configure-cache-3.0.5"
> +ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
> +ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
> +ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
> +ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
> +
> +ALTERNATIVE_PRIORITY = "20"
> diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> index 7fb75a6..6e240d8 100644
> --- a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> +++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> @@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
> UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
> UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
>
> -inherit setuptools3
> +inherit setuptools3 update-alternatives
>
> do_install_prepend() {
> sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/script/*
> @@ -27,3 +27,15 @@ RDEPENDS_${PN} = "\
> python3-pickle \
> python3-pprint \
> "
> +
> +ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign sconsign-3.0.5"
> +ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
> +ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
> +ALTERNATIVE_TARGET[scons-configure-cache] = "${bindir}/scons-configure-cache"
> +ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] = "${bindir}/scons-configure-cache-3.0.5"
> +ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
> +ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
> +ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
> +ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
> +
> +ALTERNATIVE_PRIORITY = "30"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scons: fix conflict during do_rootfs
2019-06-24 9:43 ` Burton, Ross
@ 2019-06-25 1:25 ` Changqing Li
2019-06-25 4:25 ` Tim Orling
0 siblings, 1 reply; 5+ messages in thread
From: Changqing Li @ 2019-06-25 1:25 UTC (permalink / raw)
To: Burton, Ross, derek; +Cc: OE-core
On 6/24/19 5:43 PM, Burton, Ross wrote:
> Is this actually needed? Can we just delete python-scons?
>
> Ross
I checked under meta-openembeded and oe-core, no one depend on
python-scons.
If no one has objections, since python2 will retire in 2020, I will
delete python-scons and python-scons-native.
Also add the maintainer into the to list.
> .
>
> On Mon, 24 Jun 2019 at 10:33, <changqing.li@windriver.com> wrote:
>> From: Changqing Li <changqing.li@windriver.com>
>>
>> fix below error:
>> file /usr/bin/scons conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/scons-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/scons-configure-cache conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/scons-configure-cache-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/scons-time conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/scons-time-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/sconsign conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>> file /usr/bin/sconsign-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>>
>> Signed-off-by: Changqing Li <changqing.li@windriver.com>
>> ---
>> meta/recipes-devtools/python/python-scons_3.0.5.bb | 14 +++++++++++++-
>> meta/recipes-devtools/python/python3-scons_3.0.5.bb | 14 +++++++++++++-
>> 2 files changed, 26 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/python/python-scons_3.0.5.bb b/meta/recipes-devtools/python/python-scons_3.0.5.bb
>> index 939c15b..94c2d07 100644
>> --- a/meta/recipes-devtools/python/python-scons_3.0.5.bb
>> +++ b/meta/recipes-devtools/python/python-scons_3.0.5.bb
>> @@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
>> UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
>> UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
>>
>> -inherit setuptools
>> +inherit setuptools update-alternatives
>>
>> RDEPENDS_${PN} = "\
>> python-fcntl \
>> @@ -22,3 +22,15 @@ RDEPENDS_${PN} = "\
>> python-shell \
>> python-pprint \
>> "
>> +
>> +ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign sconsign-3.0.5"
>> +ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
>> +ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
>> +ALTERNATIVE_TARGET[scons-configure-cache] = "${bindir}/scons-configure-cache"
>> +ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] = "${bindir}/scons-configure-cache-3.0.5"
>> +ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
>> +ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
>> +ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
>> +ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
>> +
>> +ALTERNATIVE_PRIORITY = "20"
>> diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
>> index 7fb75a6..6e240d8 100644
>> --- a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
>> +++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
>> @@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
>> UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
>> UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
>>
>> -inherit setuptools3
>> +inherit setuptools3 update-alternatives
>>
>> do_install_prepend() {
>> sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/script/*
>> @@ -27,3 +27,15 @@ RDEPENDS_${PN} = "\
>> python3-pickle \
>> python3-pprint \
>> "
>> +
>> +ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign sconsign-3.0.5"
>> +ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
>> +ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
>> +ALTERNATIVE_TARGET[scons-configure-cache] = "${bindir}/scons-configure-cache"
>> +ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] = "${bindir}/scons-configure-cache-3.0.5"
>> +ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
>> +ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
>> +ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
>> +ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
>> +
>> +ALTERNATIVE_PRIORITY = "30"
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
BRs
Sandy(Li Changqing)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scons: fix conflict during do_rootfs
2019-06-25 1:25 ` Changqing Li
@ 2019-06-25 4:25 ` Tim Orling
0 siblings, 0 replies; 5+ messages in thread
From: Tim Orling @ 2019-06-25 4:25 UTC (permalink / raw)
To: Changqing Li; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 5879 bytes --]
On Mon, Jun 24, 2019 at 6:26 PM Changqing Li <changqing.li@windriver.com>
wrote:
>
> On 6/24/19 5:43 PM, Burton, Ross wrote:
> > Is this actually needed? Can we just delete python-scons?
> >
> > Ross
>
> I checked under meta-openembeded and oe-core, no one depend on
> python-scons.
>
> If no one has objections, since python2 will retire in 2020, I will
> delete python-scons and python-scons-native.
>
> Also add the maintainer into the to list.
>
>
Please see this thread:
http://lists.openembedded.org/pipermail/openembedded-core/2019-June/283891.html
at least MongoDB currently depends on python(2)-scons to build. Adrian also
mentioned gpsd.
> .
> >
> > On Mon, 24 Jun 2019 at 10:33, <changqing.li@windriver.com> wrote:
> >> From: Changqing Li <changqing.li@windriver.com>
> >>
> >> fix below error:
> >> file /usr/bin/scons conflicts between attempted installs of
> python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/scons-3.0.5 conflicts between attempted installs of
> python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/scons-configure-cache conflicts between attempted
> installs of python-scons-3.0.5-r0.core2_32 and
> python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/scons-configure-cache-3.0.5 conflicts between attempted
> installs of python-scons-3.0.5-r0.core2_32 and
> python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/scons-time conflicts between attempted installs of
> python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/scons-time-3.0.5 conflicts between attempted installs of
> python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/sconsign conflicts between attempted installs of
> python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> >> file /usr/bin/sconsign-3.0.5 conflicts between attempted installs of
> python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> >>
> >> Signed-off-by: Changqing Li <changqing.li@windriver.com>
> >> ---
> >> meta/recipes-devtools/python/python-scons_3.0.5.bb | 14
> +++++++++++++-
> >> meta/recipes-devtools/python/python3-scons_3.0.5.bb | 14
> +++++++++++++-
> >> 2 files changed, 26 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/meta/recipes-devtools/python/python-scons_3.0.5.bb
> b/meta/recipes-devtools/python/python-scons_3.0.5.bb
> >> index 939c15b..94c2d07 100644
> >> --- a/meta/recipes-devtools/python/python-scons_3.0.5.bb
> >> +++ b/meta/recipes-devtools/python/python-scons_3.0.5.bb
> >> @@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
> >> UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
> >> UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
> >>
> >> -inherit setuptools
> >> +inherit setuptools update-alternatives
> >>
> >> RDEPENDS_${PN} = "\
> >> python-fcntl \
> >> @@ -22,3 +22,15 @@ RDEPENDS_${PN} = "\
> >> python-shell \
> >> python-pprint \
> >> "
> >> +
> >> +ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache
> scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign
> sconsign-3.0.5"
> >> +ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
> >> +ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
> >> +ALTERNATIVE_TARGET[scons-configure-cache] =
> "${bindir}/scons-configure-cache"
> >> +ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] =
> "${bindir}/scons-configure-cache-3.0.5"
> >> +ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
> >> +ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
> >> +ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
> >> +ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
> >> +
> >> +ALTERNATIVE_PRIORITY = "20"
> >> diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> >> index 7fb75a6..6e240d8 100644
> >> --- a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> >> +++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> >> @@ -12,7 +12,7 @@ S = "${WORKDIR}/scons-${PV}"
> >> UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
> >> UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
> >>
> >> -inherit setuptools3
> >> +inherit setuptools3 update-alternatives
> >>
> >> do_install_prepend() {
> >> sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3,"
> ${S}/script/*
> >> @@ -27,3 +27,15 @@ RDEPENDS_${PN} = "\
> >> python3-pickle \
> >> python3-pprint \
> >> "
> >> +
> >> +ALTERNATIVE_${PN} = "scons scons-3.0.5 scons-configure-cache
> scons-configure-cache-3.0.5 scons-time scons-time-3.0.5 sconsign
> sconsign-3.0.5"
> >> +ALTERNATIVE_TARGET[scons] = "${bindir}/scons"
> >> +ALTERNATIVE_TARGET[scons-3.0.5] = "${bindir}/scons-3.0.5"
> >> +ALTERNATIVE_TARGET[scons-configure-cache] =
> "${bindir}/scons-configure-cache"
> >> +ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] =
> "${bindir}/scons-configure-cache-3.0.5"
> >> +ALTERNATIVE_TARGET[scons-time] = "${bindir}/scons-time"
> >> +ALTERNATIVE_TARGET[scons-time-3.0.5] = "${bindir}/scons-time-3.0.5"
> >> +ALTERNATIVE_TARGET[sconsign] = "${bindir}/sconsign"
> >> +ALTERNATIVE_TARGET[sconsign-3.0.5] = "${bindir}/sconsign-3.0.5"
> >> +
> >> +ALTERNATIVE_PRIORITY = "30"
> >> --
> >> 2.7.4
> >>
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
> --
> BRs
>
> Sandy(Li Changqing)
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 9094 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scons: fix conflict during do_rootfs
2019-06-24 9:29 [PATCH] scons: fix conflict during do_rootfs changqing.li
2019-06-24 9:43 ` Burton, Ross
@ 2019-06-25 10:06 ` Adrian Bunk
1 sibling, 0 replies; 5+ messages in thread
From: Adrian Bunk @ 2019-06-25 10:06 UTC (permalink / raw)
To: changqing.li; +Cc: openembedded-core
On Mon, Jun 24, 2019 at 05:29:37PM +0800, changqing.li@windriver.com wrote:
> From: Changqing Li <changqing.li@windriver.com>
>
> fix below error:
> file /usr/bin/scons conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-configure-cache conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-configure-cache-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-time conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/scons-time-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/sconsign conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
> file /usr/bin/sconsign-3.0.5 conflicts between attempted installs of python-scons-3.0.5-r0.core2_32 and python3-scons-3.0.5-r0.core2_32
>...
Could this be solved with an RCONFLICTS between the packages?
Installing either on the target is anyways rarely wanted,
the main usecase is the -native at build time.
This would also handle the case if python-scons gets removed from
oe-core but gets added to some other layer.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-06-25 10:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24 9:29 [PATCH] scons: fix conflict during do_rootfs changqing.li
2019-06-24 9:43 ` Burton, Ross
2019-06-25 1:25 ` Changqing Li
2019-06-25 4:25 ` Tim Orling
2019-06-25 10:06 ` Adrian Bunk
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.