Skip to content

Commit

Permalink
Merge pull request #346 from sensiblecodeio/update-dependencies-2024-07
Browse files Browse the repository at this point in the history
Update dependencies 2024-07
  • Loading branch information
StevenMaude authored Jul 22, 2024
2 parents c002672 + 6d55167 commit b8987a0
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 30 deletions.
19 changes: 10 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[submodule "vendor/gitlab.freedesktop.org/freetype/freetype.git"]
path = vendor/gitlab.freedesktop.org/freetype/freetype.git
[submodule "vendor/gitlab.freedesktop.org/freetype/freetype"]
path = vendor/gitlab.freedesktop.org/freetype/freetype
url = https://gitlab.freedesktop.org/freetype/freetype.git
[submodule "vendor/anongit.freedesktop.org/git/fontconfig"]
path = vendor/anongit.freedesktop.org/git/fontconfig
url = https://anongit.freedesktop.org/git/fontconfig
path = vendor/gitlab.freedesktop.org/fontconfig/fontconfig
url = https://gitlab.freedesktop.org/fontconfig/fontconfig.git
[submodule "vendor/github.com/mm2/Little-CMS"]
path = vendor/github.com/mm2/Little-CMS
url = https://github.com/mm2/Little-CMS
url = https://github.com/mm2/Little-CMS.git
[submodule "vendor/github.com/uclouvain/openjpeg"]
path = vendor/github.com/uclouvain/openjpeg
url = https://github.com/uclouvain/openjpeg
[submodule "vendor/anongit.freedesktop.org/git/poppler/poppler.git"]
path = vendor/anongit.freedesktop.org/git/poppler/poppler.git
url = https://github.com/uclouvain/openjpeg.git
[submodule "vendor/anongit.freedesktop.org/git/poppler/poppler"]
path = vendor/github.com/sensiblecodeio/poppler
url = https://github.com/sensiblecodeio/poppler.git
branch = pdf2msgpack
[submodule "vendor/github.com/sensiblecodeio/msgpack-c"]
path = vendor/github.com/sensiblecodeio/msgpack-c
url = https://github.com/sensiblecodeio/msgpack-c
url = https://github.com/sensiblecodeio/msgpack-c.git
branch = cpp-6.1.0-with-4.1.1-float-double-behaviour
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# syntax = docker/dockerfile:experimental

FROM alpine:3.19 AS cachebase
FROM alpine:3.20 AS cachebase
RUN mkdir -p /tmp/ccache \
&& chown nobody:nogroup /tmp/ccache

FROM alpine:3.19
FROM alpine:3.20

ARG BUILD_CONCURRENCY=4

Expand Down Expand Up @@ -46,7 +46,7 @@ USER nobody:nogroup

RUN --mount=type=cache,src=/tmp/ccache,target=/tmp/ccache,id=ccache,from=cachebase \
\
cd vendor/gitlab.freedesktop.org/freetype/freetype.git/ \
cd vendor/gitlab.freedesktop.org/freetype/freetype/ \
&& NOCONFIGURE=1 ./autogen.sh \
# workaround for docker #9547 (Text file busy) \
&& sync \
Expand All @@ -55,23 +55,23 @@ RUN --mount=type=cache,src=/tmp/ccache,target=/tmp/ccache,id=ccache,from=cacheba
&& make -j${BUILD_CONCURRENCY} \
&& make install

ENV PKG_CONFIG_PATH="/src/vendor/gitlab.freedesktop.org/freetype/freetype.git/build/install/lib/pkgconfig:$PKG_CONFIG_PATH" \
LINKFLAGS="-L/src/vendor/gitlab.freedesktop.org/freetype/freetype.git/build/install/lib $LINKFLAGS" \
ENV PKG_CONFIG_PATH="/src/vendor/gitlab.freedesktop.org/freetype/freetype/build/install/lib/pkgconfig:$PKG_CONFIG_PATH" \
LINKFLAGS="-L/src/vendor/gitlab.freedesktop.org/freetype/freetype/build/install/lib $LINKFLAGS" \
# Required for poppler cmake \
FREETYPE_DIR=/src/vendor/gitlab.freedesktop.org/freetype/freetype.git/build/install
FREETYPE_DIR=/src/vendor/gitlab.freedesktop.org/freetype/freetype/build/install


