Skip to content

Commit a96e9c2

Browse files
tmzullingergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 78d553b commit a96e9c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,10 @@ dist: git.spec git-archive$(X) configure
17991799
gzip -f -9 $(GIT_TARNAME).tar
18001800

18011801
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
18031806

18041807
htmldocs = git-htmldocs-$(GIT_VERSION)
18051808
manpages = git-manpages-$(GIT_VERSION)

0 commit comments

Comments
 (0)