Skip to contentSkip to conversation

package/nodejs/nodejs-src: fix arch check on additional modules

PATCH Applied Giulio Benetti 4 participants 6 messages Nov 5, 2023 – Nov 10, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/nodejs/nodejs-src: fix arch check on additional modules

At the moment check-bin-arch script finds NodeJS modules containing prebuilt binaries for different architectures and build fails. So let check-bin-arch to ignore folder /usr/lib/node_modules by setting NODEJS_SRC_BIN_ARCH_EXCLUDE to it.

---
 package/nodejs/nodejs-src/nodejs-src.mk | 3 +++
 1 file changed, 3 insertions(+)
package/nodejs/nodejs-src/nodejs-src.mk +3 -0
index 6fb550f158..8f934202b0 100644
@@ -244,6 +244,9 @@ define NODEJS_SRC_INSTALL_MODULES
 	# help in diagnosing the problem.
 	$(NPM) install -g $(NODEJS_SRC_MODULES_LIST)
 endef
+
+# Exclude prebuilt binaries with different architectures and OS from check
+NODEJS_SRC_BIN_ARCH_EXCLUDE = /usr/lib/node_modules/
 endif
 
 define NODEJS_SRC_INSTALL_STAGING_CMDS
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 6 lines · Giulio Benetti

At the moment check-bin-arch script finds NodeJS modules containing prebuilt binaries for different architectures and build fails. So let check-bin-arch to ignore folder /usr/lib/node_modules by setting NODEJS_SRC_BIN_ARCH_EXCLUDE to it.

Signature · 2 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
Quoted 9 lines
---
  package/nodejs/nodejs-src/nodejs-src.mk | 3 +++
  1 file changed, 3 insertions(+)
package/nodejs/nodejs-src/nodejs-src.mk +0 -0
index 6fb550f158..8f934202b0 100644

package/nodejs/nodejs-src/nodejs-src.mk define NODEJS_SRC_INSTALL_MODULES · line 252

Quoted 9 lines
package/nodejs/nodejs-src/nodejs-src.mk +3 -0
@@ -244,6 +244,9 @@ define NODEJS_SRC_INSTALL_MODULES
  	# help in diagnosing the problem.
  	$(NPM) install -g $(NODEJS_SRC_MODULES_LIST)
  endef
+
+# Exclude prebuilt binaries with different architectures and OS from check
+NODEJS_SRC_BIN_ARCH_EXCLUDE = /usr/lib/node_modules/
  endif
 
  define NODEJS_SRC_INSTALL_STAGING_CMDS

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Reviewed-by Yegor Yefremov
#2 lore raw
Quoted 10 lines · Giulio Benetti
Quoted 6 lines · Giulio Benetti

At the moment check-bin-arch script finds NodeJS modules containing prebuilt binaries for different architectures and build fails. So let check-bin-arch to ignore folder /usr/lib/node_modules by setting NODEJS_SRC_BIN_ARCH_EXCLUDE to it.

Quoted 21 lines

--
Giulio Benetti
CEO&CTO@Benetti Engineering sas

Quoted 17 lines
---
  package/nodejs/nodejs-src/nodejs-src.mk | 3 +++
  1 file changed, 3 insertions(+)
package/nodejs/nodejs-src/nodejs-src.mk +3 -0
index 6fb550f158..8f934202b0 100644
@@ -244,6 +244,9 @@ define NODEJS_SRC_INSTALL_MODULES
      # help in diagnosing the problem.
      $(NPM) install -g $(NODEJS_SRC_MODULES_LIST)
  endef
+
+# Exclude prebuilt binaries with different architectures and OS from check
+NODEJS_SRC_BIN_ARCH_EXCLUDE = /usr/lib/node_modules/
  endif
 
Quoted 6 lines

package/nodejs/nodejs-src/nodejs-src.mk define NODEJS_SRC_INSTALL_MODULES · line 252

Quoted 1 line
package/nodejs/nodejs-src/nodejs-src.mk +0 -0
  define NODEJS_SRC_INSTALL_STAGING_CMDS

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Tested-by Marcus Hoffmann on v1 1/1
#3 lore raw
In reply to Giulio Benetti
Quoted 6 lines · Giulio Benetti

