@@ -42,3 +42,23 @@
# Copyright (C) 2011-2019 Eaton
# Authors: Frederic Bohe <FredericBohe@Eaton.com>
# Arnaud Quette <ArnaudQuette@Eaton.com>
+--- tools/Makefile.am.orig 2020-06-24 23:39:09.103001606 +0200
++++ tools/Makefile.am 2020-06-24 23:39:22.971001606 +0200
+@@ -40,7 +40,7 @@
+ nut-scanner-deps-usb: $(GENERATED_USB_FILES)
+
+ $(GENERATED_SNMP_FILES): $(top_srcdir)/drivers/*-mib.c
+- @if python -c 1; then \
++ @if python3 -c 1; then \
+ echo "Regenerating the SNMP helper files in SRC dir."; \
+ TOP_SRCDIR="$(top_srcdir)" ; export TOP_SRCDIR; \
+ TOP_BUILDDIR="$(top_builddir)" ; export TOP_BUILDDIR; \
+@@ -73,7 +73,7 @@
+ # so it may write the files in "dist" case (read-only sources), but the script
+ # is called from the distdir where its copy is present.
+ dist-hook:
+- @if python -c 1; then \
++ @if python3 -c 1; then \
+ echo "Regenerating the SNMP helper files in DIST dir."; \
+ TOP_SRCDIR="$(top_srcdir)" ; export TOP_SRCDIR; \
+ TOP_BUILDDIR="$(top_builddir)" ; export TOP_BUILDDIR; \
|