Skip to content

Commit

Permalink
linux sdk fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Oct 23, 2021
1 parent 38d3e8b commit bdc8cca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/jenkins/build-Linux-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ python_site_packages=(PySide shiboken.so)

mkdir -p "${TMP_PORTABLE_DIR}/lib/python${PYVER}"

for pydir in "${SDK_HOME}/lib/python${PYVER}" "${SDK_HOME}/qt${QT_VERSION_MAJOR}/lib/python${PYVER}"; do
for pydir in "${SDK_HOME}/lib/python${PYVER}"; do
(cd "$pydir"; tar cf - . --exclude site-packages)|(cd "${TMP_PORTABLE_DIR}/lib/python${PYVER}"; tar xf -)
for p in "${python_site_packages[@]}"; do
if [ -e "$pydir/site-packages/$p" ]; then
Expand All @@ -544,7 +544,7 @@ mv "${TMP_PORTABLE_DIR}/lib/python${PYVER}/site-packages/PySide" "${TMP_PORTABLE
rm -rf "${TMP_PORTABLE_DIR}/lib/python${PYVER}"/{test,config,config-"${PYVER}m"}

# Copy PySide dependencies
PYSIDE_DEPENDS=$(ldd $(find "${SDK_HOME}/qt${QT_VERSION_MAJOR}/lib/python${PYVER}/site-packages/PySide" -maxdepth 1 -type f) | grep "$SDK_HOME" | awk '{print $3}'|sort|uniq)
PYSIDE_DEPENDS=$(ldd $(find "${SDK_HOME}/lib/python${PYVER}/site-packages/PySide" -maxdepth 1 -type f) | grep "$SDK_HOME" | awk '{print $3}'|sort|uniq)
for y in $PYSIDE_DEPENDS; do
dep=$(basename "$y")
if [ ! -f "${TMP_PORTABLE_DIR}/lib/$dep" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/build-natron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ if [ "$PKGOS" = "Linux" ]; then
# Note: Several suppression files can be passed to valgrind.
# There is an automatic tool to generate libc/libstdc++/Qt
# suppressions at https://github.com/AlekSi/valgrind-suppressions
env PYTHONPATH="$SDK_HOME/qt4/lib/python${PYVER}/site-packages" LD_LIBRARY_PATH="$SDK_HOME/gcc/lib:$SDK_HOME/gcc/lib64:$SDK_HOME/lib:$FFMPEG_PATH/lib:$LIBRAW_PATH/lib:$QTDIR/lib" $TIMEOUT -s KILL 1800 valgrind --tool=memcheck --suppressions="$INC_PATH/natron/valgrind-python.supp" Tests/Tests
env LD_LIBRARY_PATH="$SDK_HOME/gcc/lib:$SDK_HOME/gcc/lib64:$SDK_HOME/lib:$FFMPEG_PATH/lib:$LIBRAW_PATH/lib:$QTDIR/lib" $TIMEOUT -s KILL 1800 valgrind --tool=memcheck --suppressions="$INC_PATH/natron/valgrind-python.supp" Tests/Tests
#env LD_LIBRARY_PATH="$SDK_HOME/gcc/lib:$SDK_HOME/gcc/lib64:$SDK_HOME/lib:$FFMPEG_PATH/lib:$LIBRAW_PATH/lib:$QTDIR/lib" $TIMEOUT -s KILL 1800 Tests/Tests
rm -f lib || true
# ITS NOT POSSIBLE TO RUN THE WIN TESTS HERE, DO IT IN THE INSTALLER SCRIPT
Expand Down
1 change: 0 additions & 1 deletion tools/jenkins/include/scripts/build-Linux-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ EOF
LD_RUN_PATH=\"\$SDK/lib:\$QTDIR/lib:\$GCC/lib:\$FFMPEG/lib:\$LIBRAW/lib\" \\
CPATH=\"\$SDK/include:\$QTDIR/include:\$GCC/include:\$FFMPEG/include:\$LIBRAW/include:\$OSMESA/include\" \\
PKG_CONFIG_PATH=\"\$SDK/lib/pkgconfig:\$OSMESA/lib/pkgconfig:\$QTDIR/lib/pkgconfig:\$GCC/lib/pkgconfig:\$FFMPEG/lib/pkgconfig:\$LIBRAW/lib/pkgconfig\" \\
PYTHONPATH=\"\$QTDIR/lib/python2.7/site-packages/\" \\
PATH=\"\$SDK/bin:\$QTDIR/bin:\$GCC/bin:\$FFMPEG/bin:\$LIBRAW_PATH:\$PATH\" \\
WORKSPACE=/home \\
GIT_URL=https://github.com/NatronGitHub/Natron.git \\
Expand Down

0 comments on commit bdc8cca

Please sign in to comment.