Ticket #4397: win32-packager.21.patch

File win32-packager.21.patch, 7.0 KB (added by David Bussenschutt (aka buzz) <davidbuzz@…>, 12 years ago)

v21 - superceeds all previous vers. patch against current file at: http://svn.mythtv.org/svn/trunk/mythtv/contrib/Win32/win32-packager.pl

  • win32-packager.pl

    old new  
    88### originally based loosely on osx-packager.pl, but now is its own beast.
    99###
    1010### =revision
    11 ### $Id: win32-packager.pl 15971 2008-02-13 02:04:09Z nigel $
     11### $Id$
    1212###
    1313### =author
    1414### David Bussenschutt
     
    2525$| = 1; # autoflush stdout;
    2626
    2727# this scipt was last tested to work with this version, on other versions YMMV.
    28 #my $SVNRELEASE = '15528'; #builds and runs with 3x patches commented out below
    29 #my $SVNRELEASE = '15586'; # builds and runs without patches except backend.gz
    30 my $SVNRELEASE = '15699'; # latest build that seemed to run without any additional patches, YMMV.
     28my $SVNRELEASE = '16167'; # latest build that has been confirmed to run , but  seems to need 4 patches:
     29#4724 http://svn.mythtv.org/trac/raw-attachment/ticket/4724/win32_storeconnection.patch
     30#4706 http://svn.mythtv.org/trac/raw-attachment/ticket/4706/mythsocket_win32_events.patch
     31#4699 http://svn.mythtv.org/trac/raw-attachment/ticket/4699/win32_fs.patch
     32#4702 http://svn.mythtv.org/trac/raw-attachment/ticket/4702/mingw.patch
     33
    3134#my $SVNRELEASE = 'HEAD' ;# if you are game, go forth and test the latest release!
    3235
    3336# We allow SourceForge to tell us which server to download from,
     
    479482[ filesame => [$mythtv.'mythtv\svn_info.txt',$mythtv.'mythtv\svn_info.new'], shell => ['touch -r '.$unixmythtv.'mythtv/svn_info.txt '.$unixmythtv.'mythtv/svn_info.new'], comment => 'match the datetime of these files, so that the contents only can be compared next' ],
    480483
    481484# is svn num (ie file contents) changed since last run, if so, do a 'make clean' (overkill, I know, but safer)!
    482 [ filesame => [$mythtv.'mythtv\svn_info.txt',$mythtv.'mythtv\svn_info.new'], shell => ['touch '.$unixmythtv.'mythtv/last_build.txt','cat '.$unixmythtv.'mythtv/svn_info.new >'.$unixmythtv.'mythtv/svn_info.txt','touch -r '.$unixmythtv.'mythtv/svn_info.txt '.$unixmythtv.'mythtv/svn_info.new'], comment => 'if the SVN number is changed, then remember that, AND arrange for a full re-make of mythtv. (overkill, I know, but safer)' ],
     485[ filesame => [$mythtv.'mythtv\svn_info.txt',$mythtv.'mythtv\svn_info.new'], shell => ['rm -f '.$unixmythtv.'delete_to_do_make_clean.txt','touch '.$unixmythtv.'mythtv/last_build.txt','cat '.$unixmythtv.'mythtv/svn_info.new >'.$unixmythtv.'mythtv/svn_info.txt','touch -r '.$unixmythtv.'mythtv/svn_info.txt '.$unixmythtv.'mythtv/svn_info.new'], comment => 'if the SVN number is changed, then remember that, AND arrange for a full re-make of mythtv. (overkill, I know, but safer)' ],
    483486
    484487# apply any outstanding win32 patches - this section will be hard to keep upwith HEAD/SVN:
    485488
     
    507510#[ filesame => [$mythtv.'mythtv/15541_undo.patch',$sources."15541_undo.patch"], copy => [''=>'',comment => 'XXXX'] ],
    508511#[ grep  => ['\#include \"compat.h\"',$mythtv.'mythtv/libs/libmythui/mythpainter.cpp'], shell => ["cd ".$unixmythtv."mythtv/libs/libmyth/","patch -p2 < ".$unixmythtv."mythtv/15541_undo.patch"] , comment => 'currently need this patch too, equivalemnt of: svn merge -r 15541:15540 .'],
    509512
     513# [16167] needs these 4 to run:
     514#4724 http://svn.mythtv.org/trac/raw-attachment/ticket/4724/win32_storeconnection.patch
     515[ archive => $mythtv.'mythtv/win32_storeconnection.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4724/win32_storeconnection.patch', comment => 'win32_storeconnection.patch - apply any outstanding win32 patches - this section will be hard to keep upwith HEAD/SVN'],
     516[ file => $mythtv.'_', shell => ["cd ".$unixmythtv."mythtv/libs/libmyth","patch -p0 < ".$unixmythtv."mythtv/win32_storeconnection.patch","nocheck"] , comment => 'apply above patch'],
     517#4706 http://svn.mythtv.org/trac/raw-attachment/ticket/4706/mythsocket_win32_events.patch
     518[ archive => $mythtv.'mythtv/mythsocket_win32_events.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4706/mythsocket_win32_events.patch', comment => 'mythsocket_win32_events.patch - apply any outstanding win32 patches - this section will be hard to keep upwith HEAD/SVN'],
     519[ file => $mythtv.'_', shell => ["cd ".$unixmythtv."mythtv","patch -p0 < ".$unixmythtv."mythtv/mythsocket_win32_events.patch","nocheck"] , comment => 'apply above patch'],
     520#4699 http://svn.mythtv.org/trac/raw-attachment/ticket/4699/win32_fs.patch
     521[ archive => $mythtv.'mythtv/win32_fs.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4699/win32_fs.patch', comment => 'win32_fs.patch - apply any outstanding win32 patches - this section will be hard to keep upwith HEAD/SVN'],
     522[ file => $mythtv.'_', shell => ["cd ".$unixmythtv."mythtv","patch -p0 < ".$unixmythtv."mythtv/win32_fs.patch","nocheck"] , comment => 'apply above patch'],
     523#4702 http://svn.mythtv.org/trac/raw-attachment/ticket/4702/mingw.patch
     524[ archive => $mythtv.'mythtv/mingw.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4702/mingw.patch', comment => 'mingw.patch - apply any outstanding win32 patches - this section will be hard to keep upwith HEAD/SVN'],
     525[ file => $mythtv.'_', shell => ["cd ".$unixmythtv."mythtv","patch -p0 < ".$unixmythtv."mythtv/mingw.patch","nocheck"] , comment => 'apply above patch'],
     526
    510527
    511528[ file => $mythtv.'mythtv/config/config.pro', shell => ['touch '.$unixmythtv.'mythtv/config/config.pro'], comment => 'create an empty config.pro or the mythtv build will fail'],
    512529
    513 # do a make clean before?
    514 [ file => $mythtv.'delete_to_do_make_clean.txt', shell => ['source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make clean','make distclean','touch '.$unixmythtv.'delete_to_do_make_clean.txt','nocheck'], comment => 'do a "make clean" first? not strictly necessary, and the build will be MUCH faster without it, but it is safer with it...'],
     530# do a make clean before? Yes, if the SVN revision has changed (it deleted the file for us), or the user deleted the file manually, to request it.
     531[ file => $mythtv.'delete_to_do_make_clean.txt', shell => ['source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make clean','find . -type f -name \*.dll | grep -v run | xargs -n1 rm','find . -type f -name \*.a | grep -v run | xargs -n1 rm','touch '.$unixmythtv.'delete_to_do_make_clean.txt','nocheck'], comment => 'do a "make clean" first? not strictly necessary in all cases, and the build will be MUCH faster without it, but it is safer with it... ( we do a make clean if the SVN revision changes) '],
    515532
    516533#broken Makefile, delete it
    517534[ grep => ['Makefile|MAKEFILE',$mythtv.'mythtv/Makefile'], shell => ['rm '.$unixmythtv.'mythtv/Makefile','nocheck'], comment => 'broken Makefile, delete it' ],
     
    555572cp '.$unixmsys.'qt-3.3.x-p8/plugins/sqldrivers/libqsqlmysql.dll '.$unixmythtv.'mythtv/run/sqldrivers
    556573# pthread dlls and mingwm10.dll are copied from here:
    557574cp /mingw/bin/*.dll '.$unixmythtv.'mythtv/run
     575cp /bin/msys*.dll '.$unixmythtv.'mythtv/run
    558576','nocheck'
    559577],comment => 'write a script that will copy all the files necessary for running mythtv out of the build folder into the ./run folder'],
    560578