File opae-missing-shebang.patch of Package opae
commit 39bd9b6d4c209d0dadb8211822e750a74b98f46b
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Date: Fri Apr 17 10:00:07 2020 +0200
opae missing shebang
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
diff --git buildit.py buildit.py
index 5f1c68ca892c..f9ac7d9484e7 100755
--- buildit.py
+++ buildit.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git opae-libs/cmake/modules/OPAEPackaging.cmake opae-libs/cmake/modules/OPAEPackaging.cmake
index 4f0b458dacb3..dab3e6af2591 100644
--- opae-libs/cmake/modules/OPAEPackaging.cmake
+++ opae-libs/cmake/modules/OPAEPackaging.cmake
@@ -129,7 +129,7 @@ macro(CREATE_PYTHON_EXE EXE_NAME MAIN_MODULE)
"\n"
"# Write to a buffer so that the shebang can be prepended easily\n"
"wr_buf = BytesIO()\n"
- "wr_buf.write('#!/usr/bin/env python3{}'.format(os.linesep).encode())\n"
+ "wr_buf.write('#!/usr/bin/python3{}'.format(os.linesep).encode())\n"
"\n"
"z = zipfile.PyZipFile(wr_buf, 'w')\n")
diff --git packaging/changelog.py packaging/changelog.py
index a98177131a14..d6f384714972 100755
--- packaging/changelog.py
+++ packaging/changelog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git platforms/scripts/afu_platform_config platforms/scripts/afu_platform_config
index ca8f0a334c7b..8ea9afaa5132 100755
--- platforms/scripts/afu_platform_config
+++ platforms/scripts/afu_platform_config
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright (c) 2017, Intel Corporation
diff --git platforms/scripts/afu_platform_info platforms/scripts/afu_platform_info
index 50f9de0a96a3..54ce277e143c 100755
--- platforms/scripts/afu_platform_info
+++ platforms/scripts/afu_platform_info
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright (c) 2018, Intel Corporation
diff --git platforms/scripts/afu_synth_setup platforms/scripts/afu_synth_setup
index a9d3b8508397..4d5f99384a89 100755
--- platforms/scripts/afu_synth_setup
+++ platforms/scripts/afu_synth_setup
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2013-2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git platforms/scripts/rtl_src_config platforms/scripts/rtl_src_config
index dfed25387d7e..97bc02422901 100755
--- platforms/scripts/rtl_src_config
+++ platforms/scripts/rtl_src_config
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Consume a file with a list of source files, include paths and preprocessor
diff --git python/opae.admin/debian/deb-changelog.py python/opae.admin/debian/deb-changelog.py
index 5eab4e4aa988..36fd062c30c8 100755
--- python/opae.admin/debian/deb-changelog.py
+++ python/opae.admin/debian/deb-changelog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
from __future__ import absolute_import
import argparse
diff --git python/opae.admin/opae/admin/tools/bitstream_info.py python/opae.admin/opae/admin/tools/bitstream_info.py
index 23d08bae0628..d7a120d05d1a 100644
--- python/opae.admin/opae/admin/tools/bitstream_info.py
+++ python/opae.admin/opae/admin/tools/bitstream_info.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/fpgaflash.py python/opae.admin/opae/admin/tools/fpgaflash.py
index 84fa52decfbc..8fa43f9da4b0 100755
--- python/opae.admin/opae/admin/tools/fpgaflash.py
+++ python/opae.admin/opae/admin/tools/fpgaflash.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/fpgaotsu.py python/opae.admin/opae/admin/tools/fpgaotsu.py
index d2bba06dfa54..ba375a2c3038 100755
--- python/opae.admin/opae/admin/tools/fpgaotsu.py
+++ python/opae.admin/opae/admin/tools/fpgaotsu.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/fpgaport.py python/opae.admin/opae/admin/tools/fpgaport.py
index 8c02daf66d68..bf124518f9df 100644
--- python/opae.admin/opae/admin/tools/fpgaport.py
+++ python/opae.admin/opae/admin/tools/fpgaport.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/fpgasupdate.py python/opae.admin/opae/admin/tools/fpgasupdate.py
index 9ebe46ef337e..0549a0fb43cf 100755
--- python/opae.admin/opae/admin/tools/fpgasupdate.py
+++ python/opae.admin/opae/admin/tools/fpgasupdate.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019-2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/ihex2ipmi.py python/opae.admin/opae/admin/tools/ihex2ipmi.py
index 032e31e355d3..d4d05e6d2553 100644
--- python/opae.admin/opae/admin/tools/ihex2ipmi.py
+++ python/opae.admin/opae/admin/tools/ihex2ipmi.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/rsu.py python/opae.admin/opae/admin/tools/rsu.py
index acf509bdc83b..bcd1a46f4b3f 100644
--- python/opae.admin/opae/admin/tools/rsu.py
+++ python/opae.admin/opae/admin/tools/rsu.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2019-2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git python/opae.admin/opae/admin/tools/super_rsu.py python/opae.admin/opae/admin/tools/super_rsu.py
index 045fa2e0d32d..b73ba7861b10 100755
--- python/opae.admin/opae/admin/tools/super_rsu.py
+++ python/opae.admin/opae/admin/tools/super_rsu.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019-2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git scripts/index_generator.py scripts/index_generator.py
index 362b78095cc2..a612610afb26 100644
--- scripts/index_generator.py
+++ scripts/index_generator.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
diff --git tools/extra/fpgabist/bist_app.py tools/extra/fpgabist/bist_app.py
index 9bc1b3a4c4dd..6976a2079246 100644
--- tools/extra/fpgabist/bist_app.py
+++ tools/extra/fpgabist/bist_app.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgabist/bist_common.py tools/extra/fpgabist/bist_common.py
index eb81c42781dc..43d38658e8f6 100644
--- tools/extra/fpgabist/bist_common.py
+++ tools/extra/fpgabist/bist_common.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgabist/bist_def.py tools/extra/fpgabist/bist_def.py
index f64c5c401239..f07b8c184d75 100644
--- tools/extra/fpgabist/bist_def.py
+++ tools/extra/fpgabist/bist_def.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgabist/bist_dma.py tools/extra/fpgabist/bist_dma.py
index d0d8550dec90..28921473bc61 100644
--- tools/extra/fpgabist/bist_dma.py
+++ tools/extra/fpgabist/bist_dma.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgabist/bist_nlb0.py tools/extra/fpgabist/bist_nlb0.py
index 86f99db47b89..dac00f81788d 100644
--- tools/extra/fpgabist/bist_nlb0.py
+++ tools/extra/fpgabist/bist_nlb0.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2018, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgabist/bist_nlb3.py tools/extra/fpgabist/bist_nlb3.py
index 25f049f23d69..4e0cffc264df 100644
--- tools/extra/fpgabist/bist_nlb3.py
+++ tools/extra/fpgabist/bist_nlb3.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgabist/fpgabist tools/extra/fpgabist/fpgabist
index b4ae02c56479..4152ca2241bb 100755
--- tools/extra/fpgabist/fpgabist
+++ tools/extra/fpgabist/fpgabist
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/common.py tools/extra/fpgadiag/common.py
index bdf1f4b6eb59..c0bf3b4f17b1 100755
--- tools/extra/fpgadiag/common.py
+++ tools/extra/fpgadiag/common.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2018-2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/fecmode.py tools/extra/fpgadiag/fecmode.py
index e028f98e6c86..6a5abdbccddb 100644
--- tools/extra/fpgadiag/fecmode.py
+++ tools/extra/fpgadiag/fecmode.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/fpgadiag tools/extra/fpgadiag/fpgadiag
index 91a0958299fc..d7b5cc92b767 100755
--- tools/extra/fpgadiag/fpgadiag
+++ tools/extra/fpgadiag/fpgadiag
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2017-2020 Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/fpgalpbk.py tools/extra/fpgadiag/fpgalpbk.py
index f0dc25b5bc1b..e32a319105b8 100755
--- tools/extra/fpgadiag/fpgalpbk.py
+++ tools/extra/fpgadiag/fpgalpbk.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/fpgamac.py tools/extra/fpgadiag/fpgamac.py
index bbd02e1f4882..b659945d3767 100644
--- tools/extra/fpgadiag/fpgamac.py
+++ tools/extra/fpgadiag/fpgamac.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/fpgastats.py tools/extra/fpgadiag/fpgastats.py
index 3218cda71655..eae124e8f1ab 100755
--- tools/extra/fpgadiag/fpgastats.py
+++ tools/extra/fpgadiag/fpgastats.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
# Copyright(c) 2018-2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/fvlbypass.py tools/extra/fpgadiag/fvlbypass.py
index cad74fea31fd..bb4b457f7f0a 100644
--- tools/extra/fpgadiag/fvlbypass.py
+++ tools/extra/fpgadiag/fvlbypass.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2019, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/mactest.py tools/extra/fpgadiag/mactest.py
index 15d7bff31105..b705d224eacf 100755
--- tools/extra/fpgadiag/mactest.py
+++ tools/extra/fpgadiag/mactest.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /usr/bin/python3
# Copyright(c) 2020, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/fpgadiag/mux.py tools/extra/fpgadiag/mux.py
index 2059954e7522..edb82674f5cb 100644
--- tools/extra/fpgadiag/mux.py
+++ tools/extra/fpgadiag/mux.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/pac_hssi_config/pac_hssi_config.py tools/extra/pac_hssi_config/pac_hssi_config.py
index 56bc40dfee47..5884bc6dcecd 100755
--- tools/extra/pac_hssi_config/pac_hssi_config.py
+++ tools/extra/pac_hssi_config/pac_hssi_config.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#!/usr/bin/python3
# Copyright(c) 2018, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/packager/afu_json_mgr.py tools/extra/packager/afu_json_mgr.py
index a6fc98730f2f..50987b7598f9 100755
--- tools/extra/packager/afu_json_mgr.py
+++ tools/extra/packager/afu_json_mgr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/extra/packager/jsonschema-2.3.0/json/bin/jsonschema_suite tools/extra/packager/jsonschema-2.3.0/json/bin/jsonschema_suite
index 96108c86ba25..91592830263e 100755
--- tools/extra/packager/jsonschema-2.3.0/json/bin/jsonschema_suite
+++ tools/extra/packager/jsonschema-2.3.0/json/bin/jsonschema_suite
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
from __future__ import print_function
import sys
import textwrap
diff --git tools/extra/packager/packager.py tools/extra/packager/packager.py
index f1edf9ac4b2c..fd1ce183d6ae 100755
--- tools/extra/packager/packager.py
+++ tools/extra/packager/packager.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# Copyright(c) 2017, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
diff --git tools/utilities/vc_image_convert/extract_fpga_image.py tools/utilities/vc_image_convert/extract_fpga_image.py
index 17fd0eee55aa..b4f91372a900 100644
--- tools/utilities/vc_image_convert/extract_fpga_image.py
+++ tools/utilities/vc_image_convert/extract_fpga_image.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
""" Extrats section for use in fpgaflash that contains:
0x010000 to 0x01FFFF : pfl option_bits
0x020000 to 0x0381FFFF : S10 factory image page0
diff --git tools/utilities/vc_image_convert/merge_device_table.py tools/utilities/vc_image_convert/merge_device_table.py
index 3303b8667ef9..e3215f85b7d0 100644
--- tools/utilities/vc_image_convert/merge_device_table.py
+++ tools/utilities/vc_image_convert/merge_device_table.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
""" splice in max10 device table info at 0x3820000
0x03820000 to 0x03ffffff : Max10 device table range
diff --git tools/utilities/vc_image_convert/reverse.py tools/utilities/vc_image_convert/reverse.py
index 5ae6e61a167e..02ece0a479f1 100644
--- tools/utilities/vc_image_convert/reverse.py
+++ tools/utilities/vc_image_convert/reverse.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
from __future__ import absolute_import
import argparse
diff --git tools/utilities/vc_rot_convert/extract_rot_image.py tools/utilities/vc_rot_convert/extract_rot_image.py
index 5fea16c73a19..7af21c4daef5 100644
--- tools/utilities/vc_rot_convert/extract_rot_image.py
+++ tools/utilities/vc_rot_convert/extract_rot_image.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
from __future__ import absolute_import
import argparse