Skip to content

Commit

Permalink
spec: added shebang mangling
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Jan 16, 2019
1 parent 3664191 commit 76b5d5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SPECS/bcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ popd
%install
pushd build
make install/strip DESTDIR=%{buildroot}
# mangle shebangs
find %{buildroot}/usr/share/bcc/{tools,examples} -type f -exec \
sed -i -e '1 s|^#!/usr/bin/python$|#!'%{__python}'|' \
-e '1 s|^#!/usr/bin/env python$|#!'%{__python}'|' {} \;

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

0 comments on commit 76b5d5d

Please sign in to comment.