From f9e03a8e6f5b13d68af45837970cc71fbbc0701c Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Sat, 19 Jul 2014 17:52:31 -0700 Subject: [PATCH] build_image: add repos.conf and binpkgs url to dev images Needed for portage 2.2. Sync URIs are included but not very useful yet because portage only can do `git pull` but not `git clone`. An extra helper script will be required to do the initial clone it seems. Binary packages may be useful for re-installing a package with a different INSTALL_MASK. Can be used to install debug symbols. --- build_library/dev_image_util.sh | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/build_library/dev_image_util.sh b/build_library/dev_image_util.sh index e552b71641..84fd5e6b0a 100755 --- a/build_library/dev_image_util.sh +++ b/build_library/dev_image_util.sh @@ -2,10 +2,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# Shell function library for functions specific to creating dev -# images from base images. The main function for export in this -# library is 'install_dev_packages'. - configure_dev_portage() { # Need profiles at the bare minimum local repo @@ -17,7 +13,7 @@ configure_dev_portage() { "$1/var/lib/portage/${repo}" done - sudo mkdir -p "$1/etc/portage" + sudo mkdir -p "$1/etc/portage/repos.conf" sudo_clobber "$1/etc/portage/make.conf" <