Skip to content

Build without perl using meson #1477

Closed

Description

@lassik

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?

Activity

  1. ailin-nemui commented on Jul 19, 2023

    @ailin-nemui
    Contributor

    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

  2. vague666 commented on Jul 19, 2023

    @vague666
    Member

    You could prevent the perl module from being built by uninstalling the libperl-dev package (or similar depending on circumstances)

  3. lassik commented on Jul 19, 2023

    @lassik
    Author

    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

    That explains it. utils/syntax.pl?

  4. lassik commented on Jul 19, 2023

    @lassik
    Author

    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.

  5. ailin-nemui commented on Jul 19, 2023

    @ailin-nemui
    Contributor

    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

  6. lassik commented on Jul 19, 2023

    @lassik
    Author

    Fair enough.

    This should probably be explained in the INSTALL document. Would you look at a PR that updates the document if I send one?

  7. added this to the 1.4.5 milestone on Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions