Skip to content

Commit a4da63b

Browse files
committed
add build icu
1 parent 84e4ac0 commit a4da63b

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

appimage/Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ FROM centos:7
22

33
RUN yum -y update && yum -y install wget && yum -y install centos-release-scl epel-release && yum -y update && yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-binutils wget tar bzip2 git libtool which fuse fuse-devel libjpeg-devel libpng-devel automake cppunit-devel cmake glibc-headers libstdc++-devel gcc-c++ freetype-devel fontconfig-devel libxml2-devel libstdc++-devel libXrender-devel libXcomposite libXcomposite-devel patch xcb-util-keysyms-devel libXi-devel libudev-devel.x86_64 openssl-devel sqlite-devel.x86_64 gperftools.x86_64 gperf.x86_64 libicu-devel.x86_64 boost-devel.x86_64 libxslt-devel.x86_64 docbook-style-xsl.noarch python27.x86_64 cmake3.x86_64 bison flex bison-devel flex-devel xz xz-devel pcre-devel pcre2-devel pcre pcre2 mesa-libEGL-devel mesa-libGL-devel glib-devel gettext perl-URI.noarch bzip2-devel.x86_64 subversion-devel.x86_64 subversion.x86_64 sqlite2-devel.x86_64 hunspell-devel aspell-devel hspell-devel vim sudo unzip xkeyboard-config libffi libffi-devel hyphen hyphen-devel make file libudev-devel
44

5-
#RUN cd /tmp && wget http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/subversion-1.9.4-3.x86_64.rpm http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/subversion-devel-1.9.4-3.x86_64.rpm http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/serf-1.3.7-1.x86_64.rpm && yum -y install subversion* serf*; rm subversion* serf*
5+
RUN cd /tmp && wget http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/subversion-1.9.4-3.x86_64.rpm http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/subversion-devel-1.9.4-3.x86_64.rpm http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/serf-1.3.7-1.x86_64.rpm && yum -y install subversion* serf*; rm subversion* serf*
66

77
RUN echo ". /opt/rh/devtoolset-7/enable && chmod +x /opt/rh/python27/enable && . /opt/rh/python27/enable" >> /root/.bashrc
88

9-
ENV LANG=en_US.UTF-8 PYTHON_VERSION=3.6.7 QTVERSION=5.12.8 QTVERSION_SHORT=5.12 LLVM_VERSION=10.0.0 LLVM_ROOT=/opt/llvm/ RUBY_VERSION=1.9.3-p484 GLIB_VERSION_SHORT=2.61 GLIB_VERSION=2.61.2 LD_LIBRARY_PATH=$QTDIR/lib/
9+
ENV LANG=en_US.UTF-8 PYTHON_VERSION=3.6.7 QTVERSION=5.12.8 QTVERSION_SHORT=5.12 LLVM_VERSION=11.0.0 LLVM_ROOT=/opt/llvm/ RUBY_VERSION=1.9.3-p484 GLIB_VERSION_SHORT=2.61 GLIB_VERSION=2.61.2 LD_LIBRARY_PATH=$QTDIR/lib/
1010
ENV QTDIR=/opt/qt5
1111

1212
RUN bash -c "ln -sf /opt/rh/devtoolset-7/root/usr/bin/g++ /usr/bin/g++ && ln -sf /opt/rh/devtoolset-7/root/usr/bin/c++ /usr/bin/c++"
@@ -43,14 +43,12 @@ RUN bash -c "cd /glib/ && tar xvf glib-${GLIB_VERSION}.tar.xz"
4343
RUN bash -c ". /opt/rh/devtoolset-7/enable && cd /glib/glib-${GLIB_VERSION} && meson -D libmount=false _build && ninja -C _build && ninja -C _build install && rm -Rf /glib"
4444

4545
# Build ICU >= 52.1, required for qtwebkit
46-
RUN bash -c "mkdir -p /icu && cd /icu && wget https://github.com/unicode-org/icu/releases/download/release-52-2/icu4c-52_2-src.tgz"
47-
RUN bash -c "cd /icu/ && tar xvf icu4c-52_2-src.tgz"
48-
RUN bash -c ". /opt/rh/devtoolset-7/enable && cd /icu/icu/source && ./configure --prefix /opt/icu4c-52_2 && make -j$(nproc) && make -j$(nproc) install && rm -Rf /icu && echo "/opt/icu4c-52_2/lib/" > /etc/ld.so.conf.d/icu4c-52_2.conf && ldconfig"
46+
COPY build_icu.sh /build_icu.sh
47+
RUN bash -c "chmod u+x /build_icu.sh && /build_icu.sh"
4948

5049
# Build qtwebkit
51-
COPY qtwebkit.sh /qtwebkit.sh
52-
53-
RUN bash -c "chmod u+x /qtwebkit.sh && /qtwebkit.sh"
50+
COPY build_qtwebkit.sh /build_qtwebkit.sh
51+
RUN bash -c "chmod u+x /build_qtwebkit.sh && /build_qtwebkit.sh"
5452

5553
# Build Clang/LLVM
5654
RUN bash -c "mkdir -p /llvm && cd /llvm && wget https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVM_VERSION}/llvm-${LLVM_VERSION}.src.tar.xz"

appimage/build_icu.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Halt on errors
3+
set -e
4+
5+
# Be verbose
6+
set -x
7+
8+
# Build ICU >= 52.1, required for qtwebkit
9+
mkdir -p /icu
10+
cd /icu
11+
wget https://github.com/unicode-org/icu/releases/download/release-52-2/icu4c-52_2-src.tgz
12+
tar xvf icu4c-52_2-src.tgz --no-same-owner
13+
14+
source /opt/rh/devtoolset-7/enable
15+
cd /icu/icu/source
16+
./configure --prefix /opt/icu4c-52_2
17+
make -j$(nproc)
18+
make -j$(nproc) install
19+
rm -Rf /icu
20+
21+
echo "/opt/icu4c-52_2/lib/" > /etc/ld.so.conf.d/icu4c-52_2.conf
22+
ldconfig

appimage/qtwebkit.sh renamed to appimage/build_qtwebkit.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
# Halt on errors
3+
set -e
4+
5+
# Be verbose
6+
set -x
27

38
mkdir -p /qtwk
49
cd /qtwk && wget https://github.com/qt/qtwebkit/archive/v5.212.0-alpha4.tar.gz

0 commit comments

Comments
 (0)