]> git.ipfire.org Git - thirdparty/git.git/commit
meson: fix perl detection when docs are enabled, but perl bindings aren't
authorEli Schwartz <eschwartz@gentoo.org>
Sun, 16 Mar 2025 06:06:05 +0000 (02:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Mar 2025 22:25:42 +0000 (15:25 -0700)
commit7c8cd9c1587d180e2d4aa6d0520c0a8ea1a551e6
treed93c9e1b3cae38aa8f32a9f5430e3e11a7365db5
parent683c54c999c301c2cd6f715c411407c413b1d84e
meson: fix perl detection when docs are enabled, but perl bindings aren't

The `perl` variable in meson.build is assigned to a program lookup,
which may have the value "not-found object" if configuring with
`-Dperl=disabled`.

There is already a list of other cases where we do need a perl command,
even when not building perl bindings. Building documentation should be
one of those cases, but was missing from the list. Add it.

Fixes:

```
$ meson setup builddir/ -Ddocs=man -Dperl=disabled -Dtests=false
[...]
Documentation/meson.build:308:22: ERROR: Tried to use not-found external program in "command"
```

Bug: https://bugs.gentoo.org/949247
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build