Ticket #6546: win32pkg.3.patch
File win32pkg.3.patch, 5.6 KB (added by , 16 years ago) |
---|
-
win32-packager.pl
335 335 [ file => $mingw."bin/gcc.exe", 336 336 exec => $installMinGW, 337 337 comment => 'unable to find a gcc.exe where expected, '. 338 'rerunning MinGW installer!' ] ,338 'rerunning MinGW installer!' ]; 339 339 340 # sanity check - building 0.21 with mingwrt != 3.14 is guaranteed FAIL 341 if ($version == '0.21') { 342 push @{$expect}, 343 [grep => ['runtime=mingw-runtime-3.14.tar.gz',$mingw.'installed.ini'], 344 Died_Because_Wrong_MinGW_Version => 'Intentional script failure', 345 comment => $version.' must be built with (old) MinGW runtime 3.14. '. 346 '"Current" MinGW releases will NOT work. If the script '. 347 'dies here, uninstall MinGW and next time, choose the '. 348 '"Previous" MinGW package in the Automated Installer.']; 349 } 350 351 push @{$expect}, 352 340 353 [ archive => $sources.'MSYS-1.0.10.exe', 341 354 'fetch' => 'http://'.$sourceforge.'/sourceforge/mingw/MSYS-1.0.10.exe', 342 355 comment => 'Get the MSYS and addons:' ] , … … 478 491 # mysql-essential-5.1.30-win32.msi/from/http://mysql.mirrors.ilisys.com.au/ 479 492 # alternate: http://mysql.mirrors.ilisys.com.au/Downloads/MySQL-5.1/ 480 493 # mysql-essential-5.1.30-win32.msi 481 [ archive => $sources.'mysql-essential-5.1.3 1-win32.msi',494 [ archive => $sources.'mysql-essential-5.1.34-win32.msi', 482 495 'fetch' => 'http://mysql.mirrors.ilisys.com.au/Downloads/'. 483 'MySQL-5.1/mysql-essential-5.1.3 1-win32.msi',496 'MySQL-5.1/mysql-essential-5.1.34-win32.msi', 484 497 comment => 'fetch mysql binaries - this is a big download(35MB) '. 485 498 'so it might take a while' ], 486 499 [ file => "c:/Program Files/MySQL/MySQL Server 5.1/bin/libmySQL.dll", 487 exec => $dossources.'mysql-essential-5.1.3 1-win32.msi INSTALLLEVEL=2',500 exec => $dossources.'mysql-essential-5.1.34-win32.msi INSTALLLEVEL=2', 488 501 comment => 'Install mysql - be sure to choose to do a "COMPLETE" install. '. 489 502 'You should also choose NOT to "configure the server now" ' ], 490 503 … … 574 587 575 588 #[ pause => 'check patch.... press [enter] to continue !'], 576 589 577 # apply stdlib.h patch 578 [ file => $mingw.'include/stdlib_h.patch',579 write => [$mingw.'include/stdlib_h.patch',580 '--- include/stdlib.h.org Thu Dec 4 11:11:40 2008581 +++ include/stdlib.h Thu Dec 4 11:12:46 2008582 @@ -314,7 +314,7 @@583 #else584 static585 #endif /* Not __cplusplus */586 -inline double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr)587 +__inline__ double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr)588 { return __strtod(__nptr, __endptr); }589 float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__);590 long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__);591 ' ],comment => 'write the patch for the the stdlib.h file'],592 # apply it!?593 [ grep => ['__inline__ double __cdecl __MINGW_NOTHROW strtod',$mingw.'include/stdlib.h'],594 shell => ["cd /mingw/include","patch -p1 < stdlib_h.patch"],595 comment => 'Apply stdlib.h patch file, if not already applied....' ],590 # apply stdlib.h patch - no longer needed as of MinGW runtime 3.15.2 591 #[ file => $mingw.'include/stdlib_h.patch', 592 # write => [$mingw.'include/stdlib_h.patch', 593 #'--- include/stdlib.h.org Thu Dec 4 11:11:40 2008 594 #+++ include/stdlib.h Thu Dec 4 11:12:46 2008 595 #@@ -314,7 +314,7 @@ 596 # #else 597 # static 598 # #endif /* Not __cplusplus */ 599 #-inline double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) 600 #+__inline__ double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr) 601 # { return __strtod(__nptr, __endptr); } 602 # float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char ** __restrict__); 603 # long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__, char ** __restrict__); 604 #' ],comment => 'write the patch for the the stdlib.h file'], 605 ## apply it!? 606 #[ grep => ['__inline__ double __cdecl __MINGW_NOTHROW',$mingw.'include/stdlib.h'], 607 # shell => ["cd /mingw/include","patch -p1 < stdlib_h.patch"], 608 # comment => 'Apply stdlib.h patch file, if not already applied....' ], 596 609 597 610 #[ pause => 'check patch.... press [enter] to continue !'], 598 611 … … 640 653 write => [$mingw.'include/sched_h.patch', 641 654 "--- include/sched.h.org Thu Dec 4 12:00:16 2008 642 655 +++ include/sched.h Wed Dec 3 13:42:54 2008 643 @@ -124,8 +124,1 6@@656 @@ -124,8 +124,17 @@ 644 657 typedef int pid_t; 645 658 #endif 646 659 … … 650 663 +/* Define to `int' if <sys/types.h> does not define. */ 651 664 +/* GCC 4.x reportedly defines pid_t. */ 652 665 +#ifndef _PID_T_ 666 +#define _PID_T_ 653 667 +#define pid_t int 654 668 +#endif 655 669 +#endif … … 1836 1850 mkdir '.$unixmythtv.'/build/bin/sqldrivers 1837 1851 echo Copying QT plugin required dlls.... 1838 1852 cp '.$unixmsys.'qt-3.3.x-p8/plugins/sqldrivers/libqsqlmysql.dll '.$unixmythtv.'build/bin/sqldrivers 1839 cp '.$unixmsys.'qt-win-opensource-src-4.4.3/plugins/sqldrivers/qsqlmysql4.dll '.$unixmythtv.'build/bin/sqldrivers 1853 cp '.$unixmsys.'qt-win-opensource-src-4.4.3/plugins/sqldrivers/*.dll '.$unixmythtv.'build/bin/sqldrivers 1854 cp '.$unixmsys.'qt-win-opensource-src-4.4.3/plugins/codecs/*.a '.$unixmythtv.'build/lib/ 1855 cp '.$unixmsys.'qt-win-opensource-src-4.4.3/plugins/codecs/*.dll '.$unixmythtv.'build/bin/ 1840 1856 echo Copying ming and msys dlls to build folder..... 1841 1857 # pthread dlls and mingwm10.dll are copied from here: 1842 1858 cp /mingw/bin/*.dll '.$unixmythtv.'build/bin