From: Stefan Weil <sw@weilnetz.de>
To: Michael Tokarev <mjt@tls.msk.ru>, qemu-trivial@nongnu.org
Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] po/Makefile: Fix source path for in-tree builds
Date: Sun, 27 Apr 2014 12:25:44 +0200 [thread overview]
Message-ID: <535CDB28.5090607@weilnetz.de> (raw)
In-Reply-To: <535CCFC7.1040605@msgid.tls.msk.ru>
Am 27.04.2014 11:37, schrieb Michael Tokarev:
>
> How about moving it below inclusion of config-host.mak and using something like
>
> SRC_PATH ?= $(realpath ..)
>
> ? I dunno how gnu'ish this construct is... :)
>
>
> However, I think I've a better fix for this:
>
> Author: Michael Tokarev <mjt@tls.msk.ru>
> Date: Sun Apr 27 13:32:07 2014 +0400
>
> po/Makefile: fix $SRC_PATH reference
>
> The rule for messages.po appears to be slightly wrong.
> Move the `cd' command within parens.
>
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> Cc: Stefan Weil <sw@weilnetz.de>
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
>
> diff --git a/po/Makefile b/po/Makefile
> index 705166e..669f865 100644
> --- a/po/Makefile
> +++ b/po/Makefile
> @@ -37,8 +37,8 @@ install: $(OBJS)
> $(call quiet-command, msgfmt -o $@ $<, " GEN $@")
>
> $(PO_PATH)/messages.po: $(SRC_PATH)/ui/gtk.c
> - $(call quiet-command, cd $(SRC_PATH) && \
> - (xgettext -o - --from-code=UTF-8 --foreign-user \
> + $(call quiet-command, ( cd $(SRC_PATH) && \
> + xgettext -o - --from-code=UTF-8 --foreign-user \
> --package-name=QEMU --package-version=$(VERSION) \
> --msgid-bugs-address=qemu-devel@nongnu.org -k_ -C ui/gtk.c | \
> sed -e s/CHARSET/UTF-8/) >$@, " GEN $@")
>
>
> Note the already existing parens () -- it looks like this is in order to
> run commands within a subshell (with its own current directory) but still
> have correct output redirection.
>
> If you don't have objections, I'll apply my version (it also fixes the issue).
>
> Thanks,
>
> /mjt
>
> Thanks,
>
> /mjt
>
Tested-by: Stefan Weil <sw@weilnetz.de>
Cheers,
Stefan
prev parent reply other threads:[~2014-04-27 10:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 11:55 [Qemu-trivial] [PATCH] po/Makefile: Fix source path for in-tree builds Stefan Weil
2014-04-27 9:37 ` Michael Tokarev
2014-04-27 10:25 ` Stefan Weil [this message]
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=535CDB28.5090607@weilnetz.de \
--to=sw@weilnetz.de \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=qemu-trivial@nongnu.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 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.