]> git.openfabrics.org - ~aditr/build.git/commitdiff
build.pl: added md5 flags to the rpmbuild command
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 31 Mar 2014 12:24:09 +0000 (15:24 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 31 Mar 2014 12:24:09 +0000 (15:24 +0300)
So that the source rpms can be rebuilt on all OSes

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
build.pl

index 0664bbb814dcbcaa68e9b6423a1cc8d40531d37f..6b80789a061a8fd2910ae9f2551ac98d8425cc9a 100755 (executable)
--- a/build.pl
+++ b/build.pl
@@ -521,7 +521,7 @@ sub get_srpm
                exit 1;
        }
 
-       $cmd = "rpmbuild -ts --nodeps --define '_topdir $TOPDIR' --define 'dist %{nil}' ";
+       $cmd = "rpmbuild -ts --nodeps --define '_topdir $TOPDIR' --define 'dist %{nil}' --define '_source_filedigest_algorithm md5' --define '_binary_filedigest_algorithm md5' ";
 
        if ($name =~ /mft/) {
                $cmd .= " --define 'KVERSION 0'";