From 8e84fcdaf06ae8a392421c03d26321bda0d1eca9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 29 Oct 2014 11:36:24 -0700 Subject: [PATCH] package-cache/Dockerfile.template: Use package.accept_keywords/package-cache Avoid: Step 3 : RUN echo '=net-proxy/package-cache-9999 ~amd64' >> /etc/portage/package.accept_keywords ---> Running in f36c7b3c1a27 /bin/sh: /etc/portage/package.accept_keywords: Is a directory 2014/10/29 11:23:21 The command [/bin/sh -c echo '=net-proxy/package-cache-9999 ~amd64' >> /etc/portage/package.accept_keywords] returned a non-zero code: 1 failed to build package-cache Since d8ed6289 (gentoo-layman/Dockerfile.template: Work around the lack of Python 2, 2014-08-30), gentoo-layman is creating directories for /etc/portage/package.accept_keywords and /etc/portage/package.use. --- package-cache/Dockerfile.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-cache/Dockerfile.template b/package-cache/Dockerfile.template index 11129cf..161b75f 100644 --- a/package-cache/Dockerfile.template +++ b/package-cache/Dockerfile.template @@ -26,7 +26,7 @@ FROM ${NAMESPACE}/gentoo-layman:${TAG} MAINTAINER ${MAINTAINER} #VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"] RUN layman --add wtk -RUN echo '=net-proxy/package-cache-9999 ~amd64' >> /etc/portage/package.accept_keywords +RUN echo '=net-proxy/package-cache-9999 ~amd64' >> /etc/portage/package.accept_keywords/package-cache RUN emerge -v net-proxy/package-cache RUN eselect news read new RUN rc-update add package-cache default -- 2.26.2