It looks like the Fedora and OpenSUSE yosys packagers are having similar issues:
https://github.com/YosysHQ/yosys/issues/6028 Their approach is to ignore the bundled libraries and using existing packages or packaging the libraries. This is probably the same path Debian should follow. boost_regex, cxxopts, fmt and tomlplusplus are already packaged so only slang would be new. (The libslang2 packages are not the right slang). I think most of the Makefile patches can just be dropped, rather than ported to cmake as there should be much less scripting which is what needed to be changed. If you get some sort of build working then lintian and the reproducible build tools will soon spot if something needs to be addressed. Cheers, Scott

