Skip to contentSkip to conversation

packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

PATCH In review [email protected] 3 participants 7 messages Oct 17, 2018 – Oct 20, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing" comment in the recipe.

---
 .../packagegroups/packagegroup-tools-bluetooth.bb            | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +4 -1
index 0ede5e57b..207c7c1ae 100644
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
 # Install bluez4 tools or bluez5 tools depending on what is specified in the distro.
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5' else ''} \
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4' else ''} \
+"
Signature · 1 line
2.19.1
#1 lore raw
Quoted 27 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of [email protected]
Sent: den 17 oktober 2018 22:57
To: [email protected]
Cc: Yann Dirson <[email protected]>
Subject: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing" comment in the recipe.

---
 .../packagegroups/packagegroup-tools-bluetooth.bb            | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +0 -0
index 0ede5e57b..207c7c1ae 100644

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \ · line 40

Quoted 8 lines
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +4 -1
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
 # Install bluez4 tools or bluez5 tools depending on what is specified in the distro.
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5' else ''} \
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4' else ''} \
+"

You can simplify this (and support any value of ${BLUEZ} just in case someone decides to add bluez6):

RDEPENDS_${PN} = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ') else ''}"

Also, the second argument to d.getVar() has defaulted to True for a long time, so no point in specifying it.

Quoted 2 lines

--
2.19.1

//Peter

#2 lore raw

I wouldn't say that supporting bluez6 as BLUEZ value before RDEPENDS_bluez6 is defined here is really better.

Whole bluez4 support here is a bit useless considering that all bluez4 related recipes were removed more than a year ago with:

commit 007498ac72e26e9f7064de74f7fe96e91ae6c969

Author: Martin Jansa <[email protected]>
Date:   Mon Jul 24 19:25:35 2017 +0200

bluez4: remove bluez4-only recipes

Quoted 66 lines · Peter Kjellerstedt
Quoted 2 lines

-----Original Message-----
From: [email protected] <

[email protected]> On Behalf Of [email protected]

Quoted 4 lines

Sent: den 17 oktober 2018 22:57
To: [email protected]
Cc: Yann Dirson <[email protected]>
Subject: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as

advertized on distro without bluez* support

Quoted 11 lines

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing" comment in the recipe.

Review

Quoted 6 lines
---
 .../packagegroups/packagegroup-tools-bluetooth.bb            | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

Quoted 2 lines

index 0ede5e57b..207c7c1ae 100644
--- a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 1 line

+++ b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Review RDEPENDS_bluez5 = " \ · line 35

Quoted 3 lines
(quoted diff) +0 -0
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
 # Install bluez4 tools or bluez5 tools depending on what is specified

in the distro.

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \

Quoted 4 lines
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -1
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5' else

''} \

Review RDEPENDS_bluez5 = " \ · line 39

Quoted 1 line
(quoted diff) +1 -0
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4' else

''} \

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \ · line 40

Quoted 1 line
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +1 -0
+"

You can simplify this (and support any value of ${BLUEZ} just in case someone decides to add bluez6):

RDEPENDS_${PN} = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ') else ''}"

Also, the second argument to d.getVar() has defaulted to True for a long time, so no point in specifying it.

Quoted 2 lines

--
2.19.1

//Peter

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

#3 lore raw

While digging around this, I noticed that BLUEZ is set depending on DISTRO_FEATURES only, wouldn't it make more sense to check COMBINED_FEATURES instead ?

Le mer. 17 oct. 2018 à 23:34, Martin Jansa <[email protected]> a écrit :

Quoted 83 lines

I wouldn't say that supporting bluez6 as BLUEZ value before RDEPENDS_bluez6 is defined here is really better.

Whole bluez4 support here is a bit useless considering that all bluez4 related recipes were removed more than a year ago with:

commit 007498ac72e26e9f7064de74f7fe96e91ae6c969

Author: Martin Jansa <[email protected]>
Date:   Mon Jul 24 19:25:35 2017 +0200

