Changes between Version 2 and Version 3 of KDEProblems/KDEMacPortsCI/Status


Ignore:
Timestamp:
May 22, 2014, 11:25:44 PM (10 years ago)
Author:
mkae (Marko Käning)
Comment:

Restructuring page for use of sections instead of ordered list

Legend:

Unmodified
Added
Removed
Modified
  • KDEProblems/KDEMacPortsCI/Status

    v2 v3  
    11= Current status of setting up the CI system (still hanging on OSX up to now) =
    22 
    3 This is what has to be done to get a KDE/CI system up and running on OSX (partially by also using MacPorts):
     3This page shall describe what has to be done to get a KDE/CI system up and running on OSX. Partially this is achieved by using a few port from MacPorts.
     4
     5
    46 
    5  A) Start with fresh Mavericks install and make sure your disk has at least 20G free space left
     7== Start with fresh Mavericks install ==
    68
    7  B) Install MacPorts 2.2.1 using the official PKG
     9 * make sure your disk has at least 20G free space left
    810
    9  C) Install ports for bash use:
     11
     12
     13== Install MacPorts ==
     14
     15 * currently using the official PKG for MacPorts version 2.2.1
     16
     17
     18
     19== bash and environment ==
     20
     21Install ports for MacPorts' bash
    1022{{{
    1123$ sudo port install bash bash-completion
    1224}}}
     25and set up the [https://projects.kde.org/projects/playground/sdk/macports-kde/repository/revisions/master/show/contrib/user-setup bash environment for MacPorts use] regarding search paths (PATH, MANPATH)
    1326
    14  D) Set up [https://projects.kde.org/projects/playground/sdk/macports-kde/repository/revisions/master/show/contrib/user-setup bash environment for MacPorts use] regarding search paths (PATH, MANPATH)
    1527
    16  E) Install Xcode from AppStore (and agree actively to the developer license agreement)
    1728
    18  F) Install developer command line tools and install some of MacPorts' ports needed for later
     29== Apple developer tools ==
     30
     31Install
     32 * Xcode from AppStore (and agree actively to the developer license agreement)
     33 * developer command line tools
    1934{{{
    2035$ xcode-select --install
     36}}}
     37
     38
     39
     40== Tools already present on OSX ==
     41
     42Some 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.
     43Should a more up-to-date version of any one of these be necessary for the CI system it could be added later.
     44
     45
     46
     47== Some of more software supplied by MacPorts ==
     48
     49Install ports needed for the CI scripts:
     50{{{
    2151$ sudo port install py27-lxml bazaar mercurial wget automake autoconf
    2252}}}
    23  Installing bazaar brings the also needed port gnutar into the system!
     53Installing bazaar brings the also needed port gnutar into the system!
    2454
    25  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
    2655
    27  H) Create some folders, clone and update KDE's CI system (assuming a user "kdeci" with its home directory "/Users/kdeci"):
     56
     57== Basic setup of CI system ==
     58
     59Create some folders, clone and update KDE's CI system (assuming a user "kdeci" with its home directory "/Users/kdeci"):
    2860{{{
    2961$ cd
     
    3567$ ./update-setup.sh                    # Ignore 404 occurring due to error cloning ECMA262 by hg
    3668}}}
    37  The update shell script created a folder {{{~/scripts}}} in which subsequent commands will have to be executed.
     69The update shell script created a folder {{{~/scripts}}} in which subsequent commands will have to be executed.
    3870
    39  I) Prepare environment for Qt5 build (set correct path to kde install directory in config/build/darwin-mavericks.cfg):
     71
     72== 1st step: Qt5 build ==
     73
     74
     75=== Prepare environment for Qt5 build ===
     76
     77Install additional ports specific for Qt5, set correct path to KDE-install directory in config/build/darwin-mavericks.cfg:
    4078{{{
    4179$ sudo port install dbus libmng libpng mysql55 pkgconfig sqlite2 tiff
     
    5694}}}
    5795
    58  J) Set up build environment:
     96
     97
     98=== Set up build environment for Qt5  ===
     99
     100Make sure all libs can be found by adding search paths and avoid inclusion of MacPorts' glib2:
    59101{{{
    60102$ cd ~/scripts; cat config/build/qt5/darwin-mavericks.cfg
    61103[Build]
    62 configureCommand=%(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
     104configureCommand=%(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 -no-glib
    63105}}}
    64  Consider here the use of options "{{{-debug -separate-debug-info}}}" instead of "{{{-release}}}".
     106Consider here the use of options "{{{-debug -separate-debug-info}}}" instead of "{{{-release}}}".
    65107
    66  K) Include MySQL's binary path into PATH (assuming /opt/local as MacPort's prefix):
     108Include MySQL's binary path into PATH e.g. in {{{.macports/profile}}} (assuming /opt/local as MacPort's prefix):
    67109{{{
    68110export PATH=/opt/local/lib/mysql55/bin:$PATH
    69111}}}
    70112
    71  L) Set up SSH for rsync access to build host, then start building Qt5:
     113Set up SSH for rsync access to build host, then start building Qt5:
    72114{{{
    73115$ cat ~/.ssh/config
     
    79121}}}
    80122
    81  M) Proceed with installation of cmake (needs manual checkout of sources):
     123
     124
     125== Installation of cmake ==
     126
     127Cmake needs a manual checkout of its sources:
    82128{{{
    83129$ python2.7 tools/prepare-environment.py --project cmake --branchGroup kf5-qt5 --platform darwin-mavericks --sources ~/WC/KDECI-build/cmake
     
    88134}}}
    89135
    90  N) Installation of other projects and KDE frameworks:
    91136
    92  The various frameworks have to be handled by replacing "PROJECT" with the framework's project name:
     137
     138== Installation of other projects and KDE frameworks ==
     139
     140The various frameworks have to be handled by replacing "PROJECT" with the framework's project name:
    93141{{{
    94142$ python2.7 tools/prepare-environment.py --project PROJECT --branchGroup kf5-qt5 --platform darwin-mavericks --sources ~/WC/KDECI-build/PROJECT
     
    97145...
    98146}}}
    99  which has been successfully done so far for:
     147which has been successfully done so far for:
    100148{{{
    101149- extra-cmake-modules
    102150}}}
    103151
    104  Problems currently appear for:
     152Problems currently appear for:
    105153{{{
    106154- polkit-qt-1 (still fails due to inability to find package Polkit - this is still Linux-specific and needs to be fixed for use on OSX):