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

Changes To Release Build How-To

Changes to "Release Build How-To" between 2021-11-05 17:08:44 and 2021-11-27 12:02:16

︙
30
31
32
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
30
31
32
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







-
+

-
+
+





-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-



-
+


-
-
-
-
-
+
+
+
+







  *  `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 arm64 (cross-compiled from x64)
## Mac

  *  On the circa 2017 iMac (macOS Big Sur, x64) do:
  *  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:
     <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`
     <li> `CFLAGS="-Os -arch arm64" make -e`
     </ul>
  *  `./configure --with-openssl=tree`
  *  `TCCFLAGS="-Os -arch arm64" make -e clean fossil`
  *  Verify no shared library dependencies using:  `otool -L ./fossil`
  *  `strip fossil`
  *  Transfer the "fossil" binary to the iMac running Big Sur
  *  `codesign -s [email protected] fossil`
  *  Verify the signature using: `codesign -d -v fossil`
  *  `tar czf fossil-mac-arm-$VERSION.tar.gz fossil`
  *  `fossil uv add fossil-mac-arm-$VERSION.tar.gz`
  *  `fossil uv sync`


## Mac x64

  *  On the circa 2010 Macbook Air (running MacOS 10.13.6) do this:
  *  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/local/etc/openssl`
     <li> `CFLAGS=-Os make -e`
     </ul>
  *  `./configure --with-openssl=tree`
  *  `CFLAGS="-Os" make -e clean fossil`
  *  `CFLAGS=-Os make -e clean fossil`
  *  Verify no shared library dependencies using:  `otool -L ./fossil`
  *  `strip fossil`
  *  Transfer the "fossil" binary to the iMac running Big Sur
  *  `codesign -s [email protected] fossil`
  *  Verify the signature using: `codesign -d -v fossil`
  *  `tar czf fossil-macosx-$VERSION.tar.gz fossil`
  *  `fossil uv add fossil-macosx-$VERSION.tar.gz`
  *  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:
     <ul>
     <li> Download the OpenSSL tarball and unpack it into `compat/openssl`
︙