Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pahole: call python via env in the shebang #436

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 436163ab845c263312cf3d4717a43727cf5f0747 Mon Sep 17 00:00:00 2001
From: Matteo Croce <[email protected]>
Date: Wed, 15 Sep 2021 17:54:01 +0200
Subject: [PATCH] Use /usr/bin/env python3 instead of just /usr/bin/python3

Upstream-Status: inappropriate [OE specific]

---
ostra/ostra-cg | 2 +-
ostra/python/ostra.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ostra/ostra-cg b/ostra/ostra-cg
index 52c902e..8142e67 100755
--- a/ostra/ostra-cg
+++ b/ostra/ostra-cg
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# ostra-cg - generate callgraphs from encoded trace
#
# Arnaldo Carvalho de Melo <[email protected]>
diff --git a/ostra/python/ostra.py b/ostra/python/ostra.py
index 86fe079..9bb5ad1 100755
--- a/ostra/python/ostra.py
+++ b/ostra/python/ostra.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2005, 2006, 2007 Arnaldo Carvalho de Melo
#
--
2.31.1

3 changes: 2 additions & 1 deletion meta-oe/recipes-devtools/pahole/pahole_1.22.bb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux"

SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f"
SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git \
file://0001-CMakeList.txt-make-python-optional.patch"
file://0001-CMakeList.txt-make-python-optional.patch \
file://0002-Use-usr-bin-env-python3-instead-of-just-usr-bin-pyth.patch"

S = "${WORKDIR}/git"

Expand Down