expect

Details
Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-tcl . /
ADD fetch/expect-${VERSION}.tar.gz .
WORKDIR /expect${VERSION}
ADD *.patch .
RUN --network=none <<-EOF
	set -eux
	patch -Np0 -i expect-5.45-format-security.patch
	patch -Np1 -i expect-c99.patch
	patch -Np1 -i expect-configure-c99.patch
	autoreconf -vif
	./configure \
		--prefix=/usr/ \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--with-tcl=/usr/lib \
		--with-tclinclude=/usr/include \
		--disable-rpath
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /