Overview
| Artifact ID: | 77ca828657f1b318140f563016f488106cbc5e88cff2d1c194d601b123696694 |
|---|---|
| Page Name: | Release Build How-To |
| Date: | 2022-01-05 13:50:32 |
| Original User: | drh |
| Mimetype: | text/x-markdown |
| Parent: | ee3d903c2219fb339c75ec53324e7b207abedf39fd93829a96f882e75e452376 (diff) |
| Next | 686577edd977ad4f75e7704586279c4040f4e52e8366e9f6e8ecf1eb3218f73f |
Content
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-12-29, OpenSSL 3.0.0 is used for all builds.
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:
- Download the OpenSSL tarball and unpack it into
compat/openssl -
cdinto thecompat/openssldirectory -
./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/usr/lib/ssl -
CFLAGS=-Os make -e
- Download the OpenSSL tarball and unpack it into
./configure --with-openssl=tree --disable-fusefs- If the Makefile contains a reference to
-lpthread, remove it. CFLAGS="-Os" make -e clean fossilstrip fossil- Verify dependencies using "
ldd ./fossil" tar czf fossil-linux-x64-$VERSION.tar.gz fossilfossil uv add fossil-linux-x64-$VERSION.tar.gzfossil 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:
- Download the OpenSSL tarball and unpack it into
compat/openssl -
cdinto thecompat/openssldirectory -
./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-asm --openssldir=/etc/ssl -
CFLAGS=-Os make -e
- Download the OpenSSL tarball and unpack it into
./configure --with-openssl=treeCFLAGS=-Os make -e clean fossil- Verify no shared library dependencies using:
otool -L ./fossil strip fossil- Optional:
codesign -s [email protected] fossilthen verify the signature usingcodesign -d -v fossil tar czf fossil-mac-ARCH-VERSION.tar.gz fossilwhere ARCH is either x64 or arm64.fossil uv add fossil-mac-ARCH-VERSION.tar.gzfossil uv sync
Raspberry Pi
- Set up in-tree OpenSSL:
- Download the OpenSSL tarball and unpack it into
compat/openssl -
cdinto thecompat/openssldirectory -
./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/usr/lib/ssl -
CFLAGS=-Os make
- Download the OpenSSL tarball and unpack it into
./configure --with-openssl=treeCFLAGS="-Os" make -e clean fossil && strip fossiltar czf fossil-pi-$VERSION.tar.gz fossilfossil uv add fossil-pi-$VERSION.tar.gzfossil uv sync
Source Tarball
fossil tarball --name fossil-$VERSION version-$VERSION fossil-src-$VERSION.tar.gzfossil uv add fossil-src-$VERSION.tar.gzfossil uv sync
Windows 32-bit using MSVC
- Run all of the following from a "x32 Native Tools Command Prompt"
- Set up in-tree OpenSSL:
- Install Strawberry-Perl if it is not already installed
- Download the OpenSSL tarball and unpack under
compat/ -
cdinto the OpenSSL source directory -
C:/Strawberry/perl/bin/perl Configure VC-WIN32 no-asm no-ssl3 no-weak-ssl-ciphers no-shared /D_WIN32_WINNT=0x501← Note especially the _WIN32_WINT definition at the end, which enables compatibility with legacy Windows systems. -
nmake /f makefile
cdinto thewin/subfolder of the Fossil source tree.nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 OPTIMIZATIONS=4 clean fossil.exe- Verify dependencies:
dumpbin /dependents fossil.exe zip fossil-w32-$VERSION.zip fossil.exefossil uv add fossil-w32-$VERSION.zipfossil uv sync
Windows 64-bit using MSVC
- Run all of the following from a "x64 Native Tools Command Prompt"
- Set up in-tree OpenSSL:
- Install Strawberry-Perl if it is not already installed
- Download the OpenSSL tarball and unpack under
compat/ -
cdinto the OpenSSL source directory -
C:/Strawberry/perl/bin/perl Configure VC-WIN64A no-asm no-ssl3 no-weak-ssl-ciphers no-shared -
nmake /f makefile
cdinto thewin/subfolder of the Fossil source tree.nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 OPTIMIZATIONS=4 clean fossil.exe- Verify dependencies:
dumpbin /dependents fossil.exe zip fossil-w64-$VERSION.zip fossil.exefossil uv add fossil-w64-$VERSION.zipfossil uv sync