Re: [PATCH] meson: Work around configure_file(copy:true) deprecation

2023-04-21 Thread Martin Kletzander
On Thu, Apr 20, 2023 at 02:30:46PM +0200, Michal Prívozník wrote: On 4/20/23 14:07, Martin Kletzander wrote: On Thu, Mar 23, 2023 at 05:01:26PM +0100, Michal Privoznik wrote: In our meson scripts, we use configure_file(copy:true) to copy files from srcdir into builddir. However, as of

Re: [PATCH] meson: Work around configure_file(copy:true) deprecation

2023-04-20 Thread Michal Prívozník
On 4/20/23 14:07, Martin Kletzander wrote: > On Thu, Mar 23, 2023 at 05:01:26PM +0100, Michal Privoznik wrote: >> In our meson scripts, we use configure_file(copy:true) to copy >> files from srcdir into builddir. However, as of meson-0.64.0, >> this is deprecated [1] in favor of using: >> >>  fs =

Re: [PATCH] meson: Work around configure_file(copy:true) deprecation

2023-04-20 Thread Martin Kletzander
On Thu, Mar 23, 2023 at 05:01:26PM +0100, Michal Privoznik wrote: In our meson scripts, we use configure_file(copy:true) to copy files from srcdir into builddir. However, as of meson-0.64.0, this is deprecated [1] in favor of using: fs = import('fs') fs.copyfile(in, out) Except, the

Re: [PATCH] meson: Work around configure_file(copy:true) deprecation

2023-04-18 Thread Michal Prívozník
On 3/23/23 17:01, Michal Privoznik wrote: > Polite ping. Michal

[PATCH] meson: Work around configure_file(copy:true) deprecation

2023-03-23 Thread Michal Privoznik
In our meson scripts, we use configure_file(copy:true) to copy files from srcdir into builddir. However, as of meson-0.64.0, this is deprecated [1] in favor of using: fs = import('fs') fs.copyfile(in, out) Except, the submodule's new method wasn't introduced until 0.64.0. And since we can't