Skip to content

Commit 76b5d5d

Browse files
committed
spec: added shebang mangling
1 parent 3664191 commit 76b5d5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SPECS/bcc.spec

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ popd
8888
%install
8989
pushd build
9090
make install/strip DESTDIR=%{buildroot}
91+
# mangle shebangs
92+
find %{buildroot}/usr/share/bcc/{tools,examples} -type f -exec \
93+
sed -i -e '1 s|^#!/usr/bin/python$|#!'%{__python}'|' \
94+
-e '1 s|^#!/usr/bin/env python$|#!'%{__python}'|' {} \;
9195

9296
%package -n libbcc
9397
Summary: Shared Library for BPF Compiler Collection (BCC)

0 commit comments

Comments
 (0)