39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
-
-
+
+
+
+
|
* Build the in-tree OpenSSL library:
<ul>
<li> Download the OpenSSL tarball to `$HOME/openssl` and unpack it
into `$HOME/openssl/openssl` (or similar)
<li> `cd` into the `$HOME/openssl/openssl` directory
<li> If using Alpine Linux: `sudo apk add build-base perl linux-headers`
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-tls-deprecated-ec --openssldir=/etc/ssl`<br>
↑ The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-tls-deprecated-ec --openssldir=/etc/ssl`
<ul>
<li>The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
</ul>
<li> `make -j8 CFLAGS=-Os`
</ul>
* `./configure --with-openssl=$HOME/openssl/openssl --disable-fusefs`
* If the Makefile contains a reference to `-lpthread`, remove it.
* `make clean && make -j8 CFLAGS=-Os fossil && strip fossil`
* `strip fossil`
* Verify dependencies using "`ldd ./fossil`"
|
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
-
+
+
+
+
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
|
and the lead devloper's minimac running MacOS 12.0.1 for arm. Binaries are signed on the lead
developer's 2017 iMac. All that said, the following procedure should work on *any* Mac.
* Build the in-tree OpenSSL library:
<ul>
<li> Download the OpenSSL tarball into `$HOME/openssl`
and unpack it into `$HOME/openssl/openssl` (or similar)
<li> `cd` into the `$HOME/openssl/openssl` directory
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm --openssldir=/etc/ssl`
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-tls-deprecated-ec --openssldir=/etc/ssl`
<ul>
<li>The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
</ul>
<li> `make -j8 CFLAGS=-Os`
</ul>
* `./configure --with-openssl=$HOME/openssl/openssl`
* `make clean && make -j8 CFLAGS=-Os fossil && strip fossil`
* Verify no shared library dependencies using: `otool -L ./fossil`
* `strip fossil`
* Optional: `codesign -s [email protected] fossil` then verify the signature using
`codesign -d -v fossil`
* `tar czf fossil-mac-ARCH-VERSION.tar.gz fossil` where ARCH is either x64 or arm64.
* `fossil uv add fossil-mac-ARCH-VERSION.tar.gz`
* `fossil uv sync`
## Raspberry Pi
* Build the in-tree OpenSSL library:
<ul>
<li> Download the OpenSSL tarball info `$HOME/openssl`
and unpack it into `$HOME/openssl/openssl` (or similar)
<li> `cd` into the `$HOME/openssl/openssl` directory
<li> `./Configure linux-generic32 no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm --openssldir=/etc/ssl`
<li> `./Configure linux-generic32 no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm no-tls-deprecated-ec --openssldir=/etc/ssl`
<ul>
<li>The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
</ul>
<li> `make -j2 CFLAGS=-Os`
</ul>
* `./configure --with-openssl=$HOME/openssl/openssl --static`
* `make clean && make -j2 fossil CFLAGS=-Os && strip fossil`
* `tar czf fossil-pi-$VERSION.tar.gz fossil`
* `fossil uv add fossil-pi-$VERSION.tar.gz`
* `fossil uv sync`
## Windows 32-bit using MSVC
* Run all of the following from a "x86 Native Tools Command Prompt"
* Build the in-tree OpenSSL library:
<ul>
<li> Install Strawberry-Perl (or similar) if it is not already installed. Perl is needed to run the
OpenSSL configuration script prior to building OpenSSL from sources. Fossil itself does not use Perl.
<li> Download the OpenSSL tarball and unpack under `compat/openssl`. Note that the OpenSSL tarball will
unpack into `openssl-3.X.Y`. You will need to rename that folder to just `openssl`.
<li> `cd` into the OpenSSL source directory, `openssl`.
<li> `C:/Strawberry/perl/bin/perl Configure VC-WIN32 no-asm no-ssl3 no-weak-ssl-ciphers no-shared /D_WIN32_WINNT=0x0501`
<ul><li>
The _WIN32_WINT definition on the `perl Configure` command, and the FOSSIL_ENABLE_WINXP=1 term on
the second `nmake` command below, are necessary in order for this build to work on older
WindowsXP machines. See [forum thread 66f106195aaf289e](forum:/forumpost/66f106195aaf289e).</ul>
<li> `C:/Strawberry/perl/bin/perl Configure VC-WIN32 no-asm no-ssl3 no-weak-ssl-ciphers no-shared no-tls-deprecated-ec /D_WIN32_WINNT=0x0501`
<ul>
<li>The _WIN32_WINT definition on the `perl Configure` command, and the FOSSIL_ENABLE_WINXP=1 term on
the second `nmake` command below, are necessary in order for this build to work on older
WindowsXP machines. See [forum thread 66f106195aaf289e](forum:/forumpost/66f106195aaf289e).
<li>The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
</ul>
<li> `nmake /f makefile`
</ul>
* `cd` into the `win/` subfolder of the Fossil source tree.
* `build32.bat` <br> ↑ which does the following:
<ul>
<li> `nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_ENABLE_WINXP=1 OPTIMIZATIONS=4 clean fossil.exe`
<li> `dumpbin /dependents fossil.exe` ← check output to verify no unexpected dependencies
|
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
-
+
+
+
+
|
* Build the in-tree OpenSSL library:
<ul>
<li> Install Strawberry-Perl (or similar) if it is not already installed. Perl is needed to run the
OpenSSL configuration script prior to building OpenSSL from sources. Fossil itself does not use Perl.
<li> Download the OpenSSL tarball and unpack under `compat/openssl`. Note that the OpenSSL tarball will
unpack into `openssl-3.X.Y`. You will need to rename that folder to just `openssl`.
<li> `cd` into the OpenSSL source directory, `openssl`.
<li> `C:/Strawberry/perl/bin/perl Configure VC-WIN64A no-asm no-ssl3 no-weak-ssl-ciphers no-shared`
<li> `C:/Strawberry/perl/bin/perl Configure VC-WIN64A no-asm no-ssl3 no-weak-ssl-ciphers no-shared no-tls-deprecated-ec`
<ul>
<li>The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
</ul>
<li> `nmake /f makefile`
</ul>
* `cd` into the `win/` subfolder of the Fossil source tree.
* `build64.bat` <br>↑ which does the following:
<ul>
<li> `nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 OPTIMIZATIONS=4 clean fossil.exe`
<li> `dumpbin /dependents fossil.exe` ← check output to verify no unexpected dependencies.
</ul>
* `zip fossil-w64-$VERSION.zip fossil.exe`
* `fossil uv add fossil-w64-$VERSION.zip`
* `fossil uv sync`
|