Recovery engine runtime source material for MBUT 0.35.2 / MB Rescue 0.34.0
Prepared 16 October 2026

This archive supplies the identified source versions, maintainer patches and
build recipes for all seven DLLs carried in the PhotoRec 7.2 engine folder:

cygwin1.dll       Cygwin 3.1.4, Fedora Cygwin packaging 3.1.4-1
cyggcc_s-seh-1.dll GCC 11.2.0, Fedora Cygwin packaging 11.2.0-2
cygiconv-2.dll    libiconv 1.16, packaging 1.16-1
cygewf-2.dll      libewf 20140608, packaging 20140608-1
cygjpeg-8.dll     libjpeg-turbo 1.5.3, packaging 1.5.3-5
cygncursesw-10.dll ncurses 6.1.20190727, packaging 6.1-1.20190727
cygz.dll         zlib 1.2.11, packaging 1.2.11-2

Contents
Each component folder contains its source archive, unmodified maintainer
patches and RPM .spec build recipe. Five folders also retain the original
source RPM. GCC and Cygwin packaging was recovered from the maintainers'
official Git history because the old COPR source-RPM URLs have expired.
SOURCES.json records repository revisions, source URLs, DLL hashes and the
patch-application checks. SHA256SUMS.txt covers every other file in this ZIP.
Original copyright and licence texts remain inside the source archives.

Matching and verification
DLL versions, compiler/build strings and the upstream packaging records were
checked. The libewf DLL is byte-for-byte identical to the retained COPR binary.
The ncurses binary has identical code/data/import/relocation sections; its
remaining differences are build metadata. The other source sets are matched
by identified version and maintainer packaging, not by a reproduced binary.
All 26 patches apply in their recorded order to the supplied base sources.
GCC's source archive matches the checksum in the original packaging record.

Cygwin's base source is a fresh Git archive of the official 3.1.4 release tag,
commit 81b34409985ce31415a1d994ef744e72cfb8c378, paired with the five patches
and recipe in packaging commit 0f95f6ace32ae6166484290bf193124997734f6c.
Its archive-container checksum differs from the historic COPR tarball; this
is a canonical release-source export, not a copy of that historic archive.

Build guidance
These are Fedora/Linux cross-compilation recipes targeting 64-bit Cygwin.
Install the BuildRequires listed in the relevant .spec, including the
Fedora Cygwin filesystem macros, compiler, binutils and development headers.
Use the original RPM workflow (rpmbuild/mock), with source tarballs and patches
in SOURCES and the .spec in SPECS. Follow the .spec's %prep patch order and
%build configuration. The toolchain repositories used by PhotoRec are:
https://copr.fedorainfracloud.org/coprs/yselkowitz/cygwin/
https://copr.fedorainfracloud.org/coprs/grenier/cygwin-testdisk/
Their historical build dependencies may require archival packages.
For Cygwin, the supplied Git export has the newlib-cygwin/ root expected by
its .spec. For GCC, the supplied tarball has the gcc-11.2.0/ root.

The source and patches were checked; a complete independent compilation of
all seven DLLs was not performed. No claim of byte-reproducible builds is made.
No runnable toolkit files, driver packages or connection settings are changed.
