Commit 32bca118 authored by James T. Lee's avatar James T. Lee
Browse files

Fix ncurses build: disable pid-sandbox

This was failing to build due to a script that references its own PID
interacting with a failed Portage pid-sandbox setup.  The build
container doesn't have permissions to establish a new PID namespace and
it's not needed anyway because it's already containerized.  Just disable
the pid-sandbox.
parent 297d6ccb
Pipeline #202 failed with stage
in 12 minutes and 16 seconds
...@@ -16,6 +16,7 @@ default: ...@@ -16,6 +16,7 @@ default:
--security-opt seccomp=unconfined --security-opt seccomp=unconfined
--build-arg GENTOO_STAGE3_TAG=amd64 --build-arg GENTOO_STAGE3_TAG=amd64
--build-arg EMERGE_DEFAULT_OPTS="--jobs=${JOBS} --usepkg" --build-arg EMERGE_DEFAULT_OPTS="--jobs=${JOBS} --usepkg"
--build-arg FEATURES="-pid-sandbox"
--build-arg MAKEOPTS="-j${JOBS}" --build-arg MAKEOPTS="-j${JOBS}"
--build-arg PROFILE="haswell/server" --build-arg PROFILE="haswell/server"
-v /nest:/nest -v /nest:/nest
......
...@@ -4,6 +4,7 @@ FROM nest/gentoo/portage AS gentoo-portage ...@@ -4,6 +4,7 @@ FROM nest/gentoo/portage AS gentoo-portage
FROM nest/gentoo/stage3:${GENTOO_STAGE3_TAG} FROM nest/gentoo/stage3:${GENTOO_STAGE3_TAG}
ARG EMERGE_DEFAULT_OPTS ARG EMERGE_DEFAULT_OPTS
ARG FEATURES
ARG MAKEOPTS ARG MAKEOPTS
ARG PROFILE ARG PROFILE
...@@ -16,12 +17,9 @@ COPY --from=nest-overlay / /var/db/repos/nest/ ...@@ -16,12 +17,9 @@ COPY --from=nest-overlay / /var/db/repos/nest/
# Rebuild all packages using a custom profile # Rebuild all packages using a custom profile
RUN eselect profile set "nest:${PROFILE}" RUN eselect profile set "nest:${PROFILE}"
RUN emerge --info && emerge -v1 sys-apps/portage && emerge --info RUN emerge --info && emerge -v1 sys-apps/portage
RUN emerge -v1 sys-libs/libcap RUN emerge --info && emerge -ev @world
RUN MAKEOPTS='-j1' emerge -v1 sys-libs/ncurses
RUN emerge -vDuN --with-bdeps=y @world
RUN emerge --depclean RUN emerge --depclean
RUN emerge -ev @world
# Install Puppet and prep package provider # Install Puppet and prep package provider
RUN emerge -v app-admin/puppet app-portage/eix RUN emerge -v app-admin/puppet app-portage/eix
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment