From: Patrick Steinhardt <ps@pks.im>
To: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] meson: allow customize perl installation path
Date: Fri, 25 Apr 2025 08:25:38 +0200 [thread overview]
Message-ID: <aAsq4g_ddLZlKpVg@pks.im> (raw)
In-Reply-To: <80a2a6ce7c6b05323cf931cdc20d4decb6270002.1745507677.git.congdanhqx@gmail.com>
On Thu, Apr 24, 2025 at 10:16:18PM +0700, Đoàn Trần Công Danh wrote:
> diff --git a/meson.build b/meson.build
> index 223384b130b62..830deb9a069a6 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1826,14 +1826,19 @@ if perl_features_enabled
> perl_header_template = 'perl/header_templates/runtime_prefix.template.pl'
> endif
>
> + perllibdir = get_option('perllibdir')
> + if perllibdir == ''
> + perllibdir = get_option('datadir') / 'perl5'
> + endif
Makes sense. We try to do the "right thing" by default, but let the
users override the location.
> perl_header = configure_file(
> input: perl_header_template,
> output: 'GIT-PERL-HEADER',
> configuration: {
> 'GITEXECDIR_REL': get_option('libexecdir') / 'git-core',
> - 'PERLLIBDIR_REL': get_option('datadir') / 'perl5',
> + 'PERLLIBDIR_REL': perllibdir,
> 'LOCALEDIR_REL': get_option('datadir') / 'locale',
> - 'INSTLIBDIR': get_option('datadir') / 'perl5',
> + 'INSTLIBDIR': perllibdir,
> 'PATHSEP': pathsep,
> },
> )
> diff --git a/meson_options.txt b/meson_options.txt
> index 78d172a74019a..43f3f2d234a8e 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -1,3 +1,8 @@
> +# Configuration for Git installation
> +
Pedantic nit: let's drop this empty newline, we don't have it for any of
the other sections, either.
> +option('perllibdir', type: 'string', value: '',
> + description: 'Directory to install perl lib to. Default to <datadir>/perl5')
s/perl lib/the Perl library/
s/Default/Defaults/
The remainder of this patch looks good to me, thanks!
Patrick
next prev parent reply other threads:[~2025-04-25 6:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 15:16 [PATCH] meson: allow customize perl installation path Đoàn Trần Công Danh
2025-04-25 6:25 ` Patrick Steinhardt [this message]
2025-05-08 8:24 ` [PATCH v2] " Đoàn Trần Công Danh
2025-05-08 14:34 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aAsq4g_ddLZlKpVg@pks.im \
--to=ps@pks.im \
--cc=congdanhqx@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).