SourceCode » History » Version 33
Wolfgang Wiedmeyer, 03/05/2017 06:09 PM
add Replicant 6.0 dev version
1 | 25 | Paul Kocialkowski | h1. Replicant source code |
---|---|---|---|
2 | 1 | Paul Kocialkowski | |
3 | 25 | Paul Kocialkowski | h2. Browsing the source code |
4 | 2 | Paul Kocialkowski | |
5 | 31 | Wolfgang Wiedmeyer | The Replicant source code is currently hosted by the "FSF":https://www.fsf.org/ at: "git.replicant.us":https://git.replicant.us/replicant |
6 | 27 | Paul Kocialkowski | |
7 | There is one branch per Replicant version, such as @replicant-2.2@. |
||
8 | 2 | Paul Kocialkowski | |
9 | 20 | Paul Kocialkowski | h2. Disk space |
10 | |||
11 | Before downloading the Replicant source code, make sure there is a considerable amount of disk space left on the drive you intent to build Replicant on. |
||
12 | It is advised to have 40-50GiB available for the Replicant source code and the produced files. |
||
13 | |||
14 | 23 | Paul Kocialkowski | h2. Source tree root folder |
15 | 1 | Paul Kocialkowski | |
16 | 23 | Paul Kocialkowski | The path to the source tree root folder *must not contain spaces*. |
17 | 1 | Paul Kocialkowski | |
18 | 32 | Wolfgang Wiedmeyer | h2. Installing the repo tool |
19 | 1 | Paul Kocialkowski | |
20 | 32 | Wolfgang Wiedmeyer | To be able download the complete source code, the "@repo@ tool":https://android.googlesource.com/tools/repo needs to be installed. The distribution you are using may already have the tool packaged and it may already been installed as part of the [[BuildDependenciesInstallation|Build dependencies installation]]. |
21 | 1 | Paul Kocialkowski | |
22 | 32 | Wolfgang Wiedmeyer | If the @repo@ tool is not available on your system, you can download and install it locally: |
23 | |||
24 | 1 | Paul Kocialkowski | <pre> |
25 | mkdir tools |
||
26 | cd tools |
||
27 | 30 | Denis 'GNUtoo' Carikli | wget https://commondatastorage.googleapis.com/git-repo-downloads/repo |
28 | 1 | Paul Kocialkowski | chmod a+x repo |
29 | cd ../ |
||
30 | </pre> |
||
31 | 32 | Wolfgang Wiedmeyer | |
32 | In the following, the local installation in @../tools/repo@ is assumed. If you have installed @repo@ from your system's package manager, replace |
||
33 | |||
34 | <pre> |
||
35 | ../tools/repo |
||
36 | </pre> |
||
37 | |||
38 | with just |
||
39 | |||
40 | <pre> |
||
41 | repo |
||
42 | </pre> |
||
43 | |||
44 | at the beginning of the following commands. |
||
45 | 1 | Paul Kocialkowski | |
46 | 26 | Paul Kocialkowski | h2. Initializing the repository |
47 | 1 | Paul Kocialkowski | |
48 | 16 | Paul Kocialkowski | The source manifest is the list of all the git repositories that are present in the Replicant tree. |
49 | Each Replicant version has a dedicated branch with the proper source manifest. |
||
50 | 14 | Denis 'GNUtoo' Carikli | |
51 | 29 | Loic Dachary | In case errors such as *server certificate verification failed* happen, installing the CACert certificate may help: |
52 | <pre> |
||
53 | mkdir /usr/local/share/ca-certificates/cacert.org |
||
54 | wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt |
||
55 | update-ca-certificates |
||
56 | </pre> |
||
57 | |||
58 | 33 | Wolfgang Wiedmeyer | h3. Replicant 6.0 development version |
59 | |||
60 | <pre> |
||
61 | mkdir replicant-6.0-dev |
||
62 | cd replicant-6.0-dev |
||
63 | ../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-6.0-dev |
||
64 | </pre> |
||
65 | |||
66 | 14 | Denis 'GNUtoo' Carikli | h3. Replicant 4.2 |
67 | 1 | Paul Kocialkowski | |
68 | 15 | Denis 'GNUtoo' Carikli | <pre> |
69 | 11 | Paul Kocialkowski | mkdir replicant-4.2 |
70 | cd replicant-4.2 |
||
71 | 28 | Paul Kocialkowski | ../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-4.2 |
72 | 11 | Paul Kocialkowski | </pre> |
73 | |||
74 | 4 | Paul Kocialkowski | h3. Replicant 4.0 |
75 | |||
76 | <pre> |
||
77 | mkdir replicant-4.0 |
||
78 | cd replicant-4.0 |
||
79 | 28 | Paul Kocialkowski | ../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-4.0 |
80 | 4 | Paul Kocialkowski | </pre> |
81 | |||
82 | 1 | Paul Kocialkowski | h3. Replicant 2.3 |
83 | |||
84 | <pre> |
||
85 | mkdir replicant-2.3 |
||
86 | cd replicant-2.3 |
||
87 | 28 | Paul Kocialkowski | ../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-2.3 |
88 | 1 | Paul Kocialkowski | </pre> |
89 | |||
90 | h3. Replicant 2.2 |
||
91 | |||
92 | <pre> |
||
93 | mkdir replicant-2.2 |
||
94 | cd replicant-2.2 |
||
95 | 28 | Paul Kocialkowski | ../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-2.2 |
96 | 1 | Paul Kocialkowski | </pre> |
97 | |||
98 | 26 | Paul Kocialkowski | h2. Downloading/Updating the source code |
99 | 1 | Paul Kocialkowski | |
100 | 26 | Paul Kocialkowski | Now that you have configured @repo@, you can start downloading Replicant sources for the desired version. |
101 | 3 | Paul Kocialkowski | |
102 | 26 | Paul Kocialkowski | *This step is very long and can take hours to complete!* |
103 | 5 | Paul Kocialkowski | |
104 | <pre> |
||
105 | ../tools/repo sync |
||
106 | </pre> |
||
107 | |||
108 | 26 | Paul Kocialkowski | Once the source code is ready, you need to get the prebuilt applications (they are downloaded from F-Droid): |
109 | 17 | Paul Kocialkowski | <pre> |
110 | vendor/replicant/get-prebuilts |
||
111 | 18 | Taro K. | </pre> |
112 | |||
113 | 17 | Paul Kocialkowski | You must redo these steps each time you want to sync your tree, in order to keep it up to date. Future syncs are faster than the first one. |