commit f19cb140f7ad4950a86607fb2e24fbacb63ca28c
Author: Miro HronĨok <miro(a)hroncok.cz>
Date: Sun Sep 16 12:14:42 2018 +0200
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).
Signed-off-by: Akarshan Biswas <akarshan.biswas(a)protonmail.com>
chromium-freeworld.spec | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 3564391..4f75152 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.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"