# Reproducible libtiff 4.6.0 build without JBIG

This recipe produces the `libtiff-6.dll` distributed with UtiliVera Scan.
It deliberately disables ISO JBIG support so the runtime has no import of
`libjbig-0.dll` or any `jbg_*` symbol.

## Inputs

- Source: `libtiff-v4.6.0.tar.gz`
- Source SHA-256: `88B3979E6D5C7E32B50D7EC72FB15AF724F6AB2CBF7E10880C360A77E4B5D99A`
- MSYS2 UCRT64 GCC 16.2.0
- CMake 4.4.2
- Ninja 1.13.2
- zlib 1.3.2 and libjpeg-turbo 3.2.0 from MSYS2 UCRT64

## Commands

```sh
tar -xf libtiff-v4.6.0.tar.gz
export SOURCE_DATE_EPOCH=1720000000
cmake -S tiff-4.6.0 -B build -G Ninja \
  -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON \
  -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-insert-timestamp" \
  -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF \
  -Djbig=OFF -Djpeg=ON -Dzlib=ON -Dlerc=OFF -Dlzma=OFF \
  -Dwebp=OFF -Dzstd=OFF -Dlibdeflate=OFF
cmake --build build --parallel 4
cp build/libtiff/libtiff.dll libtiff-6.dll
```

Two clean builds of this recipe produce the same 748,455-byte DLL with SHA-256
`C8DB0929714C40B4CD7C5BF9B0DFF8896A4440417B8267699235F09CEA6D201A`.
The release gate verifies that frozen output identity and scans every packaged
PE file to reject `libjbig` imports and `jbg_` symbols.
