p4tutorials-turkce/vm-ubuntu-20.04/patches/mininet-dont-install-python2-2022-apr.patch
Andy Fingerhut 7e2ae40cbd
Update Mininet patch for 2022 apr (#464)
* Update the patch applied when installing Mininet

* Additional changes intended to be part of previous commit

* Specify a particular recent commit of Mininet to use
2022-04-10 01:03:55 -04:00

37 lines
1.2 KiB
Diff

diff --git a/util/install.sh b/util/install.sh
index fd584b8..5886199 100755
--- a/util/install.sh
+++ b/util/install.sh
@@ -5,6 +5,7 @@
# Fail on error
set -e
+set -x
# Fail on unset var usage
set -o nounset
@@ -175,9 +176,9 @@ function mn_deps {
else # Debian/Ubuntu
pf=pyflakes
pep8=pep8
- # Starting around 20.04, installing pyflakes instead of pyflakes3
+ # Starting around 18.04, installing pyflakes instead of pyflakes3
# causes Python 2 to be installed, which is exactly NOT what we want.
- if [ "$DIST" = "Ubuntu" -a `expr $RELEASE '>=' 20.04` = "1" ]; then
+ if [ "$DIST" = "Ubuntu" -a `expr $RELEASE '>=' 18.04` = "1" ]; then
pf=pyflakes3
fi
# Debian 11 "bullseye" renamed
@@ -189,9 +190,10 @@ function mn_deps {
fi
$install gcc make socat psmisc xterm ssh iperf telnet \
- ethtool help2man $pf pylint $pep8 \
+ ethtool help2man pylint3 \
net-tools \
${PYPKG}-pexpect ${PYPKG}-tk
+ $install --no-install-recommends $pf $pep8
# Install pip
$install ${PYPKG}-pip || $install ${PYPKG}-pip-whl
if ! ${PYTHON} -m pip -V; then