* [meta-python][PATCH 1/3] python3-matplotlib: Do not use setuptools_scm_git_archive
@ 2022-01-11 20:22 Khem Raj
2022-01-11 20:22 ` [meta-python][PATCH 2/3] python3-pytest-helpers-namespace: Enable network during do_compile Khem Raj
2022-01-11 20:22 ` [meta-oe][PATCH 3/3] influxdb: " Khem Raj
0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2022-01-11 20:22 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj
this gets invoked during compile task which is not disabling network
access, any network activity should be explicitly enabled except during
do_fetch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../matplotlib-disable-download.patch | 20 ++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch b/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch
index e032ceb2c9..42ffeb8970 100644
--- a/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch
+++ b/meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch
@@ -4,9 +4,19 @@ Upstream-Status: Inappropriate [disable feature]
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
---- a/setupext.py.orig 2021-12-14 09:44:33.499041044 -0800
-+++ a/setupext.py 2021-12-14 09:45:00.447041706 -0800
-@@ -64,40 +64,7 @@
+--- a/setup.py
++++ b/setup.py
+@@ -317,7 +317,6 @@ setup( # Finally, pass this all along t
+ "certifi>=2020.06.20",
+ "numpy>=1.17",
+ "setuptools_scm>=4",
+- "setuptools_scm_git_archive",
+ ],
+ install_requires=[
+ "cycler>=0.10",
+--- a/setupext.py
++++ b/setupext.py
+@@ -64,40 +64,7 @@ def get_from_cache_or_download(url, sha)
BytesIO
The file loaded into memory.
"""
@@ -45,6 +55,6 @@ Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-
- return BytesIO(data)
+ raise IOError(f"Automatic downloading is disabled.")
-
-
+
+
def get_and_extract_tarball(urls, sha, dirname):
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-python][PATCH 2/3] python3-pytest-helpers-namespace: Enable network during do_compile
2022-01-11 20:22 [meta-python][PATCH 1/3] python3-matplotlib: Do not use setuptools_scm_git_archive Khem Raj
@ 2022-01-11 20:22 ` Khem Raj
2022-01-11 20:22 ` [meta-oe][PATCH 3/3] influxdb: " Khem Raj
1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2022-01-11 20:22 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj
This should actually be fixed in the package's build system to not
do the network access during compile task. Lets workaround it for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../python/python3-pytest-helpers-namespace_2021.4.29.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python3-pytest-helpers-namespace_2021.4.29.bb b/meta-python/recipes-devtools/python/python3-pytest-helpers-namespace_2021.4.29.bb
index c1f9f96ff4..141f12aef7 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-helpers-namespace_2021.4.29.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-helpers-namespace_2021.4.29.bb
@@ -8,6 +8,8 @@ SRC_URI[sha256sum] = "183524e3db4e2a1fea92e0ca3662a624ba44c9f3568da15679d7535ba6
inherit pypi setuptools3
+do_compile[network] = "1"
+
DEPENDS += "\
${PYTHON_PN}-wheel-native \
${PYTHON_PN}-pip-native \
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-oe][PATCH 3/3] influxdb: Enable network during do_compile
2022-01-11 20:22 [meta-python][PATCH 1/3] python3-matplotlib: Do not use setuptools_scm_git_archive Khem Raj
2022-01-11 20:22 ` [meta-python][PATCH 2/3] python3-pytest-helpers-namespace: Enable network during do_compile Khem Raj
@ 2022-01-11 20:22 ` Khem Raj
2022-01-11 20:49 ` [oe] " Ross Burton
1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2022-01-11 20:22 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj
This should actually be fixed in the package's build system to not
do the network access during compile task but go modules are invoked
during do_compile which needs to access the network.
Lets workaround it for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
index b2899ec381..db453c0849 100644
--- a/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
+++ b/meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb
@@ -27,6 +27,8 @@ SRCREV = "688e697c51fd5353725da078555adbeff0363d01"
inherit go-mod pkgconfig systemd update-rc.d useradd
+do_compile[network] = "1"
+
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system -d /var/lib/influxdb -m -s /bin/nologin influxdb"
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [oe] [meta-oe][PATCH 3/3] influxdb: Enable network during do_compile
2022-01-11 20:22 ` [meta-oe][PATCH 3/3] influxdb: " Khem Raj
@ 2022-01-11 20:49 ` Ross Burton
0 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2022-01-11 20:49 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
On Tue, 11 Jan 2022 at 20:22, Khem Raj <raj.khem@gmail.com> wrote:
> +do_compile[network] = "1"
Can you add a comment making it clear in the recipe why this is here
and that it is a short-term measure?
(ditto for the other patches)
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-11 20:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 20:22 [meta-python][PATCH 1/3] python3-matplotlib: Do not use setuptools_scm_git_archive Khem Raj
2022-01-11 20:22 ` [meta-python][PATCH 2/3] python3-pytest-helpers-namespace: Enable network during do_compile Khem Raj
2022-01-11 20:22 ` [meta-oe][PATCH 3/3] influxdb: " Khem Raj
2022-01-11 20:49 ` [oe] " Ross Burton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.