summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-06-04 17:28:26 -0400
committerTodd Zullinger <tmz@pobox.com>2018-06-16 22:36:05 -0400
commit25692dc69438b6c957d7b50889300dddc9cbfe2b (patch)
tree46f744113599fb85d2dae6f897662357371cc497
parente75beaad966916ee23cb00fe38736a36f36626e7 (diff)
downloadcgit_EL6-25692dc69438b6c957d7b50889300dddc9cbfe2b.tar.gz
remove env shebang's from filter scripts
This fixes the generated dependencies, pulling in python3. The filters are not strictly required and perhaps should be split into a subpackage or installed as example scripts.
-rw-r--r--cgit.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgit.spec b/cgit.spec
index 8210a44..a3f027b 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -91,6 +91,9 @@ CFLAGS = %{optflags}
LDFLAGS = %{?__global_ldflags}
EOF
+# remove env shebang's from filter scripts
+grep -rl '#!.*/env' filters/ | xargs -r sed -Ei 's@^(.+/)env (.+)$@\1\2@'
+
# I tried to use matchpathcon, but we would need to require
# selinux-policy-targeted probably.
@@ -154,6 +157,7 @@ install -d -m0755 %{buildroot}%{cachedir}
%changelog
* Mon Jun 04 2018 Todd Zullinger <tmz@pobox.com>
- make config: drop redundant DESTDIR/INSTALL, add COPYTREE
+- remove env shebang's from filter scripts
* Sun Feb 18 2018 Todd Zullinger <tmz@pobox.com> - 1.1-10
- Use https for source URLs