Commit c00e4dfa authored by anonym's avatar anonym
Browse files

Fix FTBFS with tagged 4.0~beta1 snapshot, due to gcc-6 gcc-7 libgcc-7-dev.

This is (probably?) 4843ce77 all over
again. The exact error was:

  Removing unwanted packages
  E: Unable to locate package gcc-6
  E: Unable to locate package gcc-7
  E: Unable to locate package libgcc-7-dev
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Package 'binutils-mingw-w64-i686' is not installed, so not removed
  Package 'binutils-mingw-w64-x86-64' is not installed, so not removed
  Package 'binutils-multiarch' is not installed, so not removed
  Package 'binutils-doc' is not installed, so not removed
  E: Unable to locate package gcc-6
  E: Unable to locate package gcc-7
  E: Unable to locate package libgcc-7-dev
  E: config/chroot_local-hooks/98-remove_unwanted_packages failed (exit non-zero). You should check for errors.
parent 19cefa8c
......@@ -23,13 +23,11 @@ apt-get --yes purge \
dh-autoreconf \
dpkg-dev \
fakeroot \
gcc gcc-6 \
gcc-7 \
gcc \
gcc-8 \
gdbm-l10n \
libc-dev-bin \
libc6-dev \
libgcc-7-dev \
libgcc-8-dev \
libtool \
linux-libc-dev \
......@@ -54,16 +52,33 @@ apt-get --yes purge \
xfonts-base \
xfonts-scalable
### We'll remove packages listed in this variable. It's purpose is to
### gather *several* packages we might want to remove below and purge
### then at the same time, which has less overhead than purging them
### one at a time.
packages_to_purge=""
### Remove packages that can get a different priority in the security
### archive (see https://bugs.debian.org/867668):
if is_package_installed mutt; then
apt-get --yes purge mutt
packages_to_purge="${packages_to_purge} mutt"
fi
### Hotfix for 3.14: procmail is no longer known by apt in tagged
### snapshots, likely because no longer pulled by monkeysphere:
if is_package_installed procmail; then
apt-get --yes purge procmail
packages_to_purge="${packages_to_purge} procmail"
fi
### Hotfix for 4.0~beta1: similar as for procmail, above.
for p in gcc-6 gcc-7 libgcc-7-dev; do
if is_package_installed "${p}"; then
packages_to_purge="${packages_to_purge} ${p}"
fi
done
if [ -n "${packages_to_purge}" ]; then
apt-get --yes purge "${packages_to_purge}"
fi
### Deinstall some other unwanted packages.
......
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