At the moment check-bin-arch script finds NodeJS modules containing prebuilt binaries for different architectures and build fails. So let check-bin-arch to ignore folder /usr/lib/node_modules by setting NODEJS_SRC_BIN_ARCH_EXCLUDE to it.

Quoted 9 lines
---
  package/nodejs/nodejs-src/nodejs-src.mk | 3 +++
  1 file changed, 3 insertions(+)
package/nodejs/nodejs-src/nodejs-src.mk +0 -0
index 6fb550f158..8f934202b0 100644

package/nodejs/nodejs-src/nodejs-src.mk define NODEJS_SRC_INSTALL_MODULES · line 252

Quoted 9 lines
package/nodejs/nodejs-src/nodejs-src.mk +3 -0
@@ -244,6 +244,9 @@ define NODEJS_SRC_INSTALL_MODULES
      # help in diagnosing the problem.
      $(NPM) install -g $(NODEJS_SRC_MODULES_LIST)
  endef
+
+# Exclude prebuilt binaries with different architectures and OS from check
+NODEJS_SRC_BIN_ARCH_EXCLUDE = /usr/lib/node_modules/
  endif
 
  define NODEJS_SRC_INSTALL_STAGING_CMDS

________________________________

othermo GmbH | Sitz der Gesellschaft: Alzenau | Amtsgericht Aschaffenburg: HRB 14783 | USt-IdNr.: DE319977978 | Geschäftsführung: Dr. Dennis Metz.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Giulio Benetti

Giulio, All,

On 2023-11-05 15:24 +0100, Giulio Benetti spake thusly:

Quoted 4 lines

At the moment check-bin-arch script finds NodeJS modules containing prebuilt binaries for different architectures and build fails. So let check-bin-arch to ignore folder /usr/lib/node_modules by setting NODEJS_SRC_BIN_ARCH_EXCLUDE to it.

I have extended the commit log drastically, to explain the situation is more details, and why we decided to just ignore the issue.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 26 lines
---
 package/nodejs/nodejs-src/nodejs-src.mk | 3 +++
 1 file changed, 3 insertions(+)
package/nodejs/nodejs-src/nodejs-src.mk +3 -0
index 6fb550f158..8f934202b0 100644
@@ -244,6 +244,9 @@ define NODEJS_SRC_INSTALL_MODULES
 	# help in diagnosing the problem.
 	$(NPM) install -g $(NODEJS_SRC_MODULES_LIST)
 endef
+
+# Exclude prebuilt binaries with different architectures and OS from check
+NODEJS_SRC_BIN_ARCH_EXCLUDE = /usr/lib/node_modules/
 endif
 
 define NODEJS_SRC_INSTALL_STAGING_CMDS
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
In reply to Giulio Benetti
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

At the moment check-bin-arch script finds NodeJS modules containing prebuilt binaries for different architectures and build fails. So let check-bin-arch to ignore folder /usr/lib/node_modules by setting NODEJS_SRC_BIN_ARCH_EXCLUDE to it.

---
 package/nodejs/nodejs-src/nodejs-src.mk | 3 +++
 1 file changed, 3 insertions(+)
package/nodejs/nodejs-src/nodejs-src.mk +0 -0
index 6fb550f158..8f934202b0 100644

package/nodejs/nodejs-src/nodejs-src.mk define NODEJS_SRC_INSTALL_MODULES · line 250

Quoted 7 lines
package/nodejs/nodejs-src/nodejs-src.mk +3 -0
@@ -244,6 +244,9 @@ define NODEJS_SRC_INSTALL_MODULES
 	# help in diagnosing the problem.
 	$(NPM) install -g $(NODEJS_SRC_MODULES_LIST)
 endef
+
+# Exclude prebuilt binaries with different architectures and OS from check
+NODEJS_SRC_BIN_ARCH_EXCLUDE = /usr/lib/node_modules/
 endif

Committed to 2023.02.x and 2023.08.x (after moving it to the nodejs package and adjusting the variable name to match), thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot