Skip to contentSkip to conversation

asio: add PACKAGECONFIG boost

PATCH Superseded Sean Nyekjaer 2 participants 4 messages Mar 7, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asio: add PACKAGECONFIG boost

---
 meta-oe/recipes-support/asio/asio_1.12.2.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/asio/asio_1.12.2.bb +4 -0
index ee548fd3a..ec705c275 100644
@@ -20,3 +20,7 @@ SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431"
 SRC_URI[sha256sum] = "4e27dcb37456ba707570334b91f4798721111ed67b69915685eac141895779aa"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
+
+PACKAGECONFIG ??= "boost"
+
+PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost"
Signature · 1 line
2.21.0
#1 lore raw
Quoted 10 lines · Sean Nyekjaer
---
 meta-oe/recipes-support/asio/asio_1.12.2.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/asio/asio_1.12.2.bb +0 -0
index ee548fd3a..ec705c275 100644

meta-oe/recipes-support/asio/asio_1.12.2.bb SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431" · line 26

Quoted 7 lines
meta-oe/recipes-support/asio/asio_1.12.2.bb +4 -0
@@ -20,3 +20,7 @@ SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431"
 SRC_URI[sha256sum] = "4e27dcb37456ba707570334b91f4798721111ed67b69915685eac141895779aa"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
+
+PACKAGECONFIG ??= "boost"
+
+PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost"

Adding an RDEPENDS in the PACKAGECONFIG looks wrong.
boost should also be removed from the DEPENDS above when it is disabled.

This would be on top of your patch:
-DEPENDS = "boost openssl"
+DEPENDS = "openssl"
-PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost" +PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost"

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
#2 lore raw
Quoted 28 lines · Adrian Bunk
Quoted 10 lines · Sean Nyekjaer
---
  meta-oe/recipes-support/asio/asio_1.12.2.bb | 4 ++++
  1 file changed, 4 insertions(+)
meta-oe/recipes-support/asio/asio_1.12.2.bb +0 -0
index ee548fd3a..ec705c275 100644

meta-oe/recipes-support/asio/asio_1.12.2.bb SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431" · line 26

Quoted 7 lines
meta-oe/recipes-support/asio/asio_1.12.2.bb +4 -0
@@ -20,3 +20,7 @@ SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431"
  SRC_URI[sha256sum] = "4e27dcb37456ba707570334b91f4798721111ed67b69915685eac141895779aa"
 
  SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
+
+PACKAGECONFIG ??= "boost"
+
+PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost"

Adding an RDEPENDS in the PACKAGECONFIG looks wrong.
boost should also be removed from the DEPENDS above when it is disabled.

This would be on top of your patch:

(quoted diff) +2 -2
-DEPENDS = "boost openssl"
+DEPENDS = "openssl"
-PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost"
+PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost"
Quoted 3 lines

cu
Adrian

Hi Adrian,

I missed the DEPENDS, thanks :-)
But why does the extra RDEPENDS looks wrong?

I'll send a PATCHv2

/Sean

#3 lore raw
Quoted 33 lines · Sean Nyekjaer
Quoted 24 lines · Adrian Bunk
Quoted 10 lines · Sean Nyekjaer
---
  meta-oe/recipes-support/asio/asio_1.12.2.bb | 4 ++++
  1 file changed, 4 insertions(+)
meta-oe/recipes-support/asio/asio_1.12.2.bb +0 -0
index ee548fd3a..ec705c275 100644

meta-oe/recipes-support/asio/asio_1.12.2.bb SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431" · line 25

Quoted 6 lines
meta-oe/recipes-support/asio/asio_1.12.2.bb +4 -0
@@ -20,3 +20,7 @@ SRC_URI[md5sum] = "312e53385e2daad10f08d57f91ad3431"
  SRC_URI[sha256sum] = "4e27dcb37456ba707570334b91f4798721111ed67b69915685eac141895779aa"
  SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
+
+PACKAGECONFIG ??= "boost"
+
+PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost"

Adding an RDEPENDS in the PACKAGECONFIG looks wrong.
boost should also be removed from the DEPENDS above when it is disabled.

This would be on top of your patch:

Review

Quoted 4 lines
(quoted diff) +2 -2
-DEPENDS = "boost openssl"
+DEPENDS = "openssl"
-PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost,boost"
+PACKAGECONFIG[boost] = "--with-boost,--without-boost,boost"

Hi Adrian,

Quoted 2 lines

I missed the DEPENDS, thanks :-)
But why does the extra RDEPENDS looks wrong?

It forces all boost libraries to be installed on the target, no matter whether or not they are used.

Quoted 3 lines

I'll send a PATCHv2

/Sean

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