CMake build configuration misses python3 dep
So this is definitely a minor issue since the workaround is just to install Python3, and I imagine most people building Poppler already have it. I use a minimal LXC (Arch) container for building though, and I reliably got a surprise error when make would reach generating poppler-enums.h
It's possible other GLib utilities rely on python too, but this failure appears to be triggered by glib-mkenums, which AFAICT is only used for the poppler-enums files. I've attached log excerpts with the relevant parts (GLib support) of a fresh run with cmake and make:
I'm still a novice on how cmake and pkg-config fit together, and I didn't get very far skimming the GLib code. After thinking it through though, I wonder if there are 2 distinct issues:
- Here at Poppler, for robustness' sake, should we include an explicit check for Python inside FindGLIB.cmake?
- Upstream at GLib, if/however they provide their package configuration, are they not marking the dependency?
- The distros seem to be left to make their own calls on this.
- Debian makes Python a hard dependency for the GLib dev package while Arch makes it optional.
Possible Tags: [build-system][minor], (maybe)[upstream]