Skip to content

Commit

Permalink
linux sdk update
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Mar 29, 2021
1 parent b9a9fca commit 00a140f
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tools/docker/natron-sdk/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export CENTOS=7
export DTS=8
LABEL="natrongithub/natron-sdk${UBUNTU+-ubuntu}${UBUNTU:-}${CENTOS+-centos}${CENTOS:-}${DTS+-dts}${DTS:-}"
env GEN_DOCKERFILE=1 ../../jenkins/include/scripts/build-Linux-sdk.sh > Dockerfile
docker build -t "${LABEL}:latest" .
docker build -t "${LABEL}:latest" . --progress=plain
#docker build --no-cache -t "${LABEL}:latest" .
echo "please execute:"
#echo "docker-squash ${LABEL}:latest"
Expand Down
1 change: 1 addition & 0 deletions tools/jenkins/include/scripts/build-Linux-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ build harfbuzz
build fribidi # (for libass and ffmpeg)
build pango
build libcroco # (requires glib and libxml2)
build xmlto # (required by shared-mime-info)
build shared-mime-info # (required by gdk-pixbuf)
build gdk-pixbuf
build librsvg # (without vala support)
Expand Down
6 changes: 3 additions & 3 deletions tools/jenkins/include/scripts/pkg/mysqlclient.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ if $WITH_MARIADB; then
MYSQLCLIENT_VERSION_PY3=2.0.3
MYSQLCLIENT_VERSION_PY2=1.4.6
#dobuild && echo "python${PY2_VERSION_SHORT}"
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/MySQLdb" ] || [ $("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import MySQLdb; print(MySQLdb.__version__.split(' ', 1)[0])") != ${MYSQLCLIENT_VERSION_PY2} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/MySQLdb" ] || [ "$("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import MySQLdb; print(MySQLdb.__version__.split(' ', 1)[0])")" != "${MYSQLCLIENT_VERSION_PY2}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY2_VERSION_SHORT} install --no-binary mysqlclient mysqlclient=="${MYSQLCLIENT_VERSION_PY2}"
end_build
fi
#dobuild && echo "python${PY3_VERSION_SHORT}"
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/MySQLdb" ] || [ $("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import MySQLdb; print(MySQLdb.__version__.split(' ', 1)[0])") != ${MYSQLCLIENT_VERSION_PY3} ]; }; }; then
# in MySQLsb >= 2.0, the version is in MySQLdb.release
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/MySQLdb" ] || [ "$("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import MySQLdb.release; print(MySQLdb.release.__version__.split(' ', 1)[0])")" != "${MYSQLCLIENT_VERSION_PY3}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY3_VERSION_SHORT} install --no-binary mysqlclient mysqlclient=="${MYSQLCLIENT_VERSION_PY3}"
end_build
Expand Down
4 changes: 2 additions & 2 deletions tools/jenkins/include/scripts/pkg/psycopg2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# install psycopg2 (PostgreSQL connector)
# see https://pypi.python.org/pypi/psycopg2
PSYCOPG2_VERSION=2.8.6
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/psycopg2" ] || [ $("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import psycopg2; print(psycopg2.__version__.split(' ', 1)[0])") != ${PSYCOPG2_VERSION} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/psycopg2" ] || [ "$("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import psycopg2; print(psycopg2.__version__.split(' ', 1)[0])")" != "${PSYCOPG2_VERSION}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY2_VERSION_SHORT} install --no-binary psycopg2 psycopg2=="${PSYCOPG2_VERSION}"
end_build
fi
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/psycopg2" ] || [ $("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import psycopg2; print(psycopg2.__version__.split(' ', 1)[0])") != ${PSYCOPG2_VERSION} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/psycopg2" ] || [ "$("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import psycopg2; print(psycopg2.__version__.split(' ', 1)[0])")" != "${PSYCOPG2_VERSION}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY3_VERSION_SHORT} install --no-binary psycopg2 psycopg2=="${PSYCOPG2_VERSION}"
end_build
Expand Down
7 changes: 4 additions & 3 deletions tools/jenkins/include/scripts/pkg/shared-mime-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

# Install shared-mime-info (required by gdk-pixbuf)
# see http://www.linuxfromscratch.org/blfs/view/svn/general/shared-mime-info.html
#SHAREDMIMEINFO_VERSION=1.15 # last version before meson
SHAREDMIMEINFO_VERSION=2.1 # builds with meson. Warning: SHAREDMIMEINFO_SITE changes with every release
SHAREDMIMEINFO_VERSION=1.15 # last version before meson
#SHAREDMIMEINFO_VERSION=2.1 # builds with meson. Warning: SHAREDMIMEINFO_SITE changes with every release
SHAREDMIMEINFO_TAR="shared-mime-info-${SHAREDMIMEINFO_VERSION}.tar.xz"
#SHAREDMIMEINFO_SITE="http://freedesktop.org/~hadess"
SHAREDMIMEINFO_SITE="https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0ee50652091363ab0d17e335e5e74fbe"
SHAREDMIMEINFO_SITE="https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/b27eb88e4155d8fccb8bb3cd12025d5b" # 1.15
SHAREDMIMEINFO_SITE="https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0ee50652091363ab0d17e335e5e74fbe" # 2.1
if download_step; then
download "$SHAREDMIMEINFO_SITE" "$SHAREDMIMEINFO_TAR"
fi
Expand Down
4 changes: 2 additions & 2 deletions tools/jenkins/include/scripts/pkg/sphinx-rtd-theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
SPHINXRTDTHEME_VERSION_PYTHON3=0.4.3 # 0.5.1 requires npm to install.
# should be fixed in 0.5.2, see https://github.com/readthedocs/sphinx_rtd_theme/commit/e13adedab162910df59f51e53372400b0b5ae368
SPHINXRTDTHEME_VERSION_PYTHON2=0.4.3 # 0.5.0 only supports Python 3
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/sphinx_rtd_theme" ] || [ $("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import sphinx_rtd_theme; print(sphinx_rtd_theme.__version__.split(' ', 1)[0])") != ${SPHINXRTDTHEME_VERSION_PYTHON2} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/sphinx_rtd_theme" ] || [ "$("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import sphinx_rtd_theme; print(sphinx_rtd_theme.__version__.split(' ', 1)[0])")" != "${SPHINXRTDTHEME_VERSION_PYTHON2}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY2_VERSION_SHORT} install --no-binary sphinx_rtd_theme sphinx_rtd_theme=="${SPHINXRTDTHEME_VERSION_PYTHON2}"
end_build
fi
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/sphinx_rtd_theme" ] || [ $("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import sphinx_rtd_theme; print(sphinx_rtd_theme.__version__.split(' ', 1)[0])") != ${SPHINXRTDTHEME_VERSION_PYTHON3} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/sphinx_rtd_theme" ] || [ "$("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import sphinx_rtd_theme; print(sphinx_rtd_theme.__version__.split(' ', 1)[0])")" != "${SPHINXRTDTHEME_VERSION_PYTHON3}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY3_VERSION_SHORT} install --no-binary sphinx_rtd_theme sphinx_rtd_theme=="${SPHINXRTDTHEME_VERSION_PYTHON3}"
end_build
Expand Down
4 changes: 2 additions & 2 deletions tools/jenkins/include/scripts/pkg/sphinx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# see https://pypi.org/project/sphinx/
SPHINX_VERSION_PYTHON3=3.5.3
SPHINX_VERSION_PYTHON2=1.8.5 # last version that supports Python 2.7
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/sphinx" ] || [ $("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import sphinx; print(sphinx.__version__.split(' ', 1)[0])") != ${SPHINX_VERSION_PYTHON2} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY2_VERSION_SHORT}/site-packages/sphinx" ] || [ "$("$SDK_HOME/bin/python${PY2_VERSION_SHORT}" -c "import sphinx; print(sphinx.__version__.split(' ', 1)[0])")" != "${SPHINX_VERSION_PYTHON2}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY2_VERSION_SHORT} install --no-binary sphinx sphinx=="${SPHINX_VERSION_PYTHON2}" || true
${SDK_HOME}/bin/python${PY2_VERSION_SHORT} -m sphinx --version
end_build
fi
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/sphinx" ] || [ $("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import sphinx; print(sphinx.__version__.split(' ', 1)[0])") != ${SPHINX_VERSION_PYTHON3} ]; }; }; then
if build_step && { force_build || { [ ! -d "$SDK_HOME/lib/python${PY3_VERSION_SHORT}/site-packages/sphinx" ] || [ "$("$SDK_HOME/bin/python${PY3_VERSION_SHORT}" -c "import sphinx; print(sphinx.__version__.split(' ', 1)[0])")" != "${SPHINX_VERSION_PYTHON3}" ]; }; }; then
start_build
${SDK_HOME}/bin/pip${PY3_VERSION_SHORT} install --no-binary sphinx sphinx=="${SPHINX_VERSION_PYTHON3}" || true
${SDK_HOME}/bin/python${PY3_VERSION_SHORT} -m sphinx --version
Expand Down
21 changes: 21 additions & 0 deletions tools/jenkins/include/scripts/pkg/xmlto.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Install xmlto
# see hhttp://www.linuxfromscratch.org/blfs/view/svn/pst/xmlto.html
XMLTO_VERSION=0.0.28
XMLTO_TAR="xmlto-${XMLTO_VERSION}.tar.bz2"
XMLTO_SITE="https://releases.pagure.org/xmlto"
if download_step; then
download "$XMLTO_SITE" "$XMLTO_TAR"
fi
if build_step && { force_build || { [ ! -s "$SDK_HOME/bin/xmlto" ] || [ "$("${SDK_HOME}/bin/xmlto" --version)" != "xmlto version $XMLTO_VERSION" ] ; }; }; then
start_build
untar "$SRC_PATH/$XMLTO_TAR"
pushd "xmlto-${XMLTO_VERSION}"
env CFLAGS="$BF" CXXFLAGS="$BF" ./configure --prefix="$SDK_HOME" --libdir="$SDK_HOME/lib" --enable-shared --disable-static
make -j${MKJOBS}
make install
popd
rm -rf "xmlto-${XMLTO_VERSION}"
end_build
fi

0 comments on commit 00a140f

Please sign in to comment.