@matheusbsbs / matheus-bagliano / commits / a96e9c286a
Fork 0

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>

Todd Zullinger committed Nov 11, 2009 at 16:59 UTC a96e9c286a897637e7aa84f6b10cf99c367317ce
1 file changed +4 -1
Makefile
+4 -1
@@ -1799,7 +1799,10 @@ dist: git.spec git-archive$(X) configure
1799 gzip -f -9 $(GIT_TARNAME).tar
1800
1801 rpm: dist
1802 - $(RPMBUILD) -ta $(GIT_TARNAME).tar.gz
1802 + $(RPMBUILD) \
1803 + --define "_source_filedigest_algorithm md5" \
1804 + --define "_binary_filedigest_algorithm md5" \
1805 + -ta $(GIT_TARNAME).tar.gz
1806
1807 htmldocs = git-htmldocs-$(GIT_VERSION)
1808 manpages = git-manpages-$(GIT_VERSION)