bluez4: remove bluez4-only recipes

Quoted 66 lines · Peter Kjellerstedt
Quoted 2 lines

-----Original Message-----
From: [email protected] <

[email protected]> On Behalf Of [email protected]

Quoted 4 lines

Sent: den 17 oktober 2018 22:57
To: [email protected]
Cc: Yann Dirson <[email protected]>
Subject: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as

advertized on distro without bluez* support

Quoted 11 lines

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing" comment in the recipe.

Review

Quoted 6 lines
---
 .../packagegroups/packagegroup-tools-bluetooth.bb            | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

Quoted 2 lines

index 0ede5e57b..207c7c1ae 100644
--- a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 1 line

+++ b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Review RDEPENDS_bluez5 = " \ · line 35

Quoted 3 lines
(quoted diff) +0 -0
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
 # Install bluez4 tools or bluez5 tools depending on what is specified

in the distro.

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \

Quoted 4 lines
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -1
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5'

else ''} \

Review RDEPENDS_bluez5 = " \ · line 39

Quoted 1 line
(quoted diff) +1 -0
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4'

else ''} \

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \ · line 40

Quoted 1 line
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +1 -0
+"

You can simplify this (and support any value of ${BLUEZ} just in case someone decides to add bluez6):

RDEPENDS_${PN} = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ') else ''}"

Also, the second argument to d.getVar() has defaulted to True for a long time, so no point in specifying it.

Quoted 2 lines

--
2.19.1

//Peter

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

Signature · 2 lines
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris
#4 lore raw
In reply to Martin Jansa
Quoted 10 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Martin Jansa
Sent: den 17 oktober 2018 23:34
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; openembedded-devel <openembedded- [email protected]>
Subject: Re: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

Quoted 2 lines

I wouldn't say that supporting bluez6 as BLUEZ value before RDEPENDS_bluez6 is defined here is really better.

Well, my point was that rewriting it according to my suggestion makes it agnostic to whatever value the ${BLUEZ} variable has.

Quoted 54 lines

Whole bluez4 support here is a bit useless considering that all bluez4 related recipes were removed more than a year ago with:

commit 007498ac72e26e9f7064de74f7fe96e91ae6c969

Author: Martin Jansa <[email protected]>
Date:   Mon Jul 24 19:25:35 2017 +0200

bluez4: remove bluez4-only recipes

Quoted 18 lines · Peter Kjellerstedt
Quoted 2 lines

-----Original Message-----
From: [email protected] <

[email protected]> On Behalf Of [email protected]

Quoted 4 lines

Sent: den 17 oktober 2018 22:57
To: [email protected]
Cc: Yann Dirson <[email protected]>
Subject: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as

advertized on distro without bluez* support

Quoted 9 lines

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing" comment

in

Quoted 5 lines
Quoted 5 lines

the recipe.

---
 .../packagegroups/packagegroup-tools-bluetooth.bb            | 5

++++-

Quoted 6 lines

Review

Quoted 3 lines
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

Quoted 8 lines
Quoted 2 lines

index 0ede5e57b..207c7c1ae 100644
--- a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 1 line

+++ b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Review RDEPENDS_bluez5 = " \ · line 35

Quoted 3 lines
(quoted diff) +0 -0
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
 # Install bluez4 tools or bluez5 tools depending on what is

specified

Quoted 1 line

in the distro.

Quoted 23 lines
Quoted 4 lines

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \

Quoted 4 lines
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -1
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5'

else

Quoted 2 lines

''} \

Quoted 1 line
(quoted diff) +1 -0
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4'

else

Quoted 15 lines

''} \

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \ · line 40

Quoted 1 line
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +1 -0
+"

You can simplify this (and support any value of ${BLUEZ} just in case someone decides to add bluez6):

RDEPENDS_${PN} = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ') else ''}"

Also, the second argument to d.getVar() has defaulted to True for a long time, so no point in specifying it.

