libdevmapper: enable native support.
PATCH 1/1 libdevmapper: enable native support.
--- meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +3 -1
@@ -28,4 +28,6 @@ do_install_append() { rm -rf ${D}${datadir} } -RRECOMMENDS_${PN} += "lvm2-udevrules" +RRECOMMENDS_${PN}_class-target += "lvm2-udevrules" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.9.3
Quoted 19 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ismo Puustinen
Sent: den 3 maj 2017 13:00
To: [email protected]
Subject: [oe] [PATCH] libdevmapper: enable native support.Signed-off-by Ismo Puustinen <[email protected]>--- meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +0
-0
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb do_install_append() { · line 31
Quoted 5 lines
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +1
-1@@ -28,4 +28,6 @@ do_install_append() { rm -rf ${D}${datadir} } -RRECOMMENDS_${PN} += "lvm2-udevrules" +RRECOMMENDS_${PN}_class-target += "lvm2-udevrules"
That should be either:
RRECOMMENDS_${PN}_append_class-target = " lvm2-udevrules"
or:
RRECOMMENDS_${PN}_class-target = "lvm2-udevrules"
Using FOO_class-target += "..." gives the impression that it adds to FOO, but it does not, it adds to FOO_class-target which then completely replaces FOO for target builds. E.g., with the following two definitions:
FOO = "foo"
FOO_class-target += "bar"
then ${FOO} will be "bar" for target builds and "foo" for all other builds. It will never be "foo bar".
Quoted 3 lines
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +1
-1+BBCLASSEXTEND = "native nativesdk" --2.9.3
//Peter
Quoted 43 lines · Peter Kjellerstedt
Quoted 20 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Ismo Puustinen
Sent: den 3 maj 2017 13:00
To: [email protected]
Subject: [oe] [PATCH] libdevmapper: enable native support.Signed-off-by Ismo Puustinen <[email protected]>---
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +0
-0meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb do_install_append() { · line 31
Quoted 5 lines
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +1
-1@@ -28,4 +28,6 @@ do_install_append() { rm -rf ${D}${datadir} } -RRECOMMENDS_${PN} += "lvm2-udevrules" +RRECOMMENDS_${PN}_class-target += "lvm2-udevrules"That should be either:
RRECOMMENDS_${PN}_append_class-target = " lvm2-udevrules"
or:
RRECOMMENDS_${PN}_class-target = "lvm2-udevrules"
Using FOO_class-target += "..." gives the impression that it adds to FOO, but it does not, it adds to FOO_class-target which then completely
replaces FOO for target builds. E.g., with the following two definitions:FOO = "foo"
FOO_class-target += "bar"
Quoted 8 lines
then ${FOO} will be "bar" for target builds and "foo" for all other builds. It will never be "foo bar".
Quoted 3 lines
meta-oe/recipes-support/lvm2/libdevmapper_2.02.166.bb +1
-1+BBCLASSEXTEND = "native nativesdk" --2.9.3
//Peter
Good point. I'll prepare a second version of the patch. I found it bit surprising that RRECOMMENDS is even a thing for native recipes...
Ismo