From: "Daniel P. Berrangé" <berrange@redhat.com>
To: marcandre.lureau@redhat.com
Cc: qemu-devel@nongnu.org, "John Snow" <jsnow@redhat.com>,
kraxel@redhat.com, "Beraldo Leal" <bleal@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
pbonzini@redhat.com, "Eric Farman" <farman@linux.ibm.com>,
"David Hildenbrand" <david@redhat.com>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Cleber Rosa" <crosa@redhat.com>,
thuth@redhat.com, "Halil Pasic" <pasic@linux.ibm.com>,
"Michael Roth" <michael.roth@amd.com>,
"Li-Wen Hsu" <lwhsu@freebsd.org>,
qemu-s390x@nongnu.org,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Ed Maste" <emaste@freebsd.org>
Subject: Re: [PATCH v4 3/8] configure: replace Perl usage with sed
Date: Tue, 10 Jan 2023 13:35:10 +0000 [thread overview]
Message-ID: <Y71pjipeYl2ByOjt@redhat.com> (raw)
In-Reply-To: <20230110132700.833690-4-marcandre.lureau@redhat.com>
On Tue, Jan 10, 2023 at 05:26:55PM +0400, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Let's try to reduce our Perl usage during config/build-time.
>
> Note: this patch might be dropped if "configure: remove
> backwards-compatibility code" is merged earlier.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Tested-by: Thomas Huth <thuth@redhat.com>
> ---
> configure | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/configure b/configure
> index 2281892657..9a944698b4 100755
> --- a/configure
> +++ b/configure
> @@ -2571,11 +2571,9 @@ else
> if test -f meson-private/cmd_line.txt; then
> # Adjust old command line options whose type was changed
> # Avoids having to use "setup --wipe" when Meson is upgraded
> - perl -i -ne '
> - s/^gettext = true$/gettext = auto/;
> - s/^gettext = false$/gettext = disabled/;
> - /^b_staticpic/ && next;
> - print;' meson-private/cmd_line.txt
> + sed -i.bak -e 's/^gettext = true$/gettext = auto/g' \
> + -e 's/^gettext = false$/gettext = disabled/g' \
> + -e '/^b_staticpic/d' meson-private/cmd_line.txt
Do we really need to have a '.bak' file created ? The original
perl cmd didn't
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2023-01-10 15:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 13:26 [PATCH v4 0/8] Fix win32/msys2 shader compilation & update lcitool deps marcandre.lureau
2023-01-10 13:26 ` [PATCH v4 1/8] build-sys: fix crlf-ending C code marcandre.lureau
2023-01-10 13:26 ` [PATCH v4 2/8] .gitlab-ci.d/windows: do not disable opengl marcandre.lureau
2023-01-10 13:26 ` [PATCH v4 3/8] configure: replace Perl usage with sed marcandre.lureau
2023-01-10 13:35 ` Daniel P. Berrangé [this message]
2023-01-10 13:26 ` [PATCH v4 4/8] meson: replace Perl usage with Python marcandre.lureau
2023-01-10 13:33 ` Daniel P. Berrangé
2023-01-10 13:26 ` [PATCH v4 5/8] docs: drop texinfo options marcandre.lureau
2023-01-10 13:35 ` Daniel P. Berrangé
2023-01-10 13:26 ` [PATCH v4 6/8] Update lcitool and fedora to 37 marcandre.lureau
2023-01-19 12:29 ` Alex Bennée
2023-01-10 13:26 ` [PATCH v4 7/8] lcitool: drop perl from QEMU project/dependencies marcandre.lureau
2023-01-10 13:36 ` Daniel P. Berrangé
2023-01-10 13:27 ` [PATCH v4 8/8] lcitool: drop texinfo " marcandre.lureau
2023-01-10 13:37 ` Daniel P. Berrangé
2023-01-16 10:06 ` Alex Bennée
2023-01-16 10:21 ` Marc-André Lureau
2023-01-16 14:52 ` Alex Bennée
2023-01-16 10:46 ` Daniel P. Berrangé
2023-01-16 12:09 ` Alex Bennée
2023-01-10 16:35 ` [PATCH v4 0/8] Fix win32/msys2 shader compilation & update lcitool deps Alex Bennée
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=Y71pjipeYl2ByOjt@redhat.com \
--to=berrange@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=bleal@redhat.com \
--cc=borntraeger@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=crosa@redhat.com \
--cc=david@redhat.com \
--cc=emaste@freebsd.org \
--cc=farman@linux.ibm.com \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=lwhsu@freebsd.org \
--cc=marcandre.lureau@redhat.com \
--cc=michael.roth@amd.com \
--cc=pasic@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
--cc=wainersm@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.