Reorganisation de tout le systéme de build + debuggage os loader au autre scripts

This commit is contained in:
Marc
2022-02-26 19:23:34 +01:00
parent fc41d4bec0
commit 24c03e8090
25 changed files with 188 additions and 107 deletions
+5 -8
View File
@@ -5,7 +5,7 @@ then echo "Please don't run this as root"
exit
fi
VERSION=17.5.0
export VERSION=17.6.0
if [ ! -f src/node-$VERSION/Makefile ]
then
@@ -14,18 +14,15 @@ cd src
echo "clonning"
curl https://github.com/nodejs/node/archive/refs/tags/v$VERSION.zip -L --output $VERSION.zip || exit 1
unzip $VERSION.zip || exit 1
./patch.sh
cd -
./patch.sh || exit 1
fi
echo "building"
#LD_LIBRARY_PATH=$(pwd)/../rootfs/lib:$(pwd)/../rootfs/lib64:$(pwd)/../rootfs/usr/lib:$(pwd)/../rootfs/usr/lib32:$(pwd)/../rootfs/usr/lib64:/lib:$(pwd)/lib64:$(pwd)/usr/lib:$(pwd)/usr/lib32:$(pwd)/usr/lib64
#privilégier les lib interne a l'os
cd src/node-$VERSION
#https://github.com/nodejs/node/issues/41497
./configure --prefix=/usr --fully-static --enable-static || exit 1
for i in out/tools/v8_gypfiles/gen-regexp-special-case.target.mk out/test_crypto_engine.target.mk; do
sed -i 's/\-static//g' $i || echo "nevermind"; done
./configure --prefix=/usr || exit 1
make -j$(nproc) || exit 1
cd -
sudo src/node-$VERSION/tools/install.py install $(pwd)/../rootfs || exit 1
sudo src/node-$VERSION/tools/install.py install $(pwd)/../rootfs || exit 1
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
patch -R src/node-17.1.0/lib/child_process.js patches/child_process_executor.diff
patch -R src/node-${VERSION}/lib/child_process.js patches/child_process_executor.diff