* [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option
@ 2022-08-22 11:13 Enrico Scholz
2022-08-22 11:13 ` [PATCH 2/2] npm.bbclass: fix architecture mapping Enrico Scholz
2022-08-23 14:28 ` [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Luca Ceresoli
0 siblings, 2 replies; 4+ messages in thread
From: Enrico Scholz @ 2022-08-22 11:13 UTC (permalink / raw)
To: openembedded-core; +Cc: Enrico Scholz
Configuration option is named 'fund', not 'funds'.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
meta/classes-recipe/npm.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-recipe/npm.bbclass b/meta/classes-recipe/npm.bbclass
index deea53c9ec65..8e73400678db 100644
--- a/meta/classes-recipe/npm.bbclass
+++ b/meta/classes-recipe/npm.bbclass
@@ -54,7 +54,7 @@ def npm_global_configs(d):
# Ensure no network access is done
configs.append(("offline", "true"))
configs.append(("proxy", "http://invalid"))
- configs.append(("funds", False))
+ configs.append(("fund", False))
configs.append(("audit", False))
# Configure the cache directory
configs.append(("cache", d.getVar("NPM_CACHE")))
--
2.37.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] npm.bbclass: fix architecture mapping
2022-08-22 11:13 [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Enrico Scholz
@ 2022-08-22 11:13 ` Enrico Scholz
2022-08-23 14:28 ` [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Luca Ceresoli
1 sibling, 0 replies; 4+ messages in thread
From: Enrico Scholz @ 2022-08-22 11:13 UTC (permalink / raw)
To: openembedded-core; +Cc: Enrico Scholz
Use the same code as the 'nodejs_16.4.bb recipe' for mapping the OE
arch to the NPM arch.
A noticeable change (and fix for exiting problems) is the move from
'arm' to 'arm64' for 'aarch64'.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
meta/classes-recipe/npm.bbclass | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/meta/classes-recipe/npm.bbclass b/meta/classes-recipe/npm.bbclass
index 8e73400678db..20350cea255f 100644
--- a/meta/classes-recipe/npm.bbclass
+++ b/meta/classes-recipe/npm.bbclass
@@ -28,20 +28,18 @@ NPM_INSTALL_DEV ?= "0"
NPM_NODEDIR ?= "${RECIPE_SYSROOT_NATIVE}${prefix_native}"
-def npm_target_arch_map(target_arch):
- """Maps arch names to npm arch names"""
+## must match mapping in nodejs.bb (openembedded-meta)
+def map_nodejs_arch(a, d):
import re
- if re.match("p(pc|owerpc)(|64)", target_arch):
- return "ppc"
- elif re.match("i.86$", target_arch):
- return "ia32"
- elif re.match("x86_64$", target_arch):
- return "x64"
- elif re.match("arm64$", target_arch):
- return "arm"
- return target_arch
-
-NPM_ARCH ?= "${@npm_target_arch_map(d.getVar("TARGET_ARCH"))}"
+
+ if re.match('i.86$', a): return 'ia32'
+ elif re.match('x86_64$', a): return 'x64'
+ elif re.match('aarch64$', a): return 'arm64'
+ elif re.match('(powerpc64|powerpc64le|ppc64le)$', a): return 'ppc64'
+ elif re.match('powerpc$', a): return 'ppc'
+ return a
+
+NPM_ARCH ?= "${@map_nodejs_arch(d.getVar("TARGET_ARCH"), d)}"
NPM_PACKAGE = "${WORKDIR}/npm-package"
NPM_CACHE = "${WORKDIR}/npm-cache"
--
2.37.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option
2022-08-22 11:13 [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Enrico Scholz
2022-08-22 11:13 ` [PATCH 2/2] npm.bbclass: fix architecture mapping Enrico Scholz
@ 2022-08-23 14:28 ` Luca Ceresoli
2022-08-23 15:03 ` DKIM compatible maillist setup (was: [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option) Enrico Scholz
1 sibling, 1 reply; 4+ messages in thread
From: Luca Ceresoli @ 2022-08-23 14:28 UTC (permalink / raw)
To: Enrico Scholz via lists.openembedded.org; +Cc: enrico.scholz, openembedded-core
Hi Enrico,
On Mon, 22 Aug 2022 13:13:36 +0200
"Enrico Scholz via lists.openembedded.org"
<enrico.scholz=sigma-chemnitz.de@lists.openembedded.org> wrote:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
As you can see above, your sender address is getting mangled. This is
not your fault, it is done by DMARC for anti-phishing, but it makes
applying your patches annoying.
Can you please try to work around that by setting the sendemail.from
parameter in your git config?
You can read the details in this discussion:
https://lists.openembedded.org/g/openembedded-core/message/166515?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Crootfs.py%3A+find+.ko.zst+kernel+modules%2C20%2C2%2C0%2C91453338
Thank you very much!
However you don't need to resend this patch series just for this.
I fixed it manually while applying to my testing branch.
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* DKIM compatible maillist setup (was: [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option)
2022-08-23 14:28 ` [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Luca Ceresoli
@ 2022-08-23 15:03 ` Enrico Scholz
0 siblings, 0 replies; 4+ messages in thread
From: Enrico Scholz @ 2022-08-23 15:03 UTC (permalink / raw)
To: Luca Ceresoli; +Cc: openembedded-core
Luca Ceresoli <luca.ceresoli@bootlin.com> writes:
> As you can see above, your sender address is getting mangled. This is
> not your fault, it is done by DMARC for anti-phishing, but it makes
> applying your patches annoying.
>
> Can you please try to work around that by setting the sendemail.from
> parameter in your git config?
Thanks for pointing me to this git option.
Would it be possible to configure the maillist so that it does not
mangle the message (no "unsubscribe" footer or "[OE-core]" subject
prefix)? Or is this not supported with groups.io?
Enrico
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-23 15:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-22 11:13 [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Enrico Scholz
2022-08-22 11:13 ` [PATCH 2/2] npm.bbclass: fix architecture mapping Enrico Scholz
2022-08-23 14:28 ` [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option Luca Ceresoli
2022-08-23 15:03 ` DKIM compatible maillist setup (was: [OE-core] [PATCH 1/2] npm.bbclass: fix typo in 'fund' config option) Enrico Scholz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox