Revert "Add Gentoo support to nodepool"
Our images have failed to build for the last 3 days, reverting until we can debug.
This reverts commit 4c515e2073
.
Change-Id: I2e653bcd8a30a85ea46a9861bdf9f95413a76f64
This commit is contained in:
parent
4c515e2073
commit
510faf0bde
@ -46,10 +46,6 @@ until $BINDEP -b -f $PACKAGES test; do
|
||||
sudo PATH=/usr/sbin:/sbin:$PATH DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get -q --option "Dpkg::Options::=--force-confold" \
|
||||
--assume-yes install `$BINDEP -b -f $PACKAGES test`
|
||||
elif emerge --version >/dev/null 2>&1 ; then
|
||||
sudo emerge -uDNq --jobs=4 @world
|
||||
sudo PATH=/usr/sbin:/sbin:$PATH emerge -q --jobs=4 \
|
||||
`$BINDEP -b -f $PACKAGES`
|
||||
else
|
||||
sudo PATH=/usr/sbin:/sbin:$PATH $YUM install -y \
|
||||
`$BINDEP -b -f $PACKAGES test`
|
||||
|
@ -51,17 +51,6 @@ PACKAGELIST=`echo "$PACKAGES" | /usr/bindep-env/bin/bindep -b -f - || true`
|
||||
if [ -f /usr/bin/apt-get ] ; then
|
||||
# --ignore-missing conflicts with set -e, so force it to be ok
|
||||
apt-get -y --ignore-missing -d install $PACKAGELIST || true
|
||||
elif [ -f /usr/bin/emerge ] ; then
|
||||
# write out use config (won't install/fetch without it)
|
||||
# This lays down install / compile time options needed for bindep to
|
||||
# install / fetch the needed packages.
|
||||
USE_FILE=/etc/portage/package.use/bindep.use
|
||||
cat > $USE_FILE <<EOF
|
||||
x11-libs/cairo X
|
||||
x11-libs/gdk-pixbuf X
|
||||
media-libs/gd truetype png fontconfig jpeg
|
||||
EOF
|
||||
emerge -q --fetchonly $PACKAGELIST || true
|
||||
else
|
||||
${YUM:-yum} install -y --downloadonly $PACKAGELIST
|
||||
fi
|
||||
|
@ -161,16 +161,6 @@ def local_prep(distribution):
|
||||
tokenize(fn, rpms, distribution, comment='#')
|
||||
branch_data['rpms'] = rpms
|
||||
|
||||
if os.path.exists(os.path.join(TMP_MOUNT_PATH, 'usr/bin/emerge')):
|
||||
ebuilds = []
|
||||
ebuilddir = os.path.join(DEVSTACK, 'files', 'ebuilds')
|
||||
if not os.path.exists(ebuilddir):
|
||||
ebuilddir = os.path.join(DEVSTACK, 'files', 'ebuilds')
|
||||
for fn in os.listdir(ebuilddir):
|
||||
fn = os.path.join(ebuilddir, fn)
|
||||
tokenize(fn, ebuilds, distribution, comment='#')
|
||||
branch_data['ebuilds'] = ebuilds
|
||||
|
||||
images = _find_images(DEVSTACK)
|
||||
if not images:
|
||||
images = _legacy_find_images(DEVSTACK)
|
||||
@ -190,8 +180,6 @@ def main():
|
||||
pkgs.write(" ".join(branch_data['debs']) + "\n")
|
||||
elif branch_data.get('rpms'):
|
||||
pkgs.write(" ".join(branch_data['rpms']) + "\n")
|
||||
elif branch_data.get('ebuilds'):
|
||||
pkgs.write(" ".join(branch_data['ebuilds']) + "\n")
|
||||
else:
|
||||
sys.exit('No supported package data found.')
|
||||
|
||||
|
@ -8,4 +8,3 @@ python3-dev:
|
||||
uuid-runtime:
|
||||
traceroute:
|
||||
ntpdate:
|
||||
gentoolkit:
|
||||
|
@ -2,18 +2,6 @@
|
||||
"distro": {
|
||||
"fedora": {
|
||||
"python3-dev": "python3-devel"
|
||||
},
|
||||
"gentoo": {
|
||||
"build-essential": "",
|
||||
"cron": "sys-process/cronie",
|
||||
"python-dev": "",
|
||||
"python3-dev": "",
|
||||
"openssh-server": "openssh",
|
||||
"traceroute": "net-analyzer/traceroute",
|
||||
"uuid-runtime": ""
|
||||
},
|
||||
"default": {
|
||||
"gentoolkit": ""
|
||||
}
|
||||
},
|
||||
"family": {
|
||||
|
@ -31,13 +31,8 @@ if [ -f /etc/default/grub ] ; then
|
||||
if which update-grub &> /dev/null ; then
|
||||
update-grub
|
||||
else
|
||||
if [[ $DISTRO_NAME == gentoo ]]; then
|
||||
GRUB_CFG=/boot/grub/grub.cfg
|
||||
else
|
||||
GRUB_CFG=/boot/grub2/grub.cfg
|
||||
fi
|
||||
# If update-grub isn't available, use grub2-mkconfig directly
|
||||
/usr/sbin/grub2-mkconfig -o "${GRUB_CFG}"
|
||||
/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
fi
|
||||
elif [ -f /boot/grub/grub.conf ] ; then
|
||||
sed -i -e 's/^timeout=[0-9]\+/timeout=0/' /boot/grub/grub.conf
|
||||
|
@ -39,12 +39,6 @@ case $OS_FAMILY in
|
||||
# time updating.
|
||||
update=""
|
||||
;;
|
||||
"Gentoo")
|
||||
# make a fake repo to satisfy the removal below
|
||||
touch /tmp/fakerepo
|
||||
repo=/tmp/fakerepo
|
||||
update=""
|
||||
;;
|
||||
*)
|
||||
die "Don't know how to cleanup!"
|
||||
;;
|
||||
|
@ -2,9 +2,6 @@
|
||||
"family": {
|
||||
"debian": {
|
||||
"libselinux-python": ""
|
||||
},
|
||||
"gentoo": {
|
||||
"libselinux-python": "sys-libs/libselinux"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user