[mythtv] Fwd: Re: [mythtv-commits] Ticket #9400: MacOS X Compile failure

Nigel Pearson nigel at ind.tansu.com.au
Sun Jan 9 06:33:36 UTC 2011


On 09/01/2011, at 2:50 AM, Craig Treleaven wrote:

> A lot of this stuff ought to be installed as an admin user so it is available to all userids on the machine, no?  To me, that is one of the big reasons to have a standalone 'osx-prep' script.


Well, I only do stuff on my machines as me,
but AFAIK the permissions are all OK.
It is just a problem of not being able to
write into something like /usr/local/lib
if PREFIX is changed. chmod'll solve that :-)



Allowing other userids to use the deps the script
currently builds is mainly them knowing the path.
I have had multiple build directories before and
saved space/time by creating symlinks under
.osx-packager/build/* to a single master.



When Jeremiah first did the script this way
(local "non installed" dep builds) I thought
it was strange, but over the years it has
demonstrated several advantages;

1) I can build other opensource stuff without any clashes

2) It should be independent from Fink installed stuff

3) I can change the versions of the deps without having
to uninstall, and possibly break other opensource stuff
(or in your case, other users?)

4) I can build on any Mac without Administrator rights.
A few times when new machines came out, I have gone to
an Apple Store with one Perl script and done a build
while I was getting my MacBook serviced!



> Installing Yasm ought to be part of the prep.

Yep, will add that in osx-packager.pl,
and do some benchmarks, next.


> Would it make sense to install pkg-config, as well?

None of the MythTV source, or current deps need it,
but some dep interdependencies can.

e.g. when trying to build a DBus enabled Qt,
I had to fake it:


  'dbus' =>
  {
    'url' => 'http://dbus.freedesktop.org/releases/dbus/dbus-1.0.3.tar.gz',
    'post-make' => 'mv $PREFIX/lib/dbus-1.0/include/dbus/dbus-arch-deps.h '.
                     ' $PREFIX/include/dbus-1.0/dbus ; '.
                   'rm -fr $PREFIX/lib/dbus-1.0 ; '.
                   'cd $PREFIX/bin ; '.
                   'echo "#!/bin/sh
if [ \"\$2\" = dbus-1 ]; then
  case \"\$1\" in
    \"--version\") echo 1.0.3  ;;
    \"--cflags\")  echo -I$PREFIX/include/dbus-1.0 ;;
    \"--libs\")    echo \"-L$PREFIX/lib -ldbus-1\" ;;
  esac
fi
exit 0"   > pkg-config ; '.
                   'chmod 755 pkg-config'
  },


 

> Idle speculation on my part, but I was think of taking an external disk and creating 2 partitions.  Install the system and XCode on one partition and then back it up (CarbonCopyCloner or SuperDuper) to the other.  Run some tests on the osx-prep and then restore the boot partition back.  Lather, rinse and repeat.  Could even just have a few extra partitions--2 for each major OS version.

I'm currently trying to do similar with VMware
(my MacBook has both 10.4 and 10.6 partitions).


--
Nigel Pearson, nigel at ind.tansu.com.au|  4  8 |
Telstra Net. Eng., Sydney, Australia | 15 16 |
Office: 9202 3900    Fax:  9212 6348 | 23 42 |
Mobile: 0408 664435  Home: 9792 6998 |  Lost |




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20110109/8901e154/attachment.htm>


More information about the mythtv-dev mailing list