summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2021-05-03 11:34:56 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2021-05-03 11:34:56 +0000
commit0a82479e02bab565579e4abaaec6da8127b8bdae (patch)
tree6c900d2d3a3ef3975beb4640d9c9e0a4a99a6604 /distrib
parent7bc1ae7ce108e013e9f830c919246b5aaef28ec9 (diff)
remove old gcc/g++ binaries at update time; covers the most common case
where people will run into problems on amd64 now we don't build gcc. (the gcc-lib files are already removed by bsd.rd upgrades, and gcc/g++ don't work without them).
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 36741fa9510..b9f0b400a82 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1163 2021/03/19 23:52:55 kn Exp $
+# $OpenBSD: install.sub,v 1.1164 2021/05/03 11:34:55 sthen Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -1682,6 +1682,7 @@ install_files() {
fi
if isin comp$VERSION.tgz $_get_sets; then
rm -rf /mnt/usr/lib/{gcc-lib,clang}
+ rm -rf /mnt/usr/bin/{gcc,g++}
rm -rf /mnt/usr/include/g++
fi
rm -rf /mnt/var/syspatch/*