1 | FROM fedora:35
|
---|
2 |
|
---|
3 | ENV LANG C.UTF-8
|
---|
4 | ENV OS_NAME f35
|
---|
5 |
|
---|
6 | RUN dnf install -y --nodocs \
|
---|
7 | # Base build tools
|
---|
8 | make automake libtool cmake git-core subversion pkg-config gcc-c++ \
|
---|
9 | wget unzip ninja-build ccache which patch gcovr xz openssh-clients \
|
---|
10 | # Cross win32 compiler
|
---|
11 | mingw32-gcc-c++ mingw32-bzip2-static mingw32-win-iconv-static \
|
---|
12 | mingw32-winpthreads-static mingw32-zlib-static mingw32-xz-libs-static \
|
---|
13 | && dnf remove -y "*-doc" \
|
---|
14 | && dnf autoremove -y \
|
---|
15 | && dnf clean all
|
---|
16 |
|
---|
17 | # Create user
|
---|
18 | RUN groupadd --gid 121 runner
|
---|
19 | RUN useradd --uid 1001 --gid 121 --create-home runner
|
---|
20 | USER runner
|
---|
21 |
|
---|
22 | RUN cd $HOME \
|
---|
23 | && pwd \
|
---|
24 | && wget https://oligarchy.co.uk/xapian/1.4.22/xapian-core-1.4.22.tar.xz \
|
---|
25 | && tar -xf xapian-core-1.4.22.tar.xz \
|
---|
26 | && ls
|
---|
27 |
|
---|
28 | RUN cd $HOME \
|
---|
29 | && wget -O /home/runner/xapian.patch "https://trac.xapian.org/changeset/d2080b2feae47c9a263611e32244c6ebe7976755/git?format=diff&new=d2080b2feae47c9a263611e32244c6ebe7976755" \
|
---|
30 | && cd xapian-core-1.4.22 \
|
---|
31 | && cat ../xapian.patch \
|
---|
32 | && patch -p1 < ../xapian.patch \
|
---|
33 | && head -n50 common/safesyssocket.h
|
---|
34 |
|
---|
35 | RUN cd $HOME/xapian-core-1.4.22 \
|
---|
36 | && mingw32-configure --disable-sse --disable-backend-chert --disable-backend-remote --disable-documentation \
|
---|
37 | && head config.log \
|
---|
38 | && make
|
---|