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
|
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
|
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
|
# Notes on how Fossil deliverables are built and uploaded
* All builds statically link against OpenSSL, which is a library that is
often missing from systems on which Fossil might be installed. By statically
linking with OpenSSL, the dependency on OpenSSL is omitted, making the
precompiled binaries more portable.
* As of 2021-11-05, OpenSSL 3.0.0 is used, except with MinGW, where the
most recent version of OpenSSL that we know how to compile is 1.0.1t.
## Download Page
* `fossil uv edit download.js`
* Edit the "releases" variable in the javascript
to add the new release number and title and various
hyperlinks. Perhaps also remove older releases.
* Remove obsolete build products: `fossil uv rm --glob $PATTERN`
* `fossil uv sync`
## Linux
* Set up in-tree OpenSSL:
<ul>
<li> Download the OpenSSL tarball and unpack it into `compat/openssl`
<li> `cd` into the `compat/openssl` directory
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/usr/lib/ssl`
<li> `make`
<li> `CFLAGS=-Os make`
</ul>
* `./configure --with-openssl=tree --disable-fusefs`
* If the Makefile contains a reference to `-lpthread`, remove it.
* `CFLAGS="-Os" make -e clean fossil`
* `strip fossil`
* Verify dependencies using "`ldd ./fossil`"
* `tar czf fossil-linux-x64-$VERSION.tar.gz fossil`
* `fossil uv add fossil-linux-x64-$VERSION.tar.gz`
* `fossil uv sync`
## Linux (alternative procedures)
* Log into www.fossil-scm.org
* cd to /home/www/fossil/b1
* Run the script ./rebuild.sh
* Logout
* Download the file www.fossil-scm.org:/home/www/usr/bin/fossil
* `strip fossil`
* `tar czf fossil-linux-x64-$VERSION.tar.gz fossil`
* `fossil uv add fossil-linux-x64-$VERSION.tar.gz`
* `fossil uv sync`
## Mac arm64 (cross-compiled)
## Mac arm64 (cross-compiled from x64)
* On the circa 2017 iMac (macOS Big Sur, x64) do:
* Set up in-tree OpenSSL:
<ul>
<li> Download the OpenSSL tarball and unpack it into `compat/openssl`
<li> `cd` into the `compat/openssl` directory
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm --openssldir=/usr/local/etc/openssl`
|
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
+
+
+
+
+
+
+
-
+
-
-
-
-
-
|
* Verify the signature using: `codesign -d -v fossil`
* `tar czf fossil-macosx-$VERSION.tar.gz fossil`
* `fossil uv add fossil-macosx-$VERSION.tar.gz`
* `fossil uv sync`
## Raspberry Pi
* Set up in-tree OpenSSL:
<ul>
<li> Download the OpenSSL tarball and unpack it into `compat/openssl`
<li> `cd` into the `compat/openssl` directory
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/usr/lib/ssl`
<li> `CFLAGS=-Os make`
</ul>
* `./configure`
* `./configure --with-openssl=tree`
* Edit Makefile so that instead of -lssl and -lcrypto
there are complete paths to the libssl.a and
libcrypto.a files: <ul>
<li> /usr/lib/arm-linux-gnueabihf/libssl.a
<li> /usr/lib/arm-linux-gnueabihf/libcrypto.a</ul>
* `CFLAGS="-Os" make -e clean fossil && strip fossil`
* `tar czf fossil-pi-$VERSION.tar.gz fossil`
* `fossil uv add fossil-pi-$VERSION.tar.gz`
* `fossil uv sync`
## Source Tarball
|