aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2009-11-11 16:59:52 -0500
committerJunio C Hamano <gitster@pobox.com>2009-11-14 15:52:39 -0800
commita96e9c286a897637e7aa84f6b10cf99c367317ce (patch)
tree61857e79c9794bf01815e972e789d54a5df94fd4
parent78d553b7d7b269bb22ebd8b1198657c37484a3a0 (diff)
downloadgit-a96e9c286a897637e7aa84f6b10cf99c367317ce.tar.gz
git-a96e9c286a897637e7aa84f6b10cf99c367317ce.tar.xz
Makefile: Ensure rpm packages can be read by older rpm versions
The kernel.org hosts where the packages are built are now using Fedora 11, which defaults to sha256 for file digests instead of md5. Older versions of rpm can not handle these packages. Tell rpmbuild to use md5 file digests for better compatibility. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fea237bc8..fd7a6c929 100644
--- a/Makefile
+++ b/Makefile
@@ -1799,7 +1799,10 @@ dist: git.spec git-archive$(X) configure
gzip -f -9 $(GIT_TARNAME).tar
rpm: dist
- $(RPMBUILD) -ta $(GIT_TARNAME).tar.gz
+ $(RPMBUILD) \
+ --define "_source_filedigest_algorithm md5" \
+ --define "_binary_filedigest_algorithm md5" \
+ -ta $(GIT_TARNAME).tar.gz
htmldocs = git-htmldocs-$(GIT_VERSION)
manpages = git-manpages-$(GIT_VERSION)