From 4843ce7780a89c9c1704cca5150337cc5a280e1e Mon Sep 17 00:00:00 2001 From: Cyril Brulebois <ckb@riseup.net> Date: Mon, 20 May 2019 18:44:57 +0200 Subject: [PATCH] Fix FTBFS with tagged 3.14 snapshots, due to procmail. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit procmail is listed with packages said to be “Priority: standard” but it's only “Priority: optional” in stretch. With monkeysphere going away (in 2cee79492549867921a81ec4ab7066d73ef54bee), this package is no longer pull and no longer visible in tagged snapshots, which leads to this FTBFS: E: Unable to locate package procmail E: config/chroot_local-hooks/98-remove_unwanted_packages failed (exit non-zero). You should check for errors. Hotfix for 3.14: switch to mutt-style removal, and trigger a purge for procmail only if it's (known and) installed. --- config/chroot_local-hooks/98-remove_unwanted_packages | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/chroot_local-hooks/98-remove_unwanted_packages b/config/chroot_local-hooks/98-remove_unwanted_packages index eef6dc2016..ce4d161c21 100755 --- a/config/chroot_local-hooks/98-remove_unwanted_packages +++ b/config/chroot_local-hooks/98-remove_unwanted_packages @@ -39,7 +39,6 @@ apt-get --yes purge \ mlocate \ ncurses-term \ nfs-common \ - procmail \ python3-reportbug \ reportbug \ telnet \ @@ -60,6 +59,12 @@ if is_package_installed mutt; then apt-get --yes 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 +fi + ### Deinstall some other unwanted packages. apt-get --yes purge \ '^aptitude*' \ -- GitLab