You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does one build git master without perl support?
Running meson setup Build -Dwith-perl=no and similar commans just outputs:
Program perl found: NO
meson.build:84:13: ERROR: Program 'perl' not found or not executable
The command $ meson configure | grep perl outputs:
Unable to evaluate subdir([]) in AstInterpreter --> Skipping
Unable to evaluate subdir([]) in AstInterpreter --> Skipping
Unable to evaluate subdir([]) in AstInterpreter --> Skipping
with-perl auto [auto, yes, no] ...
with-perl-lib ...
That looks like perl should be at "auto" setting, i.e. even the default build should cope with a missing perl.
Do the build scripts themselves depend on perl somehow?
Is there any interest in dropping the build-time dependency on Perl, or is this too niche to be worth anyone's time?
Meson has built-in features to do at least some of the things syntax.pl does, but I'm not sure whether it is sophisticated enough to do the whole job.
Another option would be to pre-run syntax.pl and put the generated doc files in release tarballs. This would mean that git builds require perl but release builds don't.
Another option would be to pre-run syntax.pl and put the generated doc files in release tarballs
this is what we've been doing with autotools, but since Perl is ubiquitous it seems quite pointless to complicate the process like that and risk desyncs
Activity
ailin-nemui commentedon Jul 19, 2023
The meson build scripts / build environment needs Perl to build the help files; with-perl=no can only be used to disable the Perl scripting module
vague666 commentedon Jul 19, 2023
You could prevent the perl module from being built by uninstalling the libperl-dev package (or similar depending on circumstances)
lassik commentedon Jul 19, 2023
That explains it.
utils/syntax.pl?lassik commentedon Jul 19, 2023
Is there any interest in dropping the build-time dependency on Perl, or is this too niche to be worth anyone's time?
Meson has built-in features to do at least some of the things
syntax.pldoes, but I'm not sure whether it is sophisticated enough to do the whole job.Another option would be to pre-run
syntax.pland put the generated doc files in release tarballs. This would mean that git builds require perl but release builds don't.ailin-nemui commentedon Jul 19, 2023
this is what we've been doing with autotools, but since Perl is ubiquitous it seems quite pointless to complicate the process like that and risk desyncs
lassik commentedon Jul 19, 2023
Fair enough.
This should probably be explained in the
INSTALLdocument. Would you look at a PR that updates the document if I send one?