RUN --mount=type=cache,src=/tmp/ccache,target=/tmp/ccache,id=ccache,from=cachebase \
\
cd vendor/anongit.freedesktop.org/git/fontconfig \
cd vendor/gitlab.freedesktop.org/fontconfig/fontconfig/ \
&& NOCONFIGURE=1 ./autogen.sh \
&& mkdir build && cd build \
&& ../configure --prefix=$PWD/install --enable-static \
&& make -j${BUILD_CONCURRENCY} \
&& make install

ENV PKG_CONFIG_PATH="/src/vendor/anongit.freedesktop.org/git/fontconfig/build/install/lib/pkgconfig:$PKG_CONFIG_PATH" \
LINKFLAGS="-L/src/vendor/anongit.freedesktop.org/git/fontconfig/build/install/lib $LINKFLAGS"
ENV PKG_CONFIG_PATH="/src/vendor/gitlab.freedesktop.org/fontconfig/fontconfig/build/install/lib/pkgconfig:$PKG_CONFIG_PATH" \
LINKFLAGS="-L/src/vendor/gitlab.freedesktop.org/fontconfig/fontconfig/build/install/lib $LINKFLAGS"


RUN --mount=type=cache,src=/tmp/ccache,target=/tmp/ccache,id=ccache,from=cachebase \
Expand Down Expand Up @@ -103,7 +103,7 @@ ENV PKG_CONFIG_PATH="/src/vendor/github.com/uclouvain/openjpeg/build/install/lib

RUN --mount=type=cache,src=/tmp/ccache,target=/tmp/ccache,id=ccache,from=cachebase \
\
cd vendor/anongit.freedesktop.org/git/poppler/poppler.git \
cd vendor/github.com/sensiblecodeio/poppler/ \
&& mkdir build && cd build \
&& cmake .. \
-DCMAKE_INSTALL_PREFIX=$PWD/install \
Expand All @@ -124,9 +124,9 @@ RUN --mount=type=cache,src=/tmp/ccache,target=/tmp/ccache,id=ccache,from=cacheba
&& make V=1 -j${BUILD_CONCURRENCY} \
&& make install

ENV PKG_CONFIG_PATH="/src/vendor/anongit.freedesktop.org/git/poppler/poppler.git/build/install/lib/pkgconfig:$PKG_CONFIG_PATH" \
LINKFLAGS="-L/src/vendor/anongit.freedesktop.org/git/poppler/poppler.git/build/install/lib $LINKFLAGS" \
CXXFLAGS="-I/src/vendor/anongit.freedesktop.org/git/poppler/poppler.git/build/install/include $CXXFLAGS"
ENV PKG_CONFIG_PATH="/src/vendor/github.com/sensiblecodeio/poppler/build/install/lib/pkgconfig:$PKG_CONFIG_PATH" \
LINKFLAGS="-L/src/vendor/github.com/sensiblecodeio/poppler/build/install/lib $LINKFLAGS" \
CXXFLAGS="-I/src/vendor/github.com/sensiblecodeio/poppler/build/install/include $CXXFLAGS"


COPY --chown=nobody:nogroup ./src /src/src
Expand Down
1 change: 0 additions & 1 deletion vendor/anongit.freedesktop.org/git/fontconfig
Submodule fontconfig deleted from 14d466
1 change: 0 additions & 1 deletion vendor/anongit.freedesktop.org/git/poppler/poppler.git
Submodule poppler.git deleted from dcddb1
1 change: 1 addition & 0 deletions vendor/github.com/sensiblecodeio/poppler
Submodule poppler added at 361161
2 changes: 1 addition & 1 deletion vendor/github.com/uclouvain/openjpeg
Submodule openjpeg updated 163 files
1 change: 1 addition & 0 deletions vendor/gitlab.freedesktop.org/fontconfig/fontconfig
Submodule fontconfig added at 70b60c
1 change: 1 addition & 0 deletions vendor/gitlab.freedesktop.org/freetype/freetype
Submodule freetype added at 37cefe
1 change: 0 additions & 1 deletion vendor/gitlab.freedesktop.org/freetype/freetype.git
Submodule freetype.git deleted from 47574f
4 changes: 2 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def options(opt):
def configure(ctx):
ctx.load('compiler_cxx')

ctx.check(features='cxx cxxprogram', cxxflags="--std=c++17")
ctx.check(features='cxx cxxprogram', cxxflags="--std=c++20")

ctx.env.append_value("CXXFLAGS", [
"-g",
"-Wall",
"-Werror",
"-ansi",
"--std=c++17",
"--std=c++20",
"-DMSGPACK_NO_BOOST",
])

Expand Down

0 comments on commit b8987a0

Please sign in to comment.