giuseppecastaldo / ha-addons

Home Assistant Whatsapp Add-on
Apache License 2.0
49 stars 18 forks source link

Issue with armv7 in #42

Open airmandos opened 9 months ago

airmandos commented 9 months ago

I've got this error trying to install the addon in my raspberry 3B. Looks like is related with dependencies. This is the output from the supervisor log:

23-09-17 16:26:57 ERROR (MainThread) [supervisor.docker.addon] Can't build f4fdf59d/armv7-addon-whatsapp_addon:1.3.3: The command '/bin/ash -o pipefail -c cd /Baileys && npm i -f && cd .. && npm install -f' returned a non-zero code: 1
23-09-17 16:26:57 ERROR (MainThread) [supervisor.docker.addon] Build log: 
Step 1/15 : ARG BUILD_FROM
Step 2/15 : FROM $BUILD_FROM
 ---> cd0be803a9f3
Step 3/15 : RUN apk add --no-cache git npm
 ---> Using cache
 ---> f394c2a9aa42
Step 4/15 : COPY . /
 ---> Using cache
 ---> 9187950677ab
Step 5/15 : RUN chmod a+x /run.sh
 ---> Using cache
 ---> 1828432091e8
Step 6/15 : RUN chmod a+x /finish.sh
 ---> Using cache
 ---> 4b894a211526
Step 7/15 : RUN cd /Baileys && npm i -f && cd .. && npm install -f
 ---> Running in 097bf261dab5
npm
 WARN 
using --force
 Recommended protections disabled.

npm
 WARN skipping integrity check for git dependency ssh://git@github.com/adiwajshing/eslint-config.git 

npm

WARN

deprecated
 querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

npm
 WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.

npm
 WARN deprecated vm2@3.9.17: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.

npm
 WARN deprecated
 uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

npm ERR! code 1
npm ERR! path /Baileys/node_modules/sharp

**npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linuxmusl-armv7.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: Prebuilt libvips 8.12.2 binaries are not yet available for linuxmusl-armv7**

I wondering if there is any workarround to include any precompiled version and don't force to install it

globoudou commented 7 months ago

Another failed install on armv7

It seems sharp-libvips doesn't exist for armv7. In it release assets there is libvips-8.12.2-linux-armv7.tar.br, and not libvips-8.12.2-linuxmusl-armv7.tar.br

Can't it run with a glibc version of libvips for armv7?

npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linuxmusl-armv7.tar.br npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm ERR! sharp: Installation error: Prebuilt libvips 8.12.2 binaries are not yet available for linuxmusl-armv7