3.99.2 tarball: meson -Dgtk_doc=false still enables gtk-doc, resulting in the RPM giving errors about /usr/bin/gtk-doc (and so on) being installed
While trying to package 3.99.2 it seems gtk_doc always ends up being enabled and even being installed, despite a %meson -Dgtk_doc=false. This because the gtk tarball ships gtk-doc as a subproject (plus Mageia Cauldron does not have gtk-doc 1.99). As a result, the rpm ends up giving an error about an installed gtk-doc mixed in with gtk:
Error:
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/bin/gtkdoc-check
[..etc..]
See http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20200930141703.ovitters.duvel.25738/log/gtk4.0-3.99.2-1.mga8/build.0.20200930141813.log for the RPM buildlog.
Revelant gtk-doc section:
Dependency gtk-doc found: NO found 1.32 but need: '>=1.99'
Run-time dependency gtk-doc found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency gtk-doc
|Executing subproject gtk-doc method meson
|
|Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
|Using 'PKG_CONFIG_PATH' from environment with value: ':/usr/lib64/pkgconfig:/usr/share/pkgconfig'
|Project name: gtk-doc
|Project version: 1.99
[..etc..]
|------
|Build targets in project: 2
|Subproject gtk-doc finished.
Dependency gtk-doc from subproject subprojects/gtk-doc found: YES 1.99
The spec file is at: http://svnweb.mageia.org/packages/cauldron/gtk4.0/current/SPECS/gtk4.0.spec?revision=1631323&view=markup
It has:
%meson \
-Dx11-backend=true \
-Dwayland-backend=true \
-Dbroadway-backend=true \
-Dxinerama=enabled \
-Dcolord=enabled \
-Dgtk_doc=false \
-Dman-pages=true \
-Dinstall-tests=false
We'll probably soon wipe the gtk_doc subproject in the spec file.