From a913b5cdd206870f555737823567cd4f501d65b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 16 Sep 2018 12:14:42 +0200 Subject: [PATCH] Also fix shebangs with spaces pyproto/google/protobuf/internal/_parameterized.py has this shebang: #! /usr/bin/env python That was not covered by the sed and ended up with brp-mangle-shebang warnings (soon to be errors). --- chromium.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 19c30b5e..c7003a4a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -814,10 +814,9 @@ udev. %patch111 -p1 -b .wvhack %patch112 -p1 -b .sanebuild - # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works -find -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} + +find -type f -exec sed -iE '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} + %if 0%{?asan} export CC="clang"