1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool manifest ci/manifest.yml
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:11-slim
9 RUN export DEBIAN_FRONTEND=noninteractive && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
51 eatmydata apt-get autoremove -y && \
52 eatmydata apt-get autoclean -y && \
53 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
54 dpkg-reconfigure locales && \
55 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
57 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
58 ENV LANG "en_US.UTF-8"
59 ENV MAKE "/usr/bin/make"
60 ENV NINJA "/usr/bin/ninja"
61 ENV PYTHON "/usr/bin/python3"
63 RUN export DEBIAN_FRONTEND=noninteractive && \
64 dpkg --add-architecture ppc64el && \
65 eatmydata apt-get update && \
66 eatmydata apt-get dist-upgrade -y && \
67 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
68 eatmydata apt-get install --no-install-recommends -y \
69 gcc-powerpc64le-linux-gnu \
71 libapparmor-dev:ppc64el \
72 libattr1-dev:ppc64el \
73 libaudit-dev:ppc64el \
74 libblkid-dev:ppc64el \
76 libcap-ng-dev:ppc64el \
77 libcurl4-gnutls-dev:ppc64el \
78 libdevmapper-dev:ppc64el \
80 libglib2.0-dev:ppc64el \
81 libglusterfs-dev:ppc64el \
82 libgnutls28-dev:ppc64el \
83 libiscsi-dev:ppc64el \
84 libjson-c-dev:ppc64el \
86 libnl-route-3-dev:ppc64el \
88 libparted-dev:ppc64el \
89 libpcap0.8-dev:ppc64el \
90 libpciaccess-dev:ppc64el \
92 libreadline-dev:ppc64el \
93 libsanlock-dev:ppc64el \
94 libsasl2-dev:ppc64el \
95 libselinux1-dev:ppc64el \
96 libssh-gcrypt-dev:ppc64el \
97 libssh2-1-dev:ppc64el \
98 libtirpc-dev:ppc64el \
100 libxml2-dev:ppc64el \
101 systemtap-sdt-dev:ppc64el && \
102 eatmydata apt-get autoremove -y && \
103 eatmydata apt-get autoclean -y && \
104 mkdir -p /usr/local/share/meson/cross && \
105 printf "[binaries]\n\
106 c = '/usr/bin/powerpc64le-linux-gnu-gcc'\n\
107 ar = '/usr/bin/powerpc64le-linux-gnu-gcc-ar'\n\
108 strip = '/usr/bin/powerpc64le-linux-gnu-strip'\n\
109 pkgconfig = '/usr/bin/powerpc64le-linux-gnu-pkg-config'\n\
113 cpu_family = 'ppc64'\n\
114 cpu = 'powerpc64le'\n\
115 endian = 'little'\n" > /usr/local/share/meson/cross/powerpc64le-linux-gnu && \
116 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
117 mkdir -p /usr/libexec/ccache-wrappers && \
118 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-cc && \
119 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-gcc
121 ENV ABI "powerpc64le-linux-gnu"
122 ENV MESON_OPTS "--cross-file=powerpc64le-linux-gnu"