summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2021-06-05 11:27:55 -0400
committerTodd Zullinger <tmz@pobox.com>2021-06-06 16:15:25 -0400
commit9e4b66807c8b5e6e0660dfedcc03c6ab1f987350 (patch)
treed57d18b47139f89f2ee610554ed770341a683048
parente8a67d47c46d074d8a031e70c2cdf5875ef53197 (diff)
downloadcgit_EL6-9e4b66807c8b5e6e0660dfedcc03c6ab1f987350.tar.gz
explicitly disable expat, perl, python, and tcl/tk in git build
We don't want any of the git code which requires expat, perl, python, or tcl/tk to be built. Set the corresponding NO_* make variables. This ensures that even if git can find these tools in the buildroot, it won't use them. For example, we have perl in the buildroot because it's used in the test suite, but we don't want to build any of git's perl tools. If nothing else, this should slightly improve the build time.
-rw-r--r--cgit.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgit.spec b/cgit.spec
index 584ff83..73fceb4 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -168,6 +168,10 @@ cat << \EOF | tee git/config.mak
V = 1
CFLAGS = %{optflags}
LDFLAGS = %{?__global_ldflags}
+NO_EXPAT = 1
+NO_PERL = 1
+NO_PYTHON = 1
+NO_TCLTK = 1
EOF
# remove env shebang's from filter scripts
@@ -230,6 +234,7 @@ make test
%changelog
* Sat Jun 05 2021 Todd Zullinger <tmz@pobox.com> - 1.2.3-5
- include output of cgit.conf and git/config.mak in build logs
+- explicitly disable expat, perl, python, and tcl/tk in git build
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild