Project

General

Profile

DeprecatedReplicant60SourceCode » History » Version 2

Wolfgang Wiedmeyer, 03/06/2017 12:58 PM
Replicant 6.0 release version and prebuilts signature verification

1 1 Wolfgang Wiedmeyer
h1. Replicant source code
2
3
h2. Browsing the source code
4
5
The Replicant source code is currently hosted by the "FSF":https://www.fsf.org/ at: "git.replicant.us":https://git.replicant.us/replicant
6
7
There is one branch per Replicant version, such as @replicant-2.2@.
8
9
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
h2. Source tree root folder
15
16
The path to the source tree root folder *must not contain spaces*.
17
18
h2. Installing the repo tool
19
20
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
22
If the @repo@ tool is not available on your system, you can download and install it locally:
23
24
<pre>
25
mkdir tools
26
cd tools
27
wget https://commondatastorage.googleapis.com/git-repo-downloads/repo
28
chmod a+x repo
29
cd ../
30
</pre>
31
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
46
h2. Initializing the repository
47
48
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
51
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 2 Wolfgang Wiedmeyer
h3. Replicant 6.0 release version
59
60
<pre>
61
mkdir replicant-6.0
62
cd replicant-6.0
63
../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-6.0
64
</pre>
65
66 1 Wolfgang Wiedmeyer
h3. Replicant 6.0 development version
67
68
<pre>
69
mkdir replicant-6.0-dev
70
cd replicant-6.0-dev
71
../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-6.0-dev
72
</pre>
73
74
h3. Replicant 4.2
75
76
<pre>
77
mkdir replicant-4.2
78
cd replicant-4.2
79
../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-4.2
80
</pre>
81
82
h3. Replicant 4.0
83
84
<pre>
85
mkdir replicant-4.0
86
cd replicant-4.0
87
../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-4.0
88
</pre>
89
90
h3. Replicant 2.3
91
92
<pre>
93
mkdir replicant-2.3
94
cd replicant-2.3
95
../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-2.3
96
</pre>
97
98
h3. Replicant 2.2
99
100
<pre>
101
mkdir replicant-2.2
102
cd replicant-2.2
103
../tools/repo init -u https://git.replicant.us/replicant/manifest.git -b replicant-2.2
104
</pre>
105
106
h2. Downloading/Updating the source code
107
108
Now that you have configured @repo@, you can start downloading Replicant sources for the desired version.
109
110
*This step is very long and can take hours to complete!*
111
112
<pre>
113
../tools/repo sync
114
</pre>
115
116 2 Wolfgang Wiedmeyer
Once the source code is ready, you need to get the prebuilt applications (they are downloaded from F-Droid). The prebuilt applications are checked if they were signed with the "F-Droid signing key":https://f-droid.org/wiki/page/Release_Channels_and_Signing_Keys. The signing key can be retrieved and added to your GPG keyring using:
117
118
<pre>
119
gpg --recv-key 7A029E54DD5DCE7A
120
</pre>
121
122
Then you can download the prebuilts:
123
124 1 Wolfgang Wiedmeyer
<pre>
125
vendor/replicant/get-prebuilts
126
</pre>
127
128
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.