[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 20
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12 |
Date: |
Thu, 13 Aug 2015 11:37:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 13/08/2015 11:28, Peter Maydell wrote:
> config-host.mak is out-of-date, running configure
> ../../configure: 2789: local: -I/usr/include/glib-2.0: bad variable name
>
> line 2789 is
> local probe_cflags=$($pkg_config --cflags $1)
>
> 'local' isn't part of POSIX shell. It is supported by 'dash', but
> only in the form 'local varname ...', not the bash-specific
> 'local varname=value ...' form.
This is not entirely correct; dash is clearly supporting assignments in
local as well; we have:
local compiler="$1"
However, it's not automatically quoting the RHS of the assignment, like
normal variable assignment does. But since this RHS is a bit more
complex than usual, I'll just apply this:
diff --git a/configure b/configure
index 28bf755..6faeb00 100755
--- a/configure
+++ b/configure
@@ -2787,8 +2787,10 @@ fi
glib_pkg_config()
{
if $pkg_config --atleast-version=$glib_req_ver $1; then
- local probe_cflags=$($pkg_config --cflags $1)
- local probe_libs=$($pkg_config --libs $1)
+ local probe_cflags
+ local probe_libs
+ probe_cflags=$($pkg_config --cflags $1)
+ probe_libs=$($pkg_config --libs $1)
CFLAGS="$probe_cflags $CFLAGS"
LIBS="$probe_libs $LIBS"
libs_qga="$probe_libs $libs_qga"
Paolo
- [Qemu-devel] [PULL 12/20] exec: use macro ROUND_UP for alignment, (continued)
- [Qemu-devel] [PULL 12/20] exec: use macro ROUND_UP for alignment, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 14/20] qemu-nbd: remove unnecessary qemu_notify_event(), Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 15/20] configure: only add CONFIG_RDMA to config-host.h once, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 13/20] vhost-scsi: Clarify vhost_virtqueue_mask argument, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 16/20] scsi: create restart bottom half in the right AioContext, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 18/20] scsi-generic: identify AIO callbacks more clearly, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 17/20] scsi-disk: identify AIO callbacks more clearly, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 20/20] disas: Defeature print_target_address, Paolo Bonzini, 2015/08/12
- [Qemu-devel] [PULL 19/20] hw: fix mask for ColdFire UART command register, Paolo Bonzini, 2015/08/12
- Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12, Peter Maydell, 2015/08/13
- Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12,
Paolo Bonzini <=
- Prev by Date:
Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12
- Next by Date:
Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12
- Previous by thread:
Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12
- Next by thread:
Re: [Qemu-devel] [PULL 00/20] SCSI, build, TCG, RCU, misc patches for 2015-08-12
- Index(es):