yao-pkg / pkg-binaries

Collection of pkg nodejs binaries that are not supported by pkg
MIT License
89 stars 23 forks source link

Nodejs 12.16.1 linux arm32 #4

Closed munelear closed 4 years ago

munelear commented 4 years ago

Question: in the build.sh script the pkg_arch is set to armv6. I had tried setting this to armv7, but I got the output below. Is it intended for armv6 and armv7 files to be interchangeable, just change the architecture suffix in the resulting file?

And thanks. Neat project.

Sending build context to Docker daemon 7.118MB Step 1/7 : FROM arm32v7/node:latest ---> b5c00f3476df Step 2/7 : COPY bin/qemu-arm-static /usr/bin/ ---> Using cache ---> cb7a9ee1c498 Step 3/7 : RUN apt-get update && apt-get install -y --no-install-recommends wget build-essential git ---> Using cache ---> 72d16e0ac275 Step 4/7 : ENV PKG_CACHE_PATH=/fetched ---> Using cache ---> 3749877a39ee Step 5/7 : RUN mkdir -p /fetched && npm install pkg-fetch ---> Using cache ---> 5948a973b9f3 Step 6/7 : RUN /node_modules/.bin/pkg-fetch node12 linux armv7 ---> Running in 0b039897254f qemu: Unsupported syscall: 397

Error! 404 Not Found https://github.com/zeit/pkg-fetch/releases/download/v2.6/uploaded-v2.6-node-v12.16.1-linux-armv7 Asset not found by direct link: {"tag":"v2.6","name":"uploaded-v2.6-node-v12.16.1-linux-armv7"} Not found in GitHub releases: {"tag":"v2.6","name":"uploaded-v2.6-node-v12.16.1-linux-armv7"} Building base binary from source: built-v12.16.1-linux-armv7 Error! Not able to build for 'armv7' here, only for 'armv6' The command '/bin/sh -c /node_modules/.bin/pkg-fetch node12 linux armv7' returned a non-zero code: 2

robertsLando commented 4 years ago

Is it intended for armv6 and armv7 files to be interchangeable, just change the architecture suffix in the resulting file?

Exactly, that error is the reason why it works like this now :)

robertsLando commented 4 years ago

Thanks @munelear ! LGTM