canmove, Confirmed users
1,394
edits
| Line 30: | Line 30: | ||
For newer scripts, you should just be able to download the script on a system with the appropriate version of OS X and of XCode, and run it. Older scripts will require an SRPM be unpacked first. | For newer scripts, you should just be able to download the script on a system with the appropriate version of OS X and of XCode, and run it. Older scripts will require an SRPM be unpacked first. | ||
== Unpacking an SRPM | == Where do I Run It? == | ||
At the moment, the answer to this question has been lost to time. Check bugs, and ask people. If there are existing DMGs for each OS X version, then most likely each was built on that OS X version. In general, we have one version of Xcode that we know how to install for each version of OS X (defined in puppet), so that's the Xcode that was used. | |||
Add something like this to the script to eliminate ambiguity in the future: | |||
<pre> | |||
# ensure the same build environment (you can change this if necessary, just test carefully) | |||
if [ ! -x /tools/packagemaker/bin/packagemaker ]; then | |||
echo "install the packagemaker package (also in puppetagain)" | |||
exit 1 | |||
fi | |||
if [ "$(sw_vers -productVersion)" != "$osx_vers" ]; then | |||
echo "Build this on a $osx_vers host" | |||
exit 1 | |||
fi | |||
if [ "$(xcodebuild -version | grep Xcode)" != "Xcode $xcode_vers" ]; then | |||
echo "Build this with Xcode $xcode_vers" | |||
exit 1 | |||
fi | |||
</pre> | |||
== Unpacking an SRPM == | |||
In a fresh new directory, get a copy of the corresponding src.rpm from http://puppetagain.pub.build.mozilla.org/data, and run | In a fresh new directory, get a copy of the corresponding src.rpm from http://puppetagain.pub.build.mozilla.org/data, and run | ||