Quoted 2 lines

--
2.19.1

//Peter

//Peter

#5 lore raw
Quoted 10 lines · Peter Kjellerstedt
Quoted 10 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Martin Jansa
Sent: den 17 oktober 2018 23:34
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; openembedded-devel <openembedded- [email protected]>
Subject: Re: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

Quoted 5 lines
Quoted 2 lines

I wouldn't say that supporting bluez6 as BLUEZ value before RDEPENDS_bluez6 is defined here is really better.

Well, my point was that rewriting it according to my suggestion makes it agnostic to whatever value the ${BLUEZ} variable has.

And my point is that it doesn't make it better, because it will do something useful only with RDEPENDS_bluez4 or RDEPENDS_bluez5, adding dependency on undefined ${RDEPENDS_whatever} doesn't really help, does it?

Quoted 80 lines
Quoted 54 lines

Whole bluez4 support here is a bit useless considering that all bluez4 related recipes were removed more than a year ago with:

commit 007498ac72e26e9f7064de74f7fe96e91ae6c969

Author: Martin Jansa <[email protected]>
Date:   Mon Jul 24 19:25:35 2017 +0200

bluez4: remove bluez4-only recipes

Quoted 18 lines · Peter Kjellerstedt
Quoted 2 lines

-----Original Message-----
From: [email protected] <

[email protected]> On Behalf Of [email protected]

Quoted 4 lines

Sent: den 17 oktober 2018 22:57
To: [email protected]
Cc: Yann Dirson <[email protected]>
Subject: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as

advertized on distro without bluez* support

Quoted 9 lines

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing" comment

in

Quoted 5 lines
Quoted 5 lines

the recipe.

---
 .../packagegroups/packagegroup-tools-bluetooth.bb            | 5

++++-

Quoted 6 lines

Review

Quoted 3 lines
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

Quoted 8 lines
Quoted 2 lines

index 0ede5e57b..207c7c1ae 100644
--- a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 1 line

+++ b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Review RDEPENDS_bluez5 = " \ · line 35

Quoted 3 lines
(quoted diff) +0 -0
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
 # Install bluez4 tools or bluez5 tools depending on what is

specified

Quoted 1 line

in the distro.

Quoted 23 lines
Quoted 4 lines

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \

Quoted 4 lines
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -1
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5'

else

Quoted 2 lines

''} \

Quoted 1 line
(quoted diff) +1 -0
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4'

else

Quoted 15 lines

''} \

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \ · line 40

Quoted 1 line
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +1 -0
+"

You can simplify this (and support any value of ${BLUEZ} just in case someone decides to add bluez6):

RDEPENDS_${PN} = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ') else ''}"

Also, the second argument to d.getVar() has defaulted to True for a long time, so no point in specifying it.

Quoted 2 lines

--
2.19.1

//Peter

//Peter

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw
Quoted 24 lines

-----Original Message-----
From: Martin Jansa <[email protected]>
Sent: den 18 oktober 2018 00:14
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; openembedded-devel <openembedded- [email protected]>
Subject: Re: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

Quoted 2 lines · Peter Kjellerstedt
Quoted 2 lines

-----Original Message-----
From: [email protected]

<openembedded-

Quoted 11 lines
Quoted 10 lines

[email protected]> On Behalf Of Martin Jansa
Sent: den 17 oktober 2018 23:34
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; openembedded-devel <openembedded- [email protected]>
Subject: Re: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

I wouldn't say that supporting bluez6 as BLUEZ value before RDEPENDS_bluez6 is defined here is really better.

Quoted 7 lines
Quoted 2 lines

Well, my point was that rewriting it according to my suggestion makes it agnostic to whatever value the ${BLUEZ} variable has.

And my point is that it doesn't make it better, because it will do something useful only with RDEPENDS_bluez4 or RDEPENDS_bluez5, adding dependency on undefined ${RDEPENDS_whatever} doesn't really help, does it?

Well, it actually does. Because if someone was to actually add support for bluez6 (or whatever) they would now get a build error because RDEPENDS_bluez6 is not defined instead of silently missing the dependencies that they need to add.

However, my suggested code does not work due to bitbake messing up the parsing of the line, resulting in an error similar to this if ${BLUEZ} is not defined:

ERROR: Nothing RPROVIDES 'else' (but testrecipe.bb RDEPENDS on or otherwise requires it)

It suggests that somewhere there is some code doing something like d.getVar('RDEPENDS_%s' % pn, False).split() (that exact code does not exist though, I've checked). So to get it to work in practice one would have to do:

FOOBAR = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ') else ''}" RDEPENDS_${PN} = "${FOOBAR}"

If ${RDEPENDS_${BLUEZ}} is defined, then it yields the expected dependencies, and if ${BLUEZ} is defined but ${RDEPENDS_${BLUEZ}} is not, then it yields an error similar to:

ERROR: Nothing RPROVIDES '${@'${RDEPENDS_whatever}'' (but testrecipe.bb RDEPENDS on or otherwise requires it)

Quoted 83 lines
Quoted 1 line
Quoted 1 line

Whole bluez4 support here is a bit useless considering that all

bluez4

Quoted 20 lines
Quoted 20 lines

related recipes were removed more than a year ago with:

commit 007498ac72e26e9f7064de74f7fe96e91ae6c969

Author: Martin Jansa <[email protected]>
Date:   Mon Jul 24 19:25:35 2017 +0200

bluez4: remove bluez4-only recipes

Quoted 8 lines · Peter Kjellerstedt
Quoted 2 lines

-----Original Message-----
From: [email protected] <

[email protected]> On Behalf Of [email protected]

Quoted 4 lines

Sent: den 17 oktober 2018 22:57
To: [email protected]
Cc: Yann Dirson <[email protected]>
Subject: [oe] [PATCH v3] packagegroup-tools-bluetooth: work as

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

advertized on distro without bluez* support

Quoted 6 lines

From: Yann Dirson <[email protected]>

Otherwise the build fails with:

  NOTE: Runtime target '${RDEPENDS_}' is unbuildable,

removing...

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
  Missing or unbuildable dependency chain was: ['${RDEPENDS_}']

This restores some truth in the "Otherwise install nothing"

comment

Quoted 6 lines
Quoted 6 lines

in

Quoted 5 lines
Quoted 5 lines

the recipe.

---
.../packagegroups/packagegroup-tools-bluetooth.bb |

5

Quoted 14 lines
Quoted 14 lines

++++-

Quoted 13 lines

Review

Quoted 3 lines
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

Quoted 2 lines

index 0ede5e57b..207c7c1ae 100644
--- a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 1 line

+++ b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 2 lines
(quoted diff) +0 -0
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
 
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Review RDEPENDS_bluez5 = " \ · line 35

Quoted 1 line
(quoted diff) +0 -0
 # Install bluez4 tools or bluez5 tools depending on what is

specified

Quoted 5 lines

in the distro.

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \

Quoted 4 lines
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -1
 # Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+    ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) ==

'bluez5'

Quoted 3 lines
Quoted 3 lines

else

Quoted 2 lines

''} \

Quoted 1 line
(quoted diff) +1 -0
+    ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) ==

'bluez4'

Quoted 8 lines
Quoted 8 lines

else

Quoted 7 lines

''} \

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb RDEPENDS_bluez5 = " \ · line 40

Quoted 1 line
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +1 -0
+"

You can simplify this (and support any value of ${BLUEZ} just in case someone decides to add bluez6):

RDEPENDS_${PN} = "${@'${RDEPENDS_${BLUEZ}}' if d.getVar('BLUEZ')

else ''}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Also, the second argument to d.getVar() has defaulted to True for a long time, so no point in specifying it.

Quoted 2 lines

--
2.19.1

Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

//Peter

//Peter

--
Martin 'JaMa' Jansa jabber: [email protected]

//Peter