summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-07-24 14:10:41 +0200
committerJan Holesovsky <kendy@suse.cz>2012-07-24 14:12:16 +0200
commit8251cd1936af5047c817adf88333fef31031c506 (patch)
tree650583b20c87767c9b7dfbc7adaaa01b957e0b12 /solenv/bin
parentb265709fbf9ff9f03645cbcbbc441699402c73a8 (diff)
Call uuidgen without -n when cross-compiling.
Change-Id: I533c9bcdbadcaf5caa5aa8bcefb6dc0c141a4d0e
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/modules/installer/windows/msiglobal.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/solenv/bin/modules/installer/windows/msiglobal.pm b/solenv/bin/modules/installer/windows/msiglobal.pm
index d4b626d28064..93cc78c8cbfe 100644
--- a/solenv/bin/modules/installer/windows/msiglobal.pm
+++ b/solenv/bin/modules/installer/windows/msiglobal.pm
@@ -1272,6 +1272,11 @@ sub get_guid_list
# "-c" for uppercase output
my $systemcall = "$uuidgen -n$number |";
+ if ( $ENV{'CROSS_COMPILING'} eq 'YES' )
+ {
+ # -n is not present in the non-windows uuidgen
+ $systemcall = "for I in `seq 1 $number` ; do uuidgen ; done |";
+ }
open (UUIDGEN, "$systemcall" ) or die("uuidgen is missing.");
my @uuidlist = <UUIDGEN>;
close (UUIDGEN);