From 099c59ea4e4f6944bdff6b12fefd2b441340a288 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Wed, 4 May 2016 05:58:02 -0500 Subject: [PATCH] qt55.qmakeHook: fix error when package builds no libraries --- pkgs/development/libraries/qt-5/5.5/qmake-hook.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/qt-5/5.5/qmake-hook.sh b/pkgs/development/libraries/qt-5/5.5/qmake-hook.sh index aa20779f4ec0..425048a59357 100644 --- a/pkgs/development/libraries/qt-5/5.5/qmake-hook.sh +++ b/pkgs/development/libraries/qt-5/5.5/qmake-hook.sh @@ -57,11 +57,13 @@ _qtMultioutModuleDevs() { # Move libtool archives and qmake project files to $dev/lib if [ "z${!outputLib}" != "z${!outputDev}" ]; then pushd "${!outputLib}" - find lib -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 | \ - while read -r -d $'\0' file; do - mkdir -p "${!outputDev}/$(dirname "$file")" - mv "${!outputLib}/$file" "${!outputDev}/$file" - done + if [ -d "lib" ]; then + find lib -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 | \ + while read -r -d $'\0' file; do + mkdir -p "${!outputDev}/$(dirname "$file")" + mv "${!outputLib}/$file" "${!outputDev}/$file" + done + fi popd fi }