Skip to content
Fossil Changes To Release Build How-To
Login

Changes To Release Build How-To

Changes to "Release Build How-To" between 2024-12-20 11:22:10 and 2025-02-20 20:40:35

︙
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

96
97
98
99
100
101
102
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
96
97

98
99
100
101
102
103
104
105







-
-
+
+
+

-
+

-
+















-
-
+
+
+

-
+

-
-
+
+












-
-
+
+
+

-
+

-
+







-
+







      new top-most entry.
  10. `fossil uv sync`

## Linux

  *  Build the in-tree OpenSSL library:
     <ul>
     <li> Download the OpenSSL tarball and unpack it into `compat/openssl`
     <li> `cd` into the `compat/openssl` directory
     <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> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/etc/ssl`
     <li> `CFLAGS=-Os make -e`
     <li> `make -j8 CFLAGS=-Os`
     </ul>
  *  `./configure --with-openssl=tree --disable-fusefs`
  *  `./configure --with-openssl=$HOME/openssl/openssl --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`

## Mac

  *  Published Fossil builds use the lead developer's 2010 Macbook Air running MacOS 10.13.6 for x64
     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 and unpack it into `compat/openssl`
     <li> `cd` into the `compat/openssl` directory
     <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> `CFLAGS=-Os make -e`
     <li> `make -j8 CFLAGS=-Os`
     </ul>
  *  `./configure --with-openssl=tree`
  *  `CFLAGS=-Os make -e clean fossil`
  *  `./configure --with-openssl=$HOME/openssl/openssl`
  *  `make -clean && make -j8`
  *  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 and unpack it into `compat/openssl`
     <li> `cd` into the `compat/openssl` directory
     <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> `CFLAGS=-Os make -e`
     <li> `make -j2 CFLAGS=-Os`
     </ul>
  *  `./configure --with-openssl=tree --static`
  *  `./configure --with-openssl=$HOME/openssl/openssl --static`
  *  `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`

## Windows 32-bit using MSVC

  *  Run all of the following from a "x32 Native Tools Command Prompt"
  *  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`.
︙