[mythtv] New OSX packager (was Re: Ticket #10569: libcdio broken on OS X?)

Nigel Pearson nigel at ind.tansu.com.au
Tue Apr 10 04:33:43 UTC 2012


> I don't use osx-packager.pl and I have no intention on supporting it. If
> it was only up to me, it would have disappeared a while ago.


As a "turn key solution", I still prefer the old one, mainly because of:

% ./osx-packager-qtsdk.pl --verbose
[osx-pkg] bin: lib: plugins: You must define a valid Qt SDK path with -qtsdk <path> or -qtbin <path> *and* -qtplugins <path>

It doesn't just work, whereas the old one will download and build everything it needs in the local directory!




Discussion:

1) Easy enough for most users to download and install a prebuilt SDK first, but maybe the -help or -man could hint where/how? Or it could default to -qtsrc 4.blah ?

2) In terms of efficiency, downloading a trusted Qt package will save a lot of time the first time through, but for every rebuild, no difference?
(I prefer building the third party packages once from source, and then just re-using them each build - until a new MythTV feature requires a Qt update, et c)

3) I don't trust their prebuilt SDKs yet :-(




I don't have any huge bias against the new script,
just haven't had enough spare time to use it much.




P.S. At the moment, I am trying against my trusty old Qt 4.6.3, that was build a year or two ago by osx-packager.pl:

