Sha256: e281e6d171b4636c4d933cabab2d9f5a96d8d984c945793b2c3120094c7d23e6

Contents?: true

Size: 1.98 KB

Versions: 15

Compression:

Stored size: 1.98 KB

Contents

FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive

RUN set -ex \
    && sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
               build-essential \
               cdbs \
               devscripts \
               equivs \
               fakeroot \
               pkg-config \
    && apt-get clean \
    && rm -rf /tmp/* /var/tmp/*

WORKDIR /build

# Download mingw sources
RUN apt-get source mingw-w64-common && \
    cd mingw-w64-* && \
    mk-build-deps -ir -t "apt-get -o Debug::pkgProblemResolver=yes -y --no-install-recommends"

# Patch build for UCRT and build UCRT enabled deb-packages
ADD mingw-w64-*.patch ./
RUN cd mingw-w64-* && \
    cat debian/rules && \
    ls ../mingw-w64-*.patch | xargs -n1 patch --verbose -p1 -i && \
    dpkg-buildpackage -b && \
    rm -rf ../*.ddeb ../*i686* `pwd`

# Install UCRT enabled deb-packages
RUN dpkg -i mingw-w64-common_7.0.0-2_all.deb \
    mingw-w64-tools_7.0.0-2_amd64.deb \
    mingw-w64-x86-64-dev_7.0.0-2_all.deb

# Download gcc-binutils sources for mingw
RUN apt-get source binutils-mingw-w64 && \
    cd binutils-mingw-w64-* && \
    mk-build-deps -ir -t "apt-get -o Debug::pkgProblemResolver=yes -y --no-install-recommends"

# Build gcc-binutils based on UCRT headers and crt
ADD binutils-mingw-w64-*.patch ./
RUN cd binutils-mingw-w64-* && \
    ls ../binutils-mingw-w64-*.patch | xargs -n1 patch --verbose -p1 -i && \
    dpkg-buildpackage -b --jobs=auto && \
    rm -rf ../*.ddeb ../*i686* `pwd`

# Download gcc sources for mingw
RUN apt-get source gcc-mingw-w64 && \
    cd gcc-mingw-w64-* && \
    mk-build-deps -ir -t "apt-get -o Debug::pkgProblemResolver=yes -y --no-install-recommends"

# Build gcc (only C and C++) based on UCRT headers and crt
ADD gcc-mingw-w64-*.patch ./
RUN cd gcc-mingw-w64-* && \
    ls ../gcc-mingw-w64-*.patch | xargs -n1 patch --verbose -p1 -i && \
    dpkg-buildpackage -b --jobs=auto && \
    rm -rf ../*.ddeb ../*i686* `pwd`

RUN ls -l *.deb

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rake-compiler-dock-1.7.0 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.7.0.rc1 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.6.0 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.5.2 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.5.1 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.5.0 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.5.0.rc1 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.4.0 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.4.0.rc2 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.4.0.rc1 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.3.1 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.3.0 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.2.2 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.2.1 mingw64-ucrt/Dockerfile
rake-compiler-dock-1.2.0 mingw64-ucrt/Dockerfile