In Prefix, on Debian specifically: emerge dev-python/symengine CMake Error at CMakeLists.txt:5 (find_package): Could not find a package configuration file provided by "SymEngine" (requested version 0.7.0) with any of the following names: SymEngineConfig.cmake symengine-config.cmake This is due to modules installed by cmake looking at the presence of /etc/debian_version outside of the Prefix. Confirmed that this PR fixes this issue: https://github.com/gentoo/gentoo/pull/20274 Reproducible: Always Root cause is the same as in: https://bugs.gentoo.org/733480 https://bugs.gentoo.org/757006 Filing yet another bug to add weight to the Pull Request so that it is prioritized for merging.
Fixed by https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d