Ticket #8838: win32-packager-depfixes.diff
File win32-packager-depfixes.diff, 3.3 KB (added by , 14 years ago) |
---|
-
win32-packager.pl
old new 254 254 # stop the run, useful for script debugging [stop] 255 255 # pause the run, await a enter [pause] 256 256 # always execute the action (try to minimise the use of this!) [always] 257 # execute a shell command and perform an action based on the result [shell] 257 258 258 259 #build actions (events) are: 259 260 # fetch a file from the web (to a location) [fetch] … … 373 374 [ file => $mingw.'/bin/reimp.exe', 374 375 extract => [$sources.'mingw-utils-0.3.tar', $mingw], 375 376 comment => 'Now we can finish all the mingw and msys addons:' ], 376 [ file => $mingw.'/share/info/binutils.info',377 [ shell => 'ld --version | grep -qw "2.20"', 377 378 extract => [$sources.'binutils-2.20-1-mingw32-bin.tar', $mingw] ], 378 379 [ grep => ['__MINGW32_VERSION 3.17', $mingw.'include/_mingw.h'], 379 380 extract => [$sources.'mingwrt-3.17-mingw32-dev.tar', $mingw] ], … … 381 382 extract => [$sources.'mingwrt-3.17-mingw32-dll.tar', $mingw] ], 382 383 [ dir => $sources.'coreutils-5.97', 383 384 extract => [$sources.'coreutils-5.97-MSYS-1.0.11-snapshot.tar'] ], 384 [ file => $msys.'bin/pr.exe',385 [ shell => 'pr --version | grep -qw "5.97"', 385 386 shell => ["cd ".$unixsources."coreutils-5.97","cp -r * / "] ], 386 [ file => $msys.'bin/mktemp.exe',387 [ shell => 'mktemp -V | grep -qw "1.5"', 387 388 extract => [$sources.'mktemp-1.5-MSYS.tar', $msys] ], 388 [ always => ['No unique file to check'],389 [ shell => 'patch --version | grep -qw "2.5.9"', 389 390 extract => [$sources.'patch-2.5.9-1-msys-1.0.11-bin.tar', $msys] ], 390 [ always => ['Make sure we overwrite old msys-z lib files'],391 [ grep => ['version 1.2.3,', $msys.'include/zlib.h'], 391 392 extract => [$sources.'libz-1.2.3-1-mingw32-dev.tar', $msys] ], 392 [ file => $msys.'bin/libz-1.dll',393 [ grep => ['1.2.3', $msys.'bin/libz-1.dll'], 393 394 extract => [$sources.'libz-1.2.3-1-mingw32-dll-1.tar', $msys] ], 394 395 395 396 [ dir => $msys."lib" , mkdirs => $msys.'lib' ], … … 1841 1842 } elsif ( $causetype eq 'pause' ){ 1842 1843 comment("PAUSED! : ".$cause); 1843 1844 my $temp = getc() unless $continuous; 1844 } else { 1845 } elsif ( $causetype eq 'shell' ) { 1846 print "Executing '$cause[0]'...\n" if $NOISY >0; 1847 if ( system_shell($cause[0] ) ) { 1848 effect($effecttype,@nocheckeffectparams); 1849 } else 1850 { 1851 print "shell command: $cause[0] succeeded, no action required\n" ; 1852 } 1853 } else { 1845 1854 die " unknown causetype $causetype \n"; 1846 1855 } 1847 1856 } … … 2089 2098 } 2090 2099 2091 2100 #------------------------------------------------------------------------------ 2101 # like shell() above, this function executes a sequence of commands in a 2102 # bash shell. It uses the system() 2103 # function to run the command so that we can accurately capture 2104 # exit status 2105 sub system_shell { 2106 my @cmds = @_; 2107 my $cmd = $dosmsys.'bin\bash.exe -c "( export PATH=/bin:/mingw/bin:$PATH;'. 2108 join(';',@cmds).') 2>&1 "'; 2109 print "system_shell:$cmd\n"; 2110 return(system($cmd)) ; 2111 } 2112 2113 #------------------------------------------------------------------------------ 2092 2114 # recursively make folders, requires perl-compatible folder separators 2093 2115 # (ie forward slashes) 2094 2116 #