FROM gentoo/stage3
RUN emerge-webrsync -q
RUN echo '~sys-libs/glibc-2.34 **' >> /etc/portage/package.accept_keywords
RUN emerge --quiet --quiet-build=y --oneshot glibc
RUN emerge --quiet --quiet-build=y dev-vcs/git
RUN git clone -q https://git.kernel.org/pub/scm/libs/libcap/libcap.git
CMD /bin/sh -c 'cd libcap && make clean COPTS="-m32 -O0 -g -ggdb3" -C libcap all test'