Skip to content

Commit

Permalink
Docker baseimage: add custom xgettext build (#43)
Browse files Browse the repository at this point in the history
See koreader/koreader#5238 (comment)

Even if a fix is implemented upstream soon, it'd be years before we could use a precompiled binary anyway.
  • Loading branch information
Frenzie committed Aug 22, 2019
1 parent 9b41d9f commit 90d585a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/ubuntu/baseimage-python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM koreader/kobase:0.1.3
FROM koreader/kobase:0.1.4

USER root
RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu/baseimage-python/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.1.3
VERSION=0.1.4

all: build

Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu/baseimage/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.1.3
VERSION=0.1.4

all: build

Expand Down
16 changes: 16 additions & 0 deletions docker/ubuntu/baseimage/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ apt-get install -y \

# --upgrade to prevent urllib3 errors
pip3 install transifex-client --upgrade

# compile custom xgettext with newline patch, cf. https://github.com/koreader/koreader/pull/5238#issuecomment-523794831
# upstream bug https://savannah.gnu.org/bugs/index.php?56794
GETTEXT_VER=0.20.1
wget http://ftpmirror.gnu.org/gettext/gettext-${GETTEXT_VER}.tar.gz
tar -xf gettext-${GETTEXT_VER}.tar.gz
pushd gettext-${GETTEXT_VER} && {
wget -O ignore-first-newline-of-lua-multiline-string.patch https://savannah.gnu.org/bugs/download.php?file_id=47379
patch -p1 <ignore-first-newline-of-lua-multiline-string.patch
./configure
make -j"$(nproc)"
make install
ldconfig
} && popd
rm gettext-${GETTEXT_VER}.tar.gz
rm -rf gettext-${GETTEXT_VER}
2 changes: 1 addition & 1 deletion docker/ubuntu/koappimage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM koreader/kobase-python:0.1.3
FROM koreader/kobase-python:0.1.4

USER root
RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu/koappimage/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.1.5
VERSION=0.1.6

all: build

Expand Down

0 comments on commit 90d585a

Please sign in to comment.