macbook% ./osx-packager-qtsdk.pl -qtbin /Volumes/Backups/MythTV/.osx-packager/build/bin -qtplugins /Volumes/Backups/MythTV/.osx-packager/build/plugins -m32 --verbose
[osx-pkg] Qt version is 4.6.3
[osx-pkg] Building using master profile
[osx-pkg] Forcing 32 bits build...
[osx-pkg] Testing Qt environment
[osx-pkg] /Volumes/Backups/MythTV/.osx-packager/build/bin/qmake "QMAKE_CC=/Developer/usr/bin/gcc" "QMAKE_CXX=/Developer/usr/bin/g++" "QMAKE_CXXFLAGS=-isysroot /Developer/SDKs/MacOSX10.5.sdk -D_USING_105SDK=1 -mmacosx-version-min=10.5 -I/Volumes/Backups/NewPackager/.osx-packager/build/include -I/Volumes/Backups/NewPackager/.osx-packager/build/mysql -arch i386" "QMAKE_CFLAGS=-isysroot /Developer/SDKs/MacOSX10.5.sdk -D_USING_105SDK=1 -mmacosx-version-min=10.5 -I/Volumes/Backups/NewPackager/.osx-packager/build/include -I/Volumes/Backups/NewPackager/.osx-packager/build/mysql -arch i386" "QMAKE_LFLAGS+='-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -L/Volumes/Backups/NewPackager/.osx-packager/build/lib -F/Volumes/Backups/MythTV/.osx-packager/build/lib -arch i386'" -o /var/folders/UV/UVzq5Z5X2RW46E+1YoOWZ++++TY/-Tmp-/7ekpst2FIm/Makefile /var/folders/UV/UVzq5Z5X2RW46E+1YoOWZ++++TY/-Tmp-/7ekpst2FIm/test.pro
[osx-pkg] /bin/rm -f /var/folders/UV/UVzq5Z5X2RW46E+1YoOWZ++++TY/-Tmp-/7ekpst2FIm/test
[osx-pkg] /usr/bin/make -C /var/folders/UV/UVzq5Z5X2RW46E+1YoOWZ++++TY/-Tmp-/7ekpst2FIm -f /var/folders/UV/UVzq5Z5X2RW46E+1YoOWZ++++TY/-Tmp-/7ekpst2FIm/Makefile test
/Developer/usr/bin/g++ -c -isysroot /Developer/SDKs/MacOSX10.5.sdk -D_USING_105SDK=1 -mmacosx-version-min=10.5 -I/Volumes/Backups/NewPackager/.osx-packager/build/include -I/Volumes/Backups/NewPackager/.osx-packager/build/mysql -arch i386 -O2 -arch i386 -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/Volumes/Backups/MythTV/.osx-packager/build/mkspecs/macx-g++ -I. -I/Volumes/Backups/MythTV/.osx-packager/build/include/QtCore -I/Volumes/Backups/MythTV/.osx-packager/build/include/QtGui -I/Volumes/Backups/MythTV/.osx-packager/build/include -I/var/folders/UV/UVzq5Z5X2RW46E+1YoOWZ++++TY/-Tmp-/7ekpst2FIm -I. -o test.o test.cpp
g++ -headerpad_max_install_names -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -L/Volumes/Backups/NewPackager/.osx-packager/build/lib -F/Volumes/Backups/MythTV/.osx-packager/build/lib -arch i386 -arch i386 -o ./test test.o    -L/Volumes/Backups/MythTV/.osx-packager/build/lib -lQtGui -L/Volumes/Backups/MythTV/.osx-packager/build/lib -lQtCore 
[osx-pkg] Target architectures: i386
[osx-pkg] DEVROOT = /Developer
[osx-pkg] SDKVER = 10.5
[osx-pkg] SDKROOT = /Developer/SDKs/MacOSX10.5.sdk
[osx-pkg] CCBIN = /Developer/usr/bin/gcc
[osx-pkg] CXXBIN = /Developer/usr/bin/g++
[osx-pkg] CFLAGS = -isysroot /Developer/SDKs/MacOSX10.5.sdk -D_USING_105SDK=1 -mmacosx-version-min=10.5 -I/Volumes/Backups/NewPackager/.osx-packager/build/include -I/Volumes/Backups/NewPackager/.osx-packager/build/mysql -arch i386
[osx-pkg] LDFLAGS = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -L/Volumes/Backups/NewPackager/.osx-packager/build/lib -F/Volumes/Backups/MythTV/.osx-packager/build/lib -arch i386
[osx-pkg] /usr/bin/hostinfo | grep 'processors$'
[osx-pkg] Using 3 jobs on 2 parallel CPUs
[osx-pkg] Including components: mythtv mythplugins packaging
[osx-pkg] Using previously downloaded ccache
[osx-pkg] Using previously unpacked ccache
[osx-pkg] Using previously configured ccache
[osx-pkg] Using previously built ccache
[osx-pkg] Using previously downloaded pkgconfig
[osx-pkg] Using previously unpacked pkgconfig
[osx-pkg] Using previously configured pkgconfig
[osx-pkg] Using previously built pkgconfig
[osx-pkg] Using previously downloaded dvdcss
[osx-pkg] Using previously unpacked dvdcss
[osx-pkg] Using previously configured dvdcss
[osx-pkg] Using previously built dvdcss
[osx-pkg] Using previously downloaded freetype
[osx-pkg] Using previously unpacked freetype
[osx-pkg] Using previously configured freetype
[osx-pkg] Using previously built freetype
[osx-pkg] Using previously downloaded lame
[osx-pkg] Using previously unpacked lame
[osx-pkg] Using previously configured lame
[osx-pkg] Using previously built lame
[osx-pkg] Using previously downloaded mysqlclient
[osx-pkg] Using previously unpacked mysqlclient
[osx-pkg] Using previously configured mysqlclient
[osx-pkg] Using previously built mysqlclient
[osx-pkg] Using previously downloaded qt
[osx-pkg] Unpacking qt
[osx-pkg] /usr/bin/tar -xzf /Volumes/Backups/NewPackager/.osx-packager/src/qt-everywhere-opensource-src-4.6.3.tar.gz
...

Might be nice if it told me why its rebuilding Qt?



--
Nigel Pearson           |"In this city I confess.
nigel at ind.tansu.com.au  | god is mammon, more is less.
Telstra Sydney Australia| Off like lemmings at the gun!
8576 5449, fax 9298 9033| I know better, still I run"



More information about the mythtv-dev mailing list