From 62b153e2a2158ac9b5ea8bcca558d0b1b93bcce8555da4aa9114e5ecdba06e46 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 14 Feb 2024 17:01:15 +0000 Subject: [PATCH] Accepting request 1146618 from home:dimstar:Factory - Also fixup hasbnag of tools/profiling/ios_bin/parse_link_map.py, which was exceptionally not using env python, but directly /usr/bin/python. OBS-URL: https://build.opensuse.org/request/show/1146618 OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=186 --- grpc.changes | 7 +++++++ grpc.spec | 3 +++ 2 files changed, 10 insertions(+) diff --git a/grpc.changes b/grpc.changes index 40acf25..acaa62e 100644 --- a/grpc.changes +++ b/grpc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Feb 14 16:15:47 UTC 2024 - Dominique Leuenberger + +- Also fixup hasbnag of tools/profiling/ios_bin/parse_link_map.py, + which was exceptionally not using env python, but directly + /usr/bin/python. + ------------------------------------------------------------------- Tue Feb 13 10:18:50 UTC 2024 - Jan Engelhardt diff --git a/grpc.spec b/grpc.spec index 313d6c5..7572e1b 100644 --- a/grpc.spec +++ b/grpc.spec @@ -124,6 +124,9 @@ This subpackage contains source code of the gRPC reference implementation. %prep %autosetup -N %patch -P 1 -p1 +find "." -type f -exec grep -l '/usr/bin/python' {} + | + xargs -r perl -i -lpe \ + 's{#! ?/usr/bin/python\S*}{#!/usr/bin/python3}g;' find "." -type f -exec grep -l '/usr/bin/env ' {} + | xargs -r perl -i -lpe \ 's{#! ?/usr/bin/env python\S*}{#!/usr/bin/python3}g;