util-linux

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-pkgconf . /
COPY --from=stagex/core-autoconf . /
COPY --from=stagex/core-automake . /
COPY --from=stagex/core-gettext . /
COPY --from=stagex/core-bison . /
COPY --from=stagex/core-libtool . /
COPY --from=stagex/core-linux-headers . /
COPY --from=stagex/core-m4 . /
COPY --from=stagex/core-make . /
ADD fetch/util-linux-${VERSION}.tar.gz .
RUN mv /util-linux-* util-linux
WORKDIR /util-linux
RUN --network=none <<-EOF
	set -eux
	./autogen.sh
	./configure \
		--prefix=/usr \
		--exec-prefix=/usr \
		--sbindir=/usr/sbin \
		--bindir=/usr/bin \
		--libdir=/usr/lib \
		--with-vendordir=/usr/lib \
		--enable-fs-paths-extra=/usr/sbin \
		--disable-nls \
		--disable-silent-rules \
		--disable-gtk-doc \
		--enable-newgrp
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /