From 2ff2108b106f30e5a7be9b806cdd4c67e9e4940eb7c9ece45ef4ab38e3039529 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 30 Jan 2024 00:22:07 +0000 Subject: [PATCH] stronger /env replacement OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=178 --- grpc.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grpc.spec b/grpc.spec index 66cf4a5..b78efc3 100644 --- a/grpc.spec +++ b/grpc.spec @@ -126,14 +126,17 @@ This subpackage contains source code of the gRPC reference implementation. %prep %autosetup -N +find "." -type f -exec grep -l '/usr/bin/env' {} + | \ + xargs -r perl -i -lpe 's{#! ?/usr/bin/env python\S+}{#!/usr/bin/python3}g' +find "." -type f -exec grep -l '/usr/bin/env ' {} + | \ + xargs -r perl -i -lpe 's{#! ?/usr/bin/env }{#!/usr/bin/}g' pushd third_party/xxhash %patch1 -p1 %patch2 -p1 popd rm -Rf third_party/abseil-cpp/ -find . -type f -exec grep -l '#!/usr/bin/env py' | \ - xargs perl -i -lpe 's{#!/usr/bin/env py\w+}{#!/usr/bin/python3}g' +%build # protoc is invoked strangely; make it happy with this dir or it will assert() mkdir -p third_party/protobuf/src