Changes between Version 24 and Version 25 of KDEProblems/KDEMacPortsCI


Ignore:
Timestamp:
May 22, 2014, 6:53:03 AM (10 years ago)
Author:
mkae (Marko Käning)
Comment:

20G free space instead of total space, clean up paths relative to user kdeci's home, build dir creation,

Legend:

Unmodified
Added
Removed
Modified
  • KDEProblems/KDEMacPortsCI

    v24 v25  
    4848This is what has to be done to get a KDE/CI system up and running on OSX (partially by also using MacPorts):
    4949 
    50  A) Start with fresh Mavericks install
     50 A) Start with fresh Mavericks install and make sure your disk has at least 20G free space left
    5151
    5252 B) Install MacPorts 2.2.1 using the official PKG
     
    7070 G) Since some tools are already installed on OSX due to Xcode (like git, svn, ssh, rsync, make, clang etc.) they don't need to be installed via MacPorts for now
    7171
    72  H) Clone and update KDE's CI system:
     72 H) Create some folders, clone and update KDE's CI system (assuming a user "kdeci" with its home directory "/Users/kdeci"):
    7373{{{
     74$ cd
     75$ mkdir -p WC/KDECI-build;
     76$ cd WC
    7477$ git clone git://anongit.kde.org/websites/build-kde-org
    7578$ cd build-kde-org
     
    7780$ ./update-setup.sh                    # Ignore 404 occurring due to error cloning ECMA262 by hg
    7881}}}
     82 The update shell script created a folder {{{~/scripts}}} in which subsequent commands will have to be executed.
    7983
    8084 I) Prepare environment for Qt5 build (set correct path to kde install directory in config/build/darwin-mavericks.cfg):
     
    8286$ sudo port install dbus libmng libpng mysql55 pkgconfig sqlite2 tiff
    8387$ sudo port uninstall cmake            # Remove MacPorts' cmake (which came into the system as build-dependency for mysql55)
    84 $ cd ~/scripts                         # Assume /Users/kdeci for the user directory from here on!
     88$ cd ~/scripts
    8589$ cat config/build/darwin-mavericks.cfg
    8690[DEFAULT]
     
    9296[General]
    9397installPrefix=/opt/kde/install/%(opSys)s/%(architecture)s/%(compiler)s/
    94 $ python2.7 tools/prepare-environment.py --project qt5 --branchGroup kf5-qt5 --platform darwin-mavericks --sources /path/to/directory/where/qt5/will/be/built
     98$ python2.7 tools/prepare-environment.py --project qt5 --branchGroup kf5-qt5 --platform darwin-mavericks --sources ~/WC/KDECI-build/qt5
    9599...
    96100$
     
    99103 J) Set up build environment:
    100104{{{
    101 $ cat /Users/marko/scripts/config/build/qt5/darwin-mavericks.cfg
     105$ cd ~/scripts; cat config/build/qt5/darwin-mavericks.cfg
    102106[Build]
    103107configureCommand=%(configureExecutable)s -release -system-zlib -system-libpng -system-libjpeg -system-sqlite -dbus -plugin-sql-mysql -nomake examples -confirm-license -opensource -prefix {instPrefix} -no-framework -v -I/opt/local/include -L/opt/local/lib
    104108}}}
    105  Consider here the use of options {{{-debug -separate-debug-info}}} instead of {{{-release}}}, but this will require 35G total disk space.
     109 Consider here the use of options "{{{-debug -separate-debug-info}}}" instead of "{{{-release}}}".
    106110
    107111 K) Include MySQL's binary path into PATH (assuming /opt/local as MacPort's prefix):
     
    116120   Port 2022
    117121$ ssh-keygen -C YOUR@EMAIL.ADDRESS       # <-- send your public SSH key to Ben Cooksley in order to get access to the build server
    118 $ python2.7 tools/perform-build.py --project qt5 --branchGroup kf5-qt5 --platform darwin-mavericks --sources /path/to/directory/where/qt5/will/be/built
     122$ python2.7 tools/perform-build.py --project qt5 --branchGroup kf5-qt5 --platform darwin-mavericks --sources ~/WC/KDECI-build/qt5
    119123...
    120124}}}
    121125
    122  M) Proceed with installation of cmake (which currently still fails):
     126 M) Proceed with installation of cmake:
    123127{{{
    124 $ python2.7 tools/prepare-environment.py --project cmake --branchGroup kf5-qt5 --platform darwin-mavericks --sources /path/to/directory/where/cmake/will/be/built
     128$ python2.7 tools/prepare-environment.py --project cmake --branchGroup kf5-qt5 --platform darwin-mavericks --sources ~/WC/KDECI-build/cmake
    125129...
    126 $ python2.7 tools/perform-build.py --project cmake --branchGroup kf5-qt5 --platform darwin-mavericks --sources /path/to/directory/where/cmake/will/be/built
     130$ git clone git://cmake.org/cmake.git /path/to/directory/where/cmake/will/be/built
     131$ python2.7 tools/perform-build.py --project cmake --branchGroup kf5-qt5 --platform darwin-mavericks --sources ~/WC/KDECI-build/cmake
    127132...
    128133}}}