summaryrefslogtreecommitdiffstats
path: root/src/meegoinstalls/README
blob: fa3fc3049ce3bb29305218545bf608eaf28e9ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
This directory contains the MeeGo.com packaging metadata for Qt Mobility,
for use with the MeeGo.com OpenSuSE Build Service (OBS).

Please see http://build.meego.com/ for more information about OBS.

Quick Start: run `make' in this directory to see some useful things you
can do.



PATCHES
=======

At the time of writing, there are some MeeGo-specific patches hosted
on the MeeGo OBS.  These patches are unable to be hosted in the Mobility
git repository at this time.

In order to successfully build Mobility for MeeGo, you must also obtain
these patches, or you must modify qt-mobility.yaml and qt-mobility.spec
to remove the usage of the patches.

Please do not add any more patches.



HOW TO MAKE CHANGES
===================

Within this directory, there is a yaml file and a spec file.  The yaml
file is maintained by hand; the spec file is partially generated from the
yaml file, but partially maintained by hand also, in specially marked
sections.

The command used to generate the spec file from the yaml file is `specify'.
This is part of a tool named Spectacle.  This can be installed from the
MeeGo tools repositories.  It does not require a full MeeGo SDK install.
For example, on Ubuntu:

  $ sudo /bin/sh -c 'echo deb http://repo.meego.com/MeeGo/tools/repos/ubuntu/10.04/ / > /etc/apt/sources.list.d/meego-tools.list'
  $ gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A && gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
  $ sudo apt-get update
  $ sudo apt-get install meego-packaging-tools

Once you have installed meego-packaging-tools, you can run `make spec-git'
in this directory to regenerate the spec file from the yaml file.
The spec file and yaml file should be maintained together, so if you
modify the yaml file, you should do `make spec-git' and put the
modifications to the spec file in the same commit.

Please see http://wiki.meego.com/Spectacle for more information about
spectacle.



HOW TO BUILD
============

Note: these instructions are not canonical or supported in any way.
They are here as a quick start for people who want to contribute to
Qt Mobility and do not know how to compile for MeeGo.

The most accurate way to build is to use the OpenSuSE build service
on build.meego.com.  Unfortunately, at time of writing, anonymous
access to this service is not available.  Therefore, using build.meego.com
is not an option for most people.

However, a fairly accurate build can still be done using the `build' command
and referring to the live MeeGo repos.


Abbreviated example of how to install `build' for Ubuntu:

  $ sudo /bin/sh -c 'echo deb http://repo.meego.com/MeeGo/tools/repos/ubuntu/10.04/ / > /etc/apt/sources.list.d/meego-tools.list'
  $ gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A && gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
  $ sudo apt-get update
  $ sudo apt-get install build
  $ gpg --keyserver pgpkeys.mit.edu --recv 79FC1F8A && gpg --export --armor 79FC1F8A | sudo rpm --import -


Then, to do the build (for i686):

  $ make build-trunk-i686


Or, to use the Trunk:Testing repository (which may contain newer versions of some packages):

  $ make build-trunk-testing-i686


These builds will take place in a chroot, and hence will require root access.
They will attempt to use `sudo' for this.

If you hit an error, `rpm: error while loading shared libraries: liblua-5.1.so',
edit /usr/lib/build/configs/default.conf and add liblua to one of the `Preinstall:' lines
(see http://comments.gmane.org/gmane.comp.handhelds.meego.devel/7139 )