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

Changes To Release Build How-To

Changes to "Release Build How-To" between 2023-08-29 16:31:38 and 2023-08-31 13:24:29

1
2
3

4
5
6
7

8
9
10
11
12
13
14
1
2

3
4
5
6

7
8
9
10
11
12
13
14


-
+



-
+







# Notes on how Fossil deliverables are built and uploaded

  *  All builds statically link against OpenSSL, which is a library that is
  *  All builds are 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 2023-05-31, OpenSSL 3.1.1 is used for all builds.
  *  As of 2023-08-31, OpenSSL 3.1.2 is used for all builds.
     Check that Fossil is not affected by [known vulnerabilities]
     (https://www.openssl.org/news/vulnerabilities-3.1.html)
     of that version.

# Pre-Release Checklist

  *  If `pikchr.c` has been updated since the last release, be sure that its WASM
︙
33
34
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
106
107
108
109



110
111
112
113
114
115
116
117
118
119

120
121
122
123




124
125
126
127
128
129



130
131
132
133
33
34
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

124
125



126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142







-
+

















-
-
-
+
+
+
+


















-
+















-
+

-
-
-
+
+
+
+










+
+
+









-
+

-
-
-
+
+
+
+






+
+
+




  8.  `fossil uv edit releases.md`
  9.  Update the list of releases and move the "(latest)" suffix to
      new top-most entry.
  10. `fossil uv sync`

## Linux

  *  Set up in-tree OpenSSL:
  *  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> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/usr/lib/ssl`
     <li> `CFLAGS=-Os make -e`
     </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`

## Mac

  *  For x64 builds, use the circa 2010 Macbook Air running MacOS 10.13.6.  For arm64 builds
     use the 2020 miniMac running MacOS 12.0.1.
  *  Set up in-tree OpenSSL:
  *  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> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm --openssldir=/etc/ssl`
     <li> `CFLAGS=-Os make -e`
     </ul>
  *  `./configure --with-openssl=tree`
  *  `CFLAGS=-Os make -e clean 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

  *  Set up in-tree OpenSSL:
  *  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> `./Configure linux-generic32 no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm --openssldir=/usr/lib/ssl`
     <li> `CFLAGS=-Os make -e`
     </ul>
  *  `./configure --with-openssl=tree --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"
  *  Set up in-tree OpenSSL:
  *  Build the in-tree OpenSSL library:
     <ul>
     <li> Install Strawberry-Perl if it is not already installed
     <li> Download the OpenSSL tarball and unpack under `compat/openssl`. (Note that the tarball will
          unpack into `openssl-3.X.Y` - you will need to rename that to just `openssl`.)
     <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> `nmake /f makefile`
     </ul>
  *  `cd` into the `win/` subfolder of the Fossil source tree.
  *  `nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_ENABLE_WINXP=1 OPTIMIZATIONS=4 clean fossil.exe`
     <ul><li>
     The previous step builds the stand-alone Fossil binary.  If that is all you want to accomplish, you can
     stop here.  The remaining steps describe how the stand-alone Fossil binary is published.</ul>
  *  Verify dependencies: `dumpbin /dependents fossil.exe`
  *  `zip fossil-w32-$VERSION.zip fossil.exe`
  *  `fossil uv add fossil-w32-$VERSION.zip`
  *  `fossil uv sync`


## Windows 64-bit using MSVC

  *  Run all of the following from a "x64 Native Tools Command Prompt"
  *  Set up in-tree OpenSSL:
  *  Build the in-tree OpenSSL library:
     <ul>
     <li> Install Strawberry-Perl if it is not already installed
     <li> Download the OpenSSL tarball and unpack under `compat/openssl`. (Note that the tarball will
          unpack into `openssl-3.X.Y` - you will need to rename that to just `openssl`.)
     <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> `nmake /f makefile`
     </ul>
  *  `cd` into the `win/` subfolder of the Fossil source tree.
  *  `nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 OPTIMIZATIONS=4 clean fossil.exe`
     <ul><li>
     The previous step builds the stand-alone Fossil binary.  If that is all you want to accomplish, you can
     stop here.  The remaining steps describe how the stand-alone Fossil binary is published.</ul>
  *  Verify dependencies: `dumpbin /dependents fossil.exe`
  *  `zip fossil-w64-$VERSION.zip fossil.exe`
  *  `fossil uv add fossil-w64-$VERSION.zip`
  *  `fossil uv sync`