Skip to contentSkip to conversation

scons: fix conflict during do_rootfs

PATCH In review [email protected] 4 participants 5 messages Jun 24, 2019 – Jun 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scons: fix conflict during do_rootfs

From: Changqing Li <[email protected]>

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

---
 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(-)
meta/recipes-devtools/python/python-scons_3.0.5.bb +13 -1
index 939c15b..94c2d07 100644
@@ -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"
meta/recipes-devtools/python/python3-scons_3.0.5.bb +13 -1
index 7fb75a6..6e240d8 100644
@@ -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"
Signature · 1 line
2.7.4
#1 lore raw

Is this actually needed? Can we just delete python-scons?

Ross

Quoted 85 lines · On Mon, 24 Jun 2019 at 10:33, <[email protected]> wrote:

From: Changqing Li <[email protected]>

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

---
 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(-)
meta/recipes-devtools/python/python-scons_3.0.5.bb +13 -1
index 939c15b..94c2d07 100644
@@ -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"
meta/recipes-devtools/python/python3-scons_3.0.5.bb +13 -2
index 7fb75a6..6e240d8 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 3 lines · Ross

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.

Quoted 87 lines

.

Quoted 84 lines · On Mon, 24 Jun 2019 at 10:33, <[email protected]> wrote:

From: Changqing Li <[email protected]>

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

---
  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(-)
meta/recipes-devtools/python/python-scons_3.0.5.bb +13 -1
index 939c15b..94c2d07 100644
@@ -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"
meta/recipes-devtools/python/python3-scons_3.0.5.bb +13 -2
index 7fb75a6..6e240d8 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
BRs

Sandy(Li Changqing)
#3 lore raw
Quoted 6 lines · Changqing Li
Quoted 3 lines · Ross

Is this actually needed? Can we just delete python-scons?

Ross

Quoted 9 lines

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.

Quoted 122 lines

.

Quoted 6 lines · On Mon, 24 Jun 2019 at 10:33, <[email protected]> wrote:
Quoted 4 lines

From: Changqing Li <[email protected]>

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

Quoted 1 line
Quoted 1 line

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

Quoted 1 line
Quoted 1 line

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

Quoted 1 line
Quoted 1 line

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

Quoted 1 line
Quoted 1 line

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

Quoted 1 line
Quoted 1 line

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

Quoted 1 line
Quoted 1 line

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

Quoted 1 line
Quoted 1 line

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

Quoted 4 lines
Quoted 4 lines
---
  meta/recipes-devtools/python/python-scons_3.0.5.bb  | 14

+++++++++++++-

Quoted 1 line
Quoted 1 line
  meta/recipes-devtools/python/python3-scons_3.0.5.bb | 14

+++++++++++++-

Quoted 3 lines

Review

Quoted 3 lines
  2 files changed, 26 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-devtools/python/python-scons_3.0.5.bb

Quoted 10 lines
Quoted 10 lines

index 939c15b..94c2d07 100644

meta/recipes-devtools/python/python-scons_3.0.5.bb +1 -1
@@ -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
 
Quoted 8 lines

meta/recipes-devtools/python/python-scons_3.0.5.bb RDEPENDS_${PN} = "\ · line 26

Quoted 8 lines
meta/recipes-devtools/python/python-scons_3.0.5.bb +2 -0
  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"

Quoted 3 lines

meta/recipes-devtools/python/python-scons_3.0.5.bb RDEPENDS_${PN} = "\

Quoted 3 lines
meta/recipes-devtools/python/python-scons_3.0.5.bb +3 -0
+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"

Quoted 1 line

meta/recipes-devtools/python/python-scons_3.0.5.bb RDEPENDS_${PN} = "\ · line 30

Quoted 1 line
meta/recipes-devtools/python/python-scons_3.0.5.bb +1 -0
+ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] =

"${bindir}/scons-configure-cache-3.0.5"

Quoted 7 lines

Review

Quoted 7 lines
meta/recipes-devtools/python/python-scons_3.0.5.bb +6 -0
+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"
(quoted diff) +0 -0

b/meta/recipes-devtools/python/python3-scons_3.0.5.bb

Quoted 7 lines
Quoted 7 lines

index 7fb75a6..6e240d8 100644

meta/recipes-devtools/python/python3-scons_3.0.5.bb +0 -0
@@ -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"
 
Quoted 5 lines

meta/recipes-devtools/python/python3-scons_3.0.5.bb S = "${WORKDIR}/scons-${PV}"

Quoted 5 lines
meta/recipes-devtools/python/python3-scons_3.0.5.bb +1 -1
-inherit setuptools3
+inherit setuptools3 update-alternatives
 
  do_install_prepend() {
      sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3,"

${S}/script/*

Quoted 6 lines

meta/recipes-devtools/python/python3-scons_3.0.5.bb RDEPENDS_${PN} = "\ · line 31

Quoted 6 lines
meta/recipes-devtools/python/python3-scons_3.0.5.bb +2 -0
@@ -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"

Quoted 3 lines

meta/recipes-devtools/python/python3-scons_3.0.5.bb RDEPENDS_${PN} = "\ · line 34

Quoted 3 lines
meta/recipes-devtools/python/python3-scons_3.0.5.bb +3 -0
+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"

Quoted 1 line

meta/recipes-devtools/python/python3-scons_3.0.5.bb RDEPENDS_${PN} = "\ · line 35

Quoted 1 line
meta/recipes-devtools/python/python3-scons_3.0.5.bb +1 -0
+ALTERNATIVE_TARGET[scons-configure-cache-3.0.5] =

"${bindir}/scons-configure-cache-3.0.5"

Quoted 9 lines
Quoted 9 lines
meta/recipes-devtools/python/python3-scons_3.0.5.bb +6 -1
+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

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
BRs

Sandy(Li Changqing)

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
In reply to [email protected]
Quoted 12 lines · On Mon, Jun 24, 2019 at 05:29:37PM +0800, [email protected] wrote:

From: Changqing Li <[email protected]>

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

Signature · 4 lines
       "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