From 3715a646d9d750c21040081e10987b091092c616 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 13 Aug 2014 22:07:17 +0200 Subject: [PATCH 01/23] Testing arm build --- .travis.yml | 3 +- scripts/build_on_arm.sh | 65 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 2 deletions(-) create mode 100755 scripts/build_on_arm.sh diff --git a/.travis.yml b/.travis.yml index 303c1c34d..dea06df7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,5 +50,4 @@ before_script: - export COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n') script: -- if [[ "${NODE_VERSION}" ]]; then ./scripts/build_against_node.sh; fi; -- if [[ "${NODE_WEBKIT}" ]]; then ./scripts/build_against_node_webkit.sh; fi; +- if [[ "${NODE_VERSION}" ]]; then ./scripts/build_on_arm.sh; fi; diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh new file mode 100755 index 000000000..70d04a060 --- /dev/null +++ b/scripts/build_on_arm.sh @@ -0,0 +1,65 @@ +#!/bin/bash +# Based on a test script from avsm/ocaml repo https://github.com/avsm/ocaml + +CHROOT_DIR=/tmp/arm-chroot +MIRROR=http://archive.raspbian.org/raspbian +VERSION=wheezy +CHROOT_ARCH=armhf + +# Debian package dependencies for the host +HOST_DEPENDENCIES="debootstrap qemu-user-static binfmt-support sbuild" + +# Debian package dependencies for the chrooted environment +GUEST_DEPENDENCIES="build-essential git m4 sudo python" + +# Command used to run the tests +TEST_COMMAND="make test" + +function setup_arm_chroot { + # Host dependencies + sudo apt-get install -qq -y ${HOST_DEPENDENCIES} + + # Create chrooted environment + sudo mkdir ${CHROOT_DIR} + sudo debootstrap --foreign --no-check-gpg --include=fakeroot,build-essential \ + --arch=${CHROOT_ARCH} ${VERSION} ${CHROOT_DIR} ${MIRROR} + sudo cp /usr/bin/qemu-arm-static ${CHROOT_DIR}/usr/bin/ + sudo chroot ${CHROOT_DIR} ./debootstrap/debootstrap --second-stage + sudo sbuild-createchroot --arch=${CHROOT_ARCH} --foreign --setup-only \ + ${VERSION} ${CHROOT_DIR} ${MIRROR} + + # Create file with environment variables which will be used inside chrooted + # environment + #echo "export ARCH=${ARCH}" > envvars.sh + echo "export TRAVIS_BUILD_DIR=${TRAVIS_BUILD_DIR}" >> envvars.sh + chmod a+x envvars.sh + + # Install dependencies inside chroot + sudo chroot ${CHROOT_DIR} apt-get update + sudo chroot ${CHROOT_DIR} apt-get --allow-unauthenticated install \ + -qq -y ${GUEST_DEPENDENCIES} + + # Create build dir and copy travis build files to our chroot environment + sudo mkdir -p ${CHROOT_DIR}/${TRAVIS_BUILD_DIR} + sudo rsync -av ${TRAVIS_BUILD_DIR}/ ${CHROOT_DIR}/${TRAVIS_BUILD_DIR}/ + + # Indicate chroot environment has been set up + sudo touch ${CHROOT_DIR}/.chroot_is_done + + # Call ourselves again which will cause builds to run + sudo chroot ${CHROOT_DIR} bash -c "cd ${TRAVIS_BUILD_DIR} && ./scripts/build_on_arm.sh" +} + +if [ -e "/.chroot_is_done" ]; then + # We are inside ARM chroot + echo "Running inside chrooted environment" + + . ./envvars.sh +else + echo "Setting up chrooted ARM environment" + setup_arm_chroot +fi + +echo "Running tests" +echo "Environment: $(uname -a)" +./scripts/build_against_node.sh \ No newline at end of file From dfcab51b69995a922e0748d265d3414e3d88aa77 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 13 Aug 2014 22:10:43 +0200 Subject: [PATCH 02/23] travis test --- scripts/build_on_arm.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 70d04a060..3b9f68c8d 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -53,7 +53,6 @@ function setup_arm_chroot { if [ -e "/.chroot_is_done" ]; then # We are inside ARM chroot echo "Running inside chrooted environment" - . ./envvars.sh else echo "Setting up chrooted ARM environment" From 9b86af6bf9d49934874349e519a3a474d4b3635f Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 13 Aug 2014 22:28:41 +0200 Subject: [PATCH 03/23] additional test --- .travis.yml | 12 ++++++------ scripts/build_on_arm.sh | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index dea06df7e..8f7c4912d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,13 +13,13 @@ branches: env: matrix: - - NODE_VERSION="0.8" +# - NODE_VERSION="0.8" - NODE_VERSION="0.10" - - NODE_VERSION="0.11" - - NODE_WEBKIT="0.8.6" TARGET_ARCH="ia32" - - NODE_WEBKIT="0.8.6" TARGET_ARCH="x64" - - NODE_WEBKIT="0.10.1" TARGET_ARCH="ia32" - - NODE_WEBKIT="0.10.1" TARGET_ARCH="x64" +# - NODE_VERSION="0.11" +# - NODE_WEBKIT="0.8.6" TARGET_ARCH="ia32" +# - NODE_WEBKIT="0.8.6" TARGET_ARCH="x64" +# - NODE_WEBKIT="0.10.1" TARGET_ARCH="ia32" +# - NODE_WEBKIT="0.10.1" TARGET_ARCH="x64" global: - secure: PifMOSnn+mWR1RUptXse+fLvWiTrzg0R/mazO7RWhXHWBKv0uAJ/qV3dI0GIRBLtjG10Iy+tT5RNh1TIbBzB9Y67wMcGvylUPG1+3EOKoBMEPnOD9AgCEQw4SOXfGPx0cq2N6ueSKieCgu1yKN9Wq7XCbE+zTk/DiRNIdLirVoo= - secure: cc4esJY1vPXL31IeumAJoKWDDO2BTGFiltwfO1jbTbiV7QT911QUjTUasxXIVpOaHNCpxSTyevPwwTWfzt2EtF92Lli+qhQ2bbzMiDSBZstSrHdAe62Ai2M1oYYUwk/0cABB/2nO9uRyYwITCxpTSNzZBrYhn3C29WqBhPeVDmM= diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 3b9f68c8d..bba290865 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -17,7 +17,8 @@ TEST_COMMAND="make test" function setup_arm_chroot { # Host dependencies - sudo apt-get install -qq -y ${HOST_DEPENDENCIES} + sudo apt-get update + sudo apt-get install -y ${HOST_DEPENDENCIES} # Create chrooted environment sudo mkdir ${CHROOT_DIR} From 17a20cc1b31ff62e2cb3344610144254981a988c Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 13 Aug 2014 22:54:13 +0200 Subject: [PATCH 04/23] just build for arm inside of arm --- scripts/build_on_arm.sh | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index bba290865..6889797a6 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -31,7 +31,7 @@ function setup_arm_chroot { # Create file with environment variables which will be used inside chrooted # environment - #echo "export ARCH=${ARCH}" > envvars.sh + echo "export NODE_VERSION=${NODE_VERSION}" > envvars.sh echo "export TRAVIS_BUILD_DIR=${TRAVIS_BUILD_DIR}" >> envvars.sh chmod a+x envvars.sh @@ -55,11 +55,29 @@ if [ -e "/.chroot_is_done" ]; then # We are inside ARM chroot echo "Running inside chrooted environment" . ./envvars.sh + echo "Running build" + echo "Environment: $(uname -a)" + set -u -e + if [[ ! -d ../.nvm ]]; then + git clone https://github.com/creationix/nvm.git ../.nvm + fi + set +u + source ../.nvm/nvm.sh + nvm install $NODE_VERSION + nvm use $NODE_VERSION + set -u + node --version + npm --version + # work around old npm problem with ^ + npm install npm -g + npm --version + + # test installing from source + npm install --build-from-source + node-pre-gyp package testpackage + npm test + else echo "Setting up chrooted ARM environment" setup_arm_chroot -fi - -echo "Running tests" -echo "Environment: $(uname -a)" -./scripts/build_against_node.sh \ No newline at end of file +fi \ No newline at end of file From e8ca1154f0dd9e75470b359dd1c3f78bc181defd Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 13 Aug 2014 23:23:05 +0200 Subject: [PATCH 05/23] Install node via download of binaries --- scripts/build_on_arm.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 6889797a6..e0df5cccc 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -57,15 +57,10 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - set -u -e - if [[ ! -d ../.nvm ]]; then - git clone https://github.com/creationix/nvm.git ../.nvm - fi - set +u - source ../.nvm/nvm.sh - nvm install $NODE_VERSION - nvm use $NODE_VERSION - set -u + cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz + cd /usr/local && sudo tar xzvf /tmp/node-v0.10.21-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 + cd ${TRAVIS_BUILD_DIR} + node --version npm --version # work around old npm problem with ^ From adfc40ee82a629433c6c85b3e311636aa638fd28 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 13 Aug 2014 23:47:12 +0200 Subject: [PATCH 06/23] fix --- scripts/build_on_arm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index e0df5cccc..1525a91e1 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -18,7 +18,7 @@ TEST_COMMAND="make test" function setup_arm_chroot { # Host dependencies sudo apt-get update - sudo apt-get install -y ${HOST_DEPENDENCIES} + sudo apt-get install -qq -y ${HOST_DEPENDENCIES} # Create chrooted environment sudo mkdir ${CHROOT_DIR} @@ -58,7 +58,7 @@ if [ -e "/.chroot_is_done" ]; then echo "Running build" echo "Environment: $(uname -a)" cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz - cd /usr/local && sudo tar xzvf /tmp/node-v0.10.21-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 + cd /usr/local && tar xzvf /tmp/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} node --version From 017e588397f145122facfa98b550f5c0d6e99578 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 14 Aug 2014 08:08:32 +0200 Subject: [PATCH 07/23] try to setup qemu network --- scripts/build_on_arm.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 1525a91e1..b47a81f61 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -60,6 +60,17 @@ if [ -e "/.chroot_is_done" ]; then cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz cd /usr/local && tar xzvf /tmp/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} + ifconfig + cat /etc/network/interface + cat >/etc/network/interface < Date: Thu, 14 Aug 2014 20:06:00 +0200 Subject: [PATCH 08/23] attemp to fix npm network error --- scripts/build_on_arm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index b47a81f61..91ae3ab2b 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -47,6 +47,9 @@ function setup_arm_chroot { # Indicate chroot environment has been set up sudo touch ${CHROOT_DIR}/.chroot_is_done + # mount /proc + sudo mount --bind /proc ${CHROOT_DIR}/proc + # Call ourselves again which will cause builds to run sudo chroot ${CHROOT_DIR} bash -c "cd ${TRAVIS_BUILD_DIR} && ./scripts/build_on_arm.sh" } From 29dd5b88167320327bf0ca6d50d3d505be0a8f8f Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 14 Aug 2014 20:42:06 +0200 Subject: [PATCH 09/23] retry networks --- scripts/build_on_arm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 91ae3ab2b..56a80e2e5 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -64,15 +64,15 @@ if [ -e "/.chroot_is_done" ]; then cd /usr/local && tar xzvf /tmp/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} ifconfig - cat /etc/network/interface - cat >/etc/network/interface </etc/network/interfaces < Date: Thu, 14 Aug 2014 21:09:22 +0200 Subject: [PATCH 10/23] try to disable ipv6 --- scripts/build_on_arm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 56a80e2e5..131b25aad 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -16,6 +16,9 @@ GUEST_DEPENDENCIES="build-essential git m4 sudo python" TEST_COMMAND="make test" function setup_arm_chroot { + #disable ipv6 + echo 1 | sudo tee --append /proc/sys/net/ipv6/conf/all/disable_ipv6 + # Host dependencies sudo apt-get update sudo apt-get install -qq -y ${HOST_DEPENDENCIES} From 4fd87fe564a0719fb1a68811a03c40fa4a30d329 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 14 Aug 2014 21:33:13 +0200 Subject: [PATCH 11/23] try static dns --- scripts/build_on_arm.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 131b25aad..acff041eb 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -16,9 +16,6 @@ GUEST_DEPENDENCIES="build-essential git m4 sudo python" TEST_COMMAND="make test" function setup_arm_chroot { - #disable ipv6 - echo 1 | sudo tee --append /proc/sys/net/ipv6/conf/all/disable_ipv6 - # Host dependencies sudo apt-get update sudo apt-get install -qq -y ${HOST_DEPENDENCIES} @@ -73,6 +70,10 @@ auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp +EOL + cat /etc/resolv.conf + cat >/etc/resolv.conf < Date: Thu, 14 Aug 2014 21:53:42 +0200 Subject: [PATCH 12/23] enable ipv6 in qemu --- scripts/build_on_arm.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index acff041eb..52001a0aa 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,19 +63,7 @@ if [ -e "/.chroot_is_done" ]; then cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz cd /usr/local && tar xzvf /tmp/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} - ifconfig - cat /etc/network/interfaces - cat >/etc/network/interfaces </etc/resolv.conf < Date: Thu, 14 Aug 2014 22:35:18 +0200 Subject: [PATCH 13/23] another try --- scripts/build_on_arm.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 52001a0aa..114eff34c 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,7 +63,10 @@ if [ -e "/.chroot_is_done" ]; then cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz cd /usr/local && tar xzvf /tmp/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} - sudo modprobe ipv6 + apt-get update -y + apt-get upgrade -y + rpi-update + smodprobe ipv6 service networking restart ifconfig From bd221e89b7599150a83e7af7fa61dec6e6ccc9c5 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 14 Aug 2014 23:00:10 +0200 Subject: [PATCH 14/23] hi travis --- scripts/build_on_arm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 114eff34c..4c1efe0a7 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -65,8 +65,8 @@ if [ -e "/.chroot_is_done" ]; then cd ${TRAVIS_BUILD_DIR} apt-get update -y apt-get upgrade -y - rpi-update - smodprobe ipv6 + wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update && rpi-update + modprobe ipv6 service networking restart ifconfig From fed52fe10ad5bad7f029dbdd9696a37fff3ec20d Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 14 Aug 2014 23:32:15 +0200 Subject: [PATCH 15/23] curl --- scripts/build_on_arm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 4c1efe0a7..e8029c99d 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -10,7 +10,7 @@ CHROOT_ARCH=armhf HOST_DEPENDENCIES="debootstrap qemu-user-static binfmt-support sbuild" # Debian package dependencies for the chrooted environment -GUEST_DEPENDENCIES="build-essential git m4 sudo python" +GUEST_DEPENDENCIES="build-essential git m4 sudo python curl" # Command used to run the tests TEST_COMMAND="make test" @@ -65,7 +65,8 @@ if [ -e "/.chroot_is_done" ]; then cd ${TRAVIS_BUILD_DIR} apt-get update -y apt-get upgrade -y - wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update && rpi-update + wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update + UPDATE_SELF=0 rpi-update modprobe ipv6 service networking restart ifconfig From 0c7720b2f1694ae6524ee1e3fb9362c5f60f08ab Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Sat, 16 Aug 2014 20:20:35 +0200 Subject: [PATCH 16/23] build nodejs in qemu --- scripts/build_on_arm.sh | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index e8029c99d..36a773420 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -47,8 +47,11 @@ function setup_arm_chroot { # Indicate chroot environment has been set up sudo touch ${CHROOT_DIR}/.chroot_is_done - # mount /proc + # mount /proc... sudo mount --bind /proc ${CHROOT_DIR}/proc + sudo mount --bind /sys ${CHROOT_DIR}/sys + sudo mount --bind /dev ${CHROOT_DIR}/dev + sudo mount --bind /dev/pts ${CHROOT_DIR}/dev/pts # Call ourselves again which will cause builds to run sudo chroot ${CHROOT_DIR} bash -c "cd ${TRAVIS_BUILD_DIR} && ./scripts/build_on_arm.sh" @@ -60,23 +63,13 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz - cd /usr/local && tar xzvf /tmp/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 - cd ${TRAVIS_BUILD_DIR} - apt-get update -y - apt-get upgrade -y - wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update - UPDATE_SELF=0 rpi-update - modprobe ipv6 - service networking restart - ifconfig - + wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz + tar xfvz node-v0.10.26.tar.gz + cd node-v0.10.26/ + ./configure + make install node --version npm --version - # work around old npm problem with ^ - npm install npm -g - npm --version - # test installing from source npm install --build-from-source node-pre-gyp package testpackage From cea0eeac238514d2142bd9c07f58b488becbaf9c Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 18 Aug 2014 12:45:45 +0200 Subject: [PATCH 17/23] Revert "try to use node x64 binary" This reverts commit 2eaef6fab23e369f769286b728efa67ee7213520. Conflicts: scripts/build_on_arm.sh --- scripts/build_on_arm.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 36a773420..13c8f7ced 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,11 +63,9 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz - tar xfvz node-v0.10.26.tar.gz - cd node-v0.10.26/ - ./configure - make install + cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz + cd /usr/local && sudo tar xzvf /tmp/node-v0.10.21-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 + cd ${TRAVIS_BUILD_DIR} node --version npm --version # test installing from source From 9246ecf4736a973efb6fc0cfbad55a87659ac0a3 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 18 Aug 2014 12:46:27 +0200 Subject: [PATCH 18/23] use x64 node binary --- scripts/build_on_arm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 13c8f7ced..11e7e8bbd 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,8 +63,8 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - cd /tmp && wget https://gist.github.com/raw/3245130/v0.10.24/node-v0.10.24-linux-arm-armv6j-vfp-hard.tar.gz - cd /usr/local && sudo tar xzvf /tmp/node-v0.10.21-linux-arm-armv6j-vfp-hard.tar.gz --strip=1 + cd /tmp && wget http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz + cd /usr/local && sudo tar xzvf /tmp/node-v0.10.30-linux-x64.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} node --version npm --version From 1a23ba163e0caefae799f876298a1e34c30d42b7 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 18 Aug 2014 13:15:44 +0200 Subject: [PATCH 19/23] debug --- scripts/build_on_arm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 11e7e8bbd..c58de7baf 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -66,6 +66,8 @@ if [ -e "/.chroot_is_done" ]; then cd /tmp && wget http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz cd /usr/local && sudo tar xzvf /tmp/node-v0.10.30-linux-x64.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} + ls -l /usr/local + ls -l /usr/local/bin node --version npm --version # test installing from source From 5c4c390bb208c6bbc52f3301d95eca9993fc5cfe Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 18 Aug 2014 13:34:37 +0200 Subject: [PATCH 20/23] use arm binary from nodejs.org --- scripts/build_on_arm.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index c58de7baf..cec31e4f4 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,11 +63,9 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - cd /tmp && wget http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz - cd /usr/local && sudo tar xzvf /tmp/node-v0.10.30-linux-x64.tar.gz --strip=1 + cd /tmp && wget http://nodejs.org/dist/v0.10.16-isaacs-manual/node-v0.10.16-linux-arm-pi.tar.gz + cd /usr/local && sudo tar xzvf /tmp/node-v0.10.16-linux-arm-pi.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} - ls -l /usr/local - ls -l /usr/local/bin node --version npm --version # test installing from source From a25f4dd86de8b67df3a29570cde201ecaf525890 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 18 Aug 2014 20:34:38 +0200 Subject: [PATCH 21/23] try updated node version --- scripts/build_on_arm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index cec31e4f4..f8c3bea56 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,8 +63,8 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - cd /tmp && wget http://nodejs.org/dist/v0.10.16-isaacs-manual/node-v0.10.16-linux-arm-pi.tar.gz - cd /usr/local && sudo tar xzvf /tmp/node-v0.10.16-linux-arm-pi.tar.gz --strip=1 + cd /tmp && wget https://github.com/sweetpi/node-sqlite3-arm/releases/download/node/node-v0.10.30-linux-arm-pi.tar.gz + cd /usr/local && sudo tar xzvf /tmp/node-v0.10.30-linux-arm-pi.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} node --version npm --version From 2630d9ebcc39344e315261e36a093480ce124e9d Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 18 Aug 2014 21:27:39 +0200 Subject: [PATCH 22/23] retry --- scripts/build_on_arm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index f8c3bea56..6555f6d36 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -66,6 +66,7 @@ if [ -e "/.chroot_is_done" ]; then cd /tmp && wget https://github.com/sweetpi/node-sqlite3-arm/releases/download/node/node-v0.10.30-linux-arm-pi.tar.gz cd /usr/local && sudo tar xzvf /tmp/node-v0.10.30-linux-arm-pi.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} + ls -al /usr/local/bin node --version npm --version # test installing from source From 35b73e33dfc4bd8a36f648fecad680600b627f9c Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 20 Aug 2014 22:34:39 +0200 Subject: [PATCH 23/23] new test --- scripts/build_on_arm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_on_arm.sh b/scripts/build_on_arm.sh index 6555f6d36..e6e607cc7 100755 --- a/scripts/build_on_arm.sh +++ b/scripts/build_on_arm.sh @@ -63,8 +63,8 @@ if [ -e "/.chroot_is_done" ]; then . ./envvars.sh echo "Running build" echo "Environment: $(uname -a)" - cd /tmp && wget https://github.com/sweetpi/node-sqlite3-arm/releases/download/node/node-v0.10.30-linux-arm-pi.tar.gz - cd /usr/local && sudo tar xzvf /tmp/node-v0.10.30-linux-arm-pi.tar.gz --strip=1 + cd / && wget https://github.com/sweetpi/node-sqlite3-arm/releases/download/node/node-v0.10.30-linux-arm-pi.tar.gz + tar xzvf /tmp/node-v0.10.30-linux-arm-pi.tar.gz --strip=1 cd ${TRAVIS_BUILD_DIR} ls -al /usr/local/bin node --version