Skip to content

Commit

Permalink
remove old gcc/g++ binaries at update time; covers the most common case
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
sthen committed May 3, 2021
1 parent 3af6c1e commit 3e0010d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distrib/miniroot/install.sub
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -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/*
Expand Down

0 comments on commit 3e0010d

Please sign in to comment.