Fix linuxdeployqt crashes on Travis (closes #108)
By using a stable patchelf binary instead of compiling the latest master from NixOS/patchelf, the crash could be solved. An issue has been created in NixOS/patchelf attempting to fix this upstream. We should think about relying on stable versions (e.g. their tags) in the future instead of building the master branch, especially since linuxdeployqt is a development tool that many developers rely on.
This commit is contained in:
+5
-4
@@ -3,11 +3,11 @@
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
source /opt/qt*/bin/qt*-env.sh
|
source /opt/qt*/bin/qt*-env.sh
|
||||||
/opt/qt*/bin/qmake CONFIG+=debug linuxdeployqt.pro
|
/opt/qt*/bin/qmake CONFIG+=release CONFIG+=force_debug_info linuxdeployqt.pro
|
||||||
make -j
|
make -j
|
||||||
|
|
||||||
mkdir -p linuxdeployqt.AppDir/usr/bin/
|
mkdir -p linuxdeployqt.AppDir/usr/bin/
|
||||||
cp /usr/local/bin/{appimagetool,mksquashfs,patchelf,zsyncmake} linuxdeployqt.AppDir/usr/bin/
|
cp /usr/bin/patchelf /usr/local/bin/{appimagetool,mksquashfs,zsyncmake} linuxdeployqt.AppDir/usr/bin/
|
||||||
find linuxdeployqt.AppDir/
|
find linuxdeployqt.AppDir/
|
||||||
export VERSION=continuous
|
export VERSION=continuous
|
||||||
cp ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/
|
cp ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/
|
||||||
@@ -31,12 +31,13 @@ ulimit -c unlimited
|
|||||||
ulimit -a -S
|
ulimit -a -S
|
||||||
ulimit -a -H
|
ulimit -a -H
|
||||||
|
|
||||||
bash -e tests/tests.sh || RESULT=$?
|
bash -e tests/tests.sh
|
||||||
|
|
||||||
if [ $RESULT -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "FAILURE: linuxdeployqt CRASHED -- uploading files for debugging to transfer.sh"
|
echo "FAILURE: linuxdeployqt CRASHED -- uploading files for debugging to transfer.sh"
|
||||||
set -v
|
set -v
|
||||||
[ -e /tmp/coredump ] && curl --upload-file /tmp/coredump https://transfer.sh/coredump
|
[ -e /tmp/coredump ] && curl --upload-file /tmp/coredump https://transfer.sh/coredump
|
||||||
curl --upload-file linuxdeployqt-*-x86_64.AppImage https://transfer.sh/linuxdeployqt-x86_64.AppImage
|
curl --upload-file linuxdeployqt-*-x86_64.AppImage https://transfer.sh/linuxdeployqt-x86_64.AppImage
|
||||||
|
find -type f -iname 'libQt5Core.so*' -exec curl --upload {} https://transfer.sh/libQt5Core.so \; || true
|
||||||
exit $RESULT
|
exit $RESULT
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -5,14 +5,8 @@ set -e
|
|||||||
sudo add-apt-repository --yes ppa:beineri/opt-qt58-trusty
|
sudo add-apt-repository --yes ppa:beineri/opt-qt58-trusty
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
|
|
||||||
git clone -o 44b7f95 https://github.com/NixOS/patchelf.git
|
wget http://ftp.de.debian.org/debian/pool/main/p/patchelf/patchelf_0.8-2_amd64.deb
|
||||||
cd patchelf
|
sudo dpkg -i patchelf_0.8-2_amd64.deb
|
||||||
bash ./bootstrap.sh
|
|
||||||
./configure
|
|
||||||
make -j2
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
cd -
|
|
||||||
|
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
wget -c "https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
wget -c "https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||||
|
|||||||
Reference in New Issue
Block a user