]> git.openfabrics.org - ~emulex/ofed_scripts/.git/commitdiff
Undefine 'dist' in the rpmbuild command which can be set in some Distributions.
authorSasha Khapyorsky <sashak@voltaire.com>
Tue, 26 Feb 2008 22:17:38 +0000 (00:17 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 26 Feb 2008 22:17:38 +0000 (00:17 +0200)
Signed-off-by: Sasha Khapyorsky <sashak@voltaire.com>
install.pl

index 9cac49140222077b87306439099f6966866019b5..75b4d892f08ec5334d858d0b17abfabd39e84520 100755 (executable)
@@ -2617,6 +2617,7 @@ sub build_rpm_32
     $cmd = "$pref_env32 rpmbuild --rebuild --define '_topdir $TOPDIR'";
     $cmd .= " --target $target_cpu32";
     $cmd .= " --define '_prefix $prefix'";
+    $cmd .= " --define 'dist '";
     $cmd .= " --define '_exec_prefix $prefix'";
     $cmd .= " --define '_sysconfdir $sysconfdir'";
     $cmd .= " --define '_usr $prefix'";
@@ -2757,6 +2758,7 @@ sub build_rpm
         }
 
         $cmd = "$pref_env rpmbuild --rebuild --define '_topdir $TOPDIR'";
+        $cmd .= " --define 'dist '";
         $cmd .= " --target $target_cpu";
 
         # Prefix should be defined per package