From 0dd1bcfc0c54d3d06e1d1211b3271f0b34c5f7dd Mon Sep 17 00:00:00 2001 From: Sam M W Date: Tue, 8 Feb 2022 15:03:14 +0000 Subject: [PATCH 1/2] use python3 on debians too in Debian 11 which is Bullseye, /usr/bin/python is a Python2 interpreter, which means that cppcheck-htmlreport fails to run here. So I've chenged the shebang to use python3 --- htmlreport/cppcheck-htmlreport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index 32b2fc82903..b10cd3b9f00 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals From 1b0ce6ed9cd2440fcfb9022a61af9032600f44fb Mon Sep 17 00:00:00 2001 From: Sam M W Date: Fri, 11 Feb 2022 09:25:20 +0000 Subject: [PATCH 2/2] change all shebangs from python to python3 --- htmlreport/setup.py | 2 +- htmlreport/test_htmlreport.py | 2 +- test/synthetic/report.py | 2 +- tools/ci.py | 2 +- tools/extracttests.py | 2 +- tools/listErrorsWithoutCWE.py | 2 +- tools/matchcompiler.py | 2 +- tools/parse-glibc.py | 2 +- tools/reduce.py | 2 +- tools/test_matchcompiler.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/htmlreport/setup.py b/htmlreport/setup.py index e741ece55d8..ac790fbebc1 100755 --- a/htmlreport/setup.py +++ b/htmlreport/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from setuptools import setup diff --git a/htmlreport/test_htmlreport.py b/htmlreport/test_htmlreport.py index ffca77f298e..4fd6cf6c256 100755 --- a/htmlreport/test_htmlreport.py +++ b/htmlreport/test_htmlreport.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Test cppcheck-htmlreport.""" import os diff --git a/test/synthetic/report.py b/test/synthetic/report.py index e4d972102e9..17f58239f9e 100755 --- a/test/synthetic/report.py +++ b/test/synthetic/report.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import re diff --git a/tools/ci.py b/tools/ci.py index 6d2b8cfc471..27d0f871874 100644 --- a/tools/ci.py +++ b/tools/ci.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # continuous integration # build daily reports (doxygen,coverage,etc) diff --git a/tools/extracttests.py b/tools/extracttests.py index 2771314656e..42a80d6c051 100755 --- a/tools/extracttests.py +++ b/tools/extracttests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis # Copyright (C) 2007-2021 Cppcheck team. diff --git a/tools/listErrorsWithoutCWE.py b/tools/listErrorsWithoutCWE.py index 1a4c784c473..0a78ff5bd36 100755 --- a/tools/listErrorsWithoutCWE.py +++ b/tools/listErrorsWithoutCWE.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import argparse import xml.etree.ElementTree as ET diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index eb62f88e66e..2a2820879d5 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis # Copyright (C) 2007-2021 Cppcheck team. diff --git a/tools/parse-glibc.py b/tools/parse-glibc.py index cb79edec812..6120e68ca0a 100644 --- a/tools/parse-glibc.py +++ b/tools/parse-glibc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import glob import os diff --git a/tools/reduce.py b/tools/reduce.py index ed2e1732143..ddf0ee5b9ad 100755 --- a/tools/reduce.py +++ b/tools/reduce.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import subprocess import sys import time diff --git a/tools/test_matchcompiler.py b/tools/test_matchcompiler.py index 0cf3181b850..f547df74d70 100755 --- a/tools/test_matchcompiler.py +++ b/tools/test_matchcompiler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis # Copyright (C) 2007-2021 Cppcheck team.