Skip to contentSkip to conversation

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

PATCH Superseded [email protected] 4 participants 12 messages Oct 17, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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               | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
index 0ede5e57b..e81516fef 100644
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is specified in the distro.
 # Otherwise install nothing.
 RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
Signature · 1 line
2.19.1
#1 lore raw

What about using some less confusing default BLUEZ value? RDEPENDS_ looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

Quoted 43 lines · On Wed, Oct 17, 2018 at 5:08 PM <[email protected]> wrote:

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               | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
index 0ede5e57b..e81516fef 100644
--- a/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is specified in

the distro.
# Otherwise install nothing.
RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
--
2.19.1

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

#2 lore raw

Yeah, that looks like a better idea.

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

Quoted 54 lines

What about using some less confusing default BLUEZ value? RDEPENDS_ looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

Quoted 43 lines · On Wed, Oct 17, 2018 at 5:08 PM <[email protected]> wrote:

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               | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
index 0ede5e57b..e81516fef 100644
--- a/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is specified in

the distro.
# Otherwise install nothing.
RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
--
2.19.1

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

Signature · 2 lines
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris
#3 lore raw

well, I realized that this won't work with the BLUEZ intentionally set to empty value and setting BLUEZ to no-bluetooth globally also probably won't work for cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline python appending only either bluez4 or bluez5 alternative here?

Quoted 64 lines · Yann Dirson

Yeah, that looks like a better idea.

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

Quoted 47 lines

What about using some less confusing default BLUEZ value? RDEPENDS_ looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

Quoted 37 lines · On Wed, Oct 17, 2018 at 5:08 PM <[email protected]> wrote:

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               | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
index 0ede5e57b..e81516fef 100644
--- a/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is specified

in the distro.
# Otherwise install nothing.
RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
--
2.19.1

Quoted 7 lines
Quoted 6 lines

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

--
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris

#4 lore raw

Well, inline python was what was originally used before 5397ae5.

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

Quoted 73 lines

well, I realized that this won't work with the BLUEZ intentionally set to empty value and setting BLUEZ to no-bluetooth globally also probably won't work for cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline python appending only either bluez4 or bluez5 alternative here?

Quoted 64 lines · Yann Dirson

Yeah, that looks like a better idea.

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

Quoted 47 lines

What about using some less confusing default BLUEZ value? RDEPENDS_ looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

Quoted 37 lines · On Wed, Oct 17, 2018 at 5:08 PM <[email protected]> wrote:

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               | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
index 0ede5e57b..e81516fef 100644
--- a/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is specified

in the distro.
# Otherwise install nothing.
RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
--
2.19.1

Quoted 7 lines
Quoted 6 lines

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

--
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris

Signature · 2 lines
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris
#5 lore raw

Hmm, you're right 5397ae5 would be better with just DISTRO_FEATURES replaced with BLUEZ variable in

RDEPENDS_${PN} = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluez5', '${BLUEZ5_INSTALL}',
"", d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluez4', '${BLUEZ4_INSTALL}',

"", d)} \
"

Then it would work fine for both use cases and empty BLUEZ as well.

Quoted 84 lines · Yann Dirson

Well, inline python was what was originally used before 5397ae5.

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

Quoted 5 lines

well, I realized that this won't work with the BLUEZ intentionally set to empty value and setting BLUEZ to no-bluetooth globally also probably won't work for cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline python appending only either bluez4 or bluez5 alternative here?

Quoted 69 lines
Quoted 65 lines · Yann Dirson

Yeah, that looks like a better idea.

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

Quoted 48 lines

What about using some less confusing default BLUEZ value? RDEPENDS_ looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

Quoted 38 lines · On Wed, Oct 17, 2018 at 5:08 PM <[email protected]> wrote:

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               | 2
++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
index 0ede5e57b..e81516fef 100644
--- a/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is specified

in the distro.
# Otherwise install nothing.
RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
--
2.19.1

Quoted 7 lines
Quoted 6 lines

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

--
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris

--
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris

#6 lore raw

BTW, patchwork made me resend the patch to openembedded-devel, which list would be right for this ?

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

Quoted 100 lines

Hmm, you're right 5397ae5 would be better with just DISTRO_FEATURES replaced with BLUEZ variable in

RDEPENDS_${PN} = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluez5',
'${BLUEZ5_INSTALL}', "", d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluez4',

'${BLUEZ4_INSTALL}', "", d)} \
"

Then it would work fine for both use cases and empty BLUEZ as well.

Quoted 84 lines · Yann Dirson

Well, inline python was what was originally used before 5397ae5.

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

Quoted 5 lines

well, I realized that this won't work with the BLUEZ intentionally set to empty value and setting BLUEZ to no-bluetooth globally also probably won't work for cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline python appending only either bluez4 or bluez5 alternative here?

Quoted 69 lines
Quoted 65 lines · Yann Dirson

Yeah, that looks like a better idea.

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

Quoted 48 lines

What about using some less confusing default BLUEZ value? RDEPENDS_ looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

Quoted 38 lines · On Wed, Oct 17, 2018 at 5:08 PM <[email protected]> wrote:

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               | 2
++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

packagegroup-tools-bluetooth.bb
b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
index 0ede5e57b..e81516fef 100644
--- a/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/
packagegroup-tools-bluetooth.bb

meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb +2 -0
@@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
         '', d)} \
 "
 
+RDEPENDS_ = ""
+
 # Install bluez4 tools or bluez5 tools depending on what is

specified in the distro.
# Otherwise install nothing.
RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
--
2.19.1

Quoted 7 lines
Quoted 6 lines

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

--
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris

--
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris

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

well, I realized that this won't work with the BLUEZ intentionally set to empty value and setting BLUEZ to no-bluetooth globally also probably won't work for cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline python appending only either bluez4 or bluez5 alternative here?

I'm slightly confused. In the suggestion you made below, ??= within the specific package, why would 'no-bluetooth' cause a problem. For all other recipes it will remain blank as expected.

--Mark

Quoted 76 lines

On Wed, Oct 17, 2018 at 5:43 PM Yann Dirson <[email protected] <mailto:[email protected]>> wrote:

    Yeah, that looks like a better idea.

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

        What about using some less confusing default BLUEZ value? RDEPENDS_
        looks wrong.

        BLUEZ ??= "no-bluetooth"
        RDEPENDS_no-bluetooth = ""

        Might be a bit more clear.

        On Wed, Oct 17, 2018 at 5:08 PM <[email protected]
        <mailto:[email protected]>> wrote:

            From: Yann Dirson <[email protected] <mailto:[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.

            Signed-off-by: Yann Dirson <[email protected]
            <mailto:[email protected]>>
            ---
             .../packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>               | 2 ++
             1 file changed, 2 insertions(+)

            diff --git
            a/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            b/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            index 0ede5e57b..e81516fef 100644
            ---
            a/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            +++
            b/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            @@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
                     '', d)} \
             "

            +RDEPENDS_ = ""
            +
             # Install bluez4 tools or bluez5 tools depending on what is
            specified in the distro.
             # Otherwise install nothing.
             RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
            -- 
            2.19.1

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



    -- 
    Yann Dirson <[email protected] <mailto:[email protected]>>
    Blade -- 38 rue du Sentier, 75002 Paris
#8 lore raw

Le mer. 17 oct. 2018 à 17:58, Mark Hatle <[email protected]> a écrit :

Quoted 13 lines · Martin Jansa
Quoted 1 line

well, I realized that this won't work with the BLUEZ intentionally set

to empty

Quoted 1 line

value and setting BLUEZ to no-bluetooth globally also probably won't

work for

Quoted 1 line

cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline

python

Quoted 1 line

appending only either bluez4 or bluez5 alternative here?

I'm slightly confused. In the suggestion you made below, ??= within the specific package, why would 'no-bluetooth' cause a problem. For all other recipes it will remain blank as expected.

I guess the problem is more when it is globally set to "", we would anyway need to handle that
case in addition to our recipe-specific default.

Quoted 96 lines

--Mark

Quoted 9 lines

On Wed, Oct 17, 2018 at 5:43 PM Yann Dirson <[email protected] <mailto:[email protected]>> wrote:

Yeah, that looks like a better idea.

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

What about using some less confusing default BLUEZ value?

RDEPENDS_

Quoted 11 lines

looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

On Wed, Oct 17, 2018 at 5:08 PM <[email protected] <mailto:[email protected]>> wrote:

From: Yann Dirson <[email protected] <mailto:

[email protected]>>

Quoted 4 lines

Otherwise the build fails with:

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

removing...

Quoted 1 line

Missing or unbuildable dependency chain was:

['${RDEPENDS_}']

Quoted 2 lines

This restores some truth in the "Otherwise install nothing"

comment

Quoted 7 lines

in the recipe.

<mailto:[email protected]>>
---
.../packagegroups/packagegroup-tools-bluetooth.bb
<http://packagegroup-tools-bluetooth.bb> | 2

++

Quoted 4 lines
             1 file changed, 2 insertions(+)
            diff --git
            a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 2 lines

<http://packagegroup-tools-bluetooth.bb>
b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 4 lines
            <http://packagegroup-tools-bluetooth.bb>
            index 0ede5e57b..e81516fef 100644
            ---
            a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 3 lines
            <http://packagegroup-tools-bluetooth.bb>
            +++
            b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 11 lines
            <http://packagegroup-tools-bluetooth.bb>
            @@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
                     '', d)} \
             "

            +RDEPENDS_ = ""
            +
             # Install bluez4 tools or bluez5 tools depending on what is
            specified in the distro.
             # Otherwise install nothing.
             RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
Quoted 9 lines
            --
            2.19.1

            --
            _______________________________________________
            Openembedded-core mailing list
            [email protected]
            <mailto:[email protected]>

http://lists.openembedded.org/mailman/listinfo/openembedded-core

Quoted 9 lines


    --
    Yann Dirson <[email protected] <mailto:[email protected]>>
    Blade -- 38 rue du Sentier, 75002 Paris

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

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

well, I realized that this won't work with the BLUEZ intentionally set to empty value and setting BLUEZ to no-bluetooth globally also probably won't work for cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline python appending only either bluez4 or bluez5 alternative here?

I'm slightly confused. In the suggestion you made below, ??= within the specific package, why would 'no-bluetooth' cause a problem. For all other recipes it will remain blank as expected.

Because if you set it to empty, then ??= won't be used and we'll be back to RDEPENDS_.

And if you set BLUEZ to no-bluetooth e.g. in your DISTRO config than it will break other recipes, e.g.:

meta/recipes-connectivity/ofono/ofono.inc:PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, ${BLUEZ}"
meta/recipes-core/packagegroups/packagegroup-base.bb: ${BLUEZ} \
meta/recipes-devtools/python/python3.inc:PACKAGECONFIG[bluetooth] = ",ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no,${BLUEZ}" meta/recipes-devtools/qemu/qemu.inc:PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,${BLUEZ}" meta/recipes-devtools/strace/strace_4.24.bb:PACKAGECONFIG[bluez] = "ac_cv_header_bluetooth_bluetooth_h=yes,ac_cv_header_bluetooth_bluetooth_h=no,${BLUEZ}"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.2.bb:PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,${BLUEZ}"

Quoted 84 lines

--Mark

Quoted 76 lines

On Wed, Oct 17, 2018 at 5:43 PM Yann Dirson <[email protected] <mailto:[email protected]>> wrote:

    Yeah, that looks like a better idea.

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

        What about using some less confusing default BLUEZ value? RDEPENDS_
        looks wrong.

        BLUEZ ??= "no-bluetooth"
        RDEPENDS_no-bluetooth = ""

        Might be a bit more clear.

        On Wed, Oct 17, 2018 at 5:08 PM <[email protected]
        <mailto:[email protected]>> wrote:

            From: Yann Dirson <[email protected] <mailto:[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.

            Signed-off-by: Yann Dirson <[email protected]
            <mailto:[email protected]>>
            ---
             .../packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>               | 2 ++
             1 file changed, 2 insertions(+)

            diff --git
            a/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            b/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            index 0ede5e57b..e81516fef 100644
            ---
            a/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            +++
            b/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
            <http://packagegroup-tools-bluetooth.bb>
            @@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
                     '', d)} \
             "

            +RDEPENDS_ = ""
            +
             # Install bluez4 tools or bluez5 tools depending on what is
            specified in the distro.
             # Otherwise install nothing.
             RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
            -- 
            2.19.1

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



    -- 
    Yann Dirson <[email protected] <mailto:[email protected]>>
    Blade -- 38 rue du Sentier, 75002 Paris
Signature · 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#10 lore raw

Sent v3 to -devel - that does not supercede the original series on patwork, though.

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

Quoted 140 lines · Mark Hatle
Quoted 2 lines · Martin Jansa
Quoted 1 line

well, I realized that this won't work with the BLUEZ intentionally set

to empty

Quoted 1 line
Quoted 1 line

value and setting BLUEZ to no-bluetooth globally also probably won't

work for

Quoted 1 line
Quoted 1 line

cases where it might be used in e.g. RDEPENDS_${PN} :/. Maybe inline

python

Quoted 4 lines
Quoted 1 line

appending only either bluez4 or bluez5 alternative here?

I'm slightly confused. In the suggestion you made below, ??= within the specific package, why would 'no-bluetooth' cause a problem. For all

other

Quoted 1 line

recipes it will remain blank as expected.

Because if you set it to empty, then ??= won't be used and we'll be back to RDEPENDS_.

And if you set BLUEZ to no-bluetooth e.g. in your DISTRO config than it will break other recipes, e.g.:

meta/recipes-connectivity/ofono/ofono.inc:PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, ${BLUEZ}"
meta/recipes-core/packagegroups/packagegroup-base.bb: ${BLUEZ} \
meta/recipes-devtools/python/python3.inc:PACKAGECONFIG[bluetooth] = ",ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no,${BLUEZ}" meta/recipes-devtools/qemu/qemu.inc:PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,${BLUEZ}" meta/recipes-devtools/strace/strace_4.24.bb:PACKAGECONFIG[bluez] = "ac_cv_header_bluetooth_bluetooth_h=yes,ac_cv_header_bluetooth_bluetooth_h=no,${BLUEZ}" meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.2.bb:PACKAGECONFIG[bluez]

         = "--enable-bluez,--disable-bluez,${BLUEZ}"
Quoted 3 lines

--Mark

Quoted 1 line

On Wed, Oct 17, 2018 at 5:43 PM Yann Dirson <

[email protected]

Quoted 8 lines
Quoted 8 lines

<mailto:[email protected]>> wrote:

Yeah, that looks like a better idea.

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

What about using some less confusing default BLUEZ value?

RDEPENDS_

Quoted 11 lines
Quoted 11 lines

looks wrong.

BLUEZ ??= "no-bluetooth"
RDEPENDS_no-bluetooth = ""

Might be a bit more clear.

On Wed, Oct 17, 2018 at 5:08 PM <[email protected] <mailto:[email protected]>> wrote:

From: Yann Dirson <[email protected] <mailto:

[email protected]>>

Quoted 4 lines
Quoted 4 lines

Otherwise the build fails with:

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

removing...

Quoted 1 line
Quoted 1 line

Missing or unbuildable dependency chain was:

['${RDEPENDS_}']

Quoted 2 lines
Quoted 2 lines

This restores some truth in the "Otherwise install

nothing" comment

Quoted 7 lines
Quoted 7 lines

in the recipe.

<mailto:[email protected]>>
---
.../packagegroups/packagegroup-tools-bluetooth.bb
<http://packagegroup-tools-bluetooth.bb> |

2 ++

Quoted 4 lines
Quoted 4 lines
             1 file changed, 2 insertions(+)
            diff --git
            a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 2 lines
Quoted 2 lines

<http://packagegroup-tools-bluetooth.bb>
b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 4 lines
Quoted 4 lines
            <http://packagegroup-tools-bluetooth.bb>
            index 0ede5e57b..e81516fef 100644
            ---
            a/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 3 lines
Quoted 3 lines
            <http://packagegroup-tools-bluetooth.bb>
            +++
            b/meta-oe/recipes-connectivity/packagegroups/

packagegroup-tools-bluetooth.bb

Quoted 8 lines
Quoted 8 lines
            <http://packagegroup-tools-bluetooth.bb>
            @@ -32,6 +32,8 @@ RDEPENDS_bluez5 = " \
                     '', d)} \
             "

            +RDEPENDS_ = ""
            +
             # Install bluez4 tools or bluez5 tools depending on what

is

Quoted 6 lines
Quoted 6 lines
            specified in the distro.
             # Otherwise install nothing.
             RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
            --
            2.19.1
Quoted 6 lines
Quoted 6 lines
            --
            _______________________________________________
            Openembedded-core mailing list
            [email protected]
            <mailto:[email protected]>

http://lists.openembedded.org/mailman/listinfo/openembedded-core

Quoted 10 lines
Quoted 9 lines


    --
    Yann Dirson <[email protected] <mailto:[email protected]>>
    Blade -- 38 rue du Sentier, 75002 Paris
Quoted 5 lines

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

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
Yann Dirson <[email protected]>
Blade -- 38 rue du Sentier, 75002 Paris
#11 lore raw

✗ patchtest: failure for packagegroup-tools-bluetooth: work as advertized on distro without bluez* support

In reply to [email protected]

== Series Details ==

Series: packagegroup-tools-bluetooth: work as advertized on distro without bluez* support
Revision: 1
URL : https://patchwork.openembedded.org/series/14575/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists [test_target_mailing_list]

  Suggested fix    Send the series again to the correct mailing list (ML)
  Suggested ML     [email protected] [http://git.openembedded.org/meta-openembedded/]
  Patch's path:    meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 02646be9d3)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe