Skip to contentSkip to conversation

python-pyflame: Limit support to just glibc based systems

PATCH In review Khem Raj 2 participants 4 messages Aug 24, 2018 – Aug 28, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 python-pyflame: Limit support to just glibc based systems

Fixes:

| checking build system type... x86_64-pc-linux-gnu
| checking host system type... x86_64-bec-linux-musl
| configure: error: Pyflame can only be built for Linux hosts
Cc Andrew Jeffery <[email protected]>
---
 meta-python/recipes-devtools/python/python-pyflame.inc | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python-pyflame.inc +1 -0
index 3b84a7e8f8..2ee79f7b8a 100644
@@ -10,3 +10,4 @@ S = "${WORKDIR}/git"
 
 inherit pkgconfig autotools
 
+COMPATIBLE_HOST_libc-musl_class-target = "null"
Signature · 1 line
2.18.0
author
#1 lore raw

PATCH 2/2 python-pyflame: Use SHA instead of tag in SRC_URI

tags are floating and bitbake will ping the remote host and this will fail in BB_NO_NETWORK cases

Cc Andrew Jeffery <[email protected]>
---
 meta-python/recipes-devtools/python/python-pyflame.inc      | 2 +-
 meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-pyflame.inc +1 -1
index 2ee79f7b8a..71fe769765 100644
@@ -5,7 +5,7 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
 DEPENDS = "python"
 
-SRC_URI = "git://github.com/uber/pyflame.git;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/uber/pyflame.git;protocol=https"
 S = "${WORKDIR}/git"
 
 inherit pkgconfig autotools
meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb +2 -0
index abf3ed7fee..8dedb89286 100644
@@ -1,4 +1,6 @@
 require python-pyflame.inc
 
+# v1.6.6
+SRCREV = "8a9d8c2acc3b3bb027475b738134f1e6fff14e6c"
 SRC_URI += "file://0001-ptrace-Abstract-over-user_regs_struct-name-which-dif.patch"
 SRC_URI += "file://0001-symbol-Account-for-prelinked-shared-objects.patch"
Signature · 1 line
2.18.0
Acked-by on v1 2/2
#2 lore raw

Re: [meta-python][PATCH 2/2] python-pyflame: Use SHA instead of tag in SRC_URI

Quoted 5 lines · Khem Raj

tags are floating and bitbake will ping the remote host and this will fail in BB_NO_NETWORK cases

Cc Andrew Jeffery <[email protected]>

Thanks Khem!

Quoted 37 lines
---
 meta-python/recipes-devtools/python/python-pyflame.inc      | 2 +-
 meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
(quoted diff) renamed from meta-python/recipes-devtools/python/python-pyflame.inc +0 -0

meta-python/recipes-devtools/python/python-pyflame.inc index 2ee79f7b8a..71fe769765 100644

meta-python/recipes-devtools/python/python-pyflame.inc +0 -0
@@ -5,7 +5,7 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://${S}/

LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
DEPENDS = "python"

meta-python/recipes-devtools/python/python-pyflame.inc +1 -1
-SRC_URI = "git://github.com/uber/pyflame.git;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/uber/pyflame.git;protocol=https"
 S = "${WORKDIR}/git"
 
 inherit pkgconfig autotools
meta-python/recipes-devtools/python/python-pyflame_1.6.6.bb +2 -0
index abf3ed7fee..8dedb89286 100644
@@ -1,4 +1,6 @@
 require python-pyflame.inc
 
+# v1.6.6
+SRCREV = "8a9d8c2acc3b3bb027475b738134f1e6fff14e6c"
 SRC_URI += 

"file://0001-ptrace-Abstract-over-user_regs_struct-name-which-dif.patch"
SRC_URI +=
"file://0001-symbol-Account-for-prelinked-shared-objects.patch"

Signature · 1 line
2.18.0
Acked-by on v1 1/2
#3 lore raw
In reply to Khem Raj
Quoted 7 lines · Khem Raj

Fixes:

| checking build system type... x86_64-pc-linux-gnu
| checking host system type... x86_64-bec-linux-musl
| configure: error: Pyflame can only be built for Linux hosts
Cc Andrew Jeffery <[email protected]>

Thanks Khem!

Quoted 17 lines
---
 meta-python/recipes-devtools/python/python-pyflame.inc | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) renamed from meta-python/recipes-devtools/python/python-pyflame.inc +0 -0

meta-python/recipes-devtools/python/python-pyflame.inc index 3b84a7e8f8..2ee79f7b8a 100644

meta-python/recipes-devtools/python/python-pyflame.inc +1 -0
@@ -10,3 +10,4 @@ S = "${WORKDIR}/git"
 
 inherit pkgconfig autotools
 
+COMPATIBLE_HOST_libc-musl_class-target = "null"
Signature · 1 line
2.18.0