Trivial patches patches
The following changes since commit 474f3938d79ab36b9231c9ad3b5a9314c2aeacde:
Merge remote-tracking branch 'remotes/amarkovic/tags/mips-queue-jun-21-2019' into staging (2019-06-21 15:40:50 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/trivial-patches-pull-request
for you to fetch changes up to b827891d73778eaf962b0536f955194cf4faa424:
MAINTAINERS: Change maintership of Xen code under hw/9pfs (2019-06-26 18:30:03 +0200)
----------------------------------------------------------------
configure improvements and fixesMAINTAINERS update
----------------------------------------------------------------
Antonio Ospite (2):
configure: set source_path only once and make its definition more
robust
configure: disallow spaces and colons in source path and build path
Daniel P. Berrangé (1):
configure: use valid args testing sem_timedwait
Greg Kurz (1):
MAINTAINERS: Change maintership of Xen code under hw/9pfs
MAINTAINERS | 3 ++- Makefile | 4 ++++ configure | 13 +++++++++---- 3 files changed, 15 insertions(+), 5 deletions(-)
Signature · 1 line
2.21.0
[Qemu-devel] [PULL 1/4] configure: set source_path only once and make its definition more robust
From: Antonio Ospite <[email protected]>
Since commit 79d77bcd36 (configure: Remove --source-path option, 2019-04-29) source_path cannot be overridden anymore, move it out of the "default parameters" block since the word "default" may suggest that the value can change, while in fact it does not.
While at it, only set source_path once and separate the positional argument of basename with "--" to more robustly cover the case of path names starting with a dash.
Message-Id: <[email protected]>
--- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
configure +3 -3
@@ -276,10 +276,10 @@ ld_has() { $ld --help 2>/dev/null | grep ".$1" >/dev/null 2>&1 } -# default parameters -source_path=$(dirname "$0") # make source path absolute -source_path=$(cd "$source_path"; pwd) +source_path=$(cd "$(dirname -- "$0")"; pwd) + +# default parameters cpu="" iasl="iasl" interp_prefix="/usr/gnemul/qemu-%M"
Signature · 1 line
2.21.0
[Qemu-devel] [PULL 3/4] configure: use valid args testing sem_timedwait
In reply to Laurent VivierFrom: Daniel P. Berrangé <[email protected]>
The sem_timedwait function has been annotated as requiring non-null args in latest header files from GCC snapshot representing the future 2.30 release.
This causes configure to fail when -Werror is used:
config-temp/qemu-conf.c: In function ‘main’:config-temp/qemu-conf.c:2:25: error: null argument where non-null required (argument 1) [-Werror=nonnull]
2 | int main(void) { return sem_timedwait(0, 0); }
| ^~~~~~~~~~~~~config-temp/qemu-conf.c:2:25: error: null argument where non-null required (argument 2) [-Werror=nonnull]
Message-Id: <[email protected]>
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -5144,7 +5144,7 @@ fi sem_timedwait=no cat > $TMPC << EOF #include <semaphore.h> -int main(void) { return sem_timedwait(0, 0); } +int main(void) { sem_t s; struct timespec t = {0}; return sem_timedwait(&s, &t); } EOF if compile_prog "" "" ; then sem_timedwait=yes
Signature · 1 line
2.21.0
[Qemu-devel] [PULL 4/4] MAINTAINERS: Change maintership of Xen code under hw/9pfs
In reply to Laurent VivierFrom: Greg Kurz <[email protected]>
Xen folks are the actual maintainers for this.
Message-Id: <[email protected]>
--- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
MAINTAINERS +2 -1
@@ -408,7 +408,7 @@ M: Paul Durrant <[email protected]> L: [email protected] S: Supported F: */xen* -F: hw/9pfs/xen-9p-backend.c +F: hw/9pfs/xen-9p* F: hw/char/xen_console.c F: hw/display/xenfb.c F: hw/net/xen_nic.c
@@ -1498,6 +1498,7 @@ virtio-9p M: Greg Kurz <[email protected]> S: Supported F: hw/9pfs/ +X: hw/9pfs/xen-9p* F: fsdev/ F: tests/virtio-9p-test.c T: git https://github.com/gkurz/qemu.git 9p-next
Signature · 1 line
2.21.0
[Qemu-devel] [PULL 2/4] configure: disallow spaces and colons in source path and build path
In reply to Laurent VivierFrom: Antonio Ospite <[email protected]>
The configure script breaks when the qemu source directory is in a path containing white spaces, in particular the list of targets is not correctly generated when calling "./configure --help" because of how the default_target_list variable is built.
In addition to that, *building* qemu from a directory with spaces breaks some assumptions in the Makefiles, even if the original source path does not contain spaces like in the case of an out-of-tree build, or when symlinks are involved.
To avoid these issues, refuse to run the configure script and the Makefile if there are spaces or colons in the source path or the build path, taking as inspiration what the kbuild system in linux does.
Message-Id: <[email protected]>
--- Makefile | 4 ++++ configure | 5 +++++ 2 files changed, 9 insertions(+)
Makefile +4 -0
@@ -1,5 +1,9 @@ # Makefile for QEMU. +ifneq ($(words $(subst :, ,$(CURDIR))), 1) + $(error main directory cannot contain spaces nor colons) +endif + # Always point to the root of the build tree (needs GNU make). BUILD_DIR=$(CURDIR)
configure +5 -0
@@ -279,6 +279,11 @@ ld_has() { # make source path absolute source_path=$(cd "$(dirname -- "$0")"; pwd) +if printf %s\\n "$source_path" "$PWD" | grep -q "[[:space:]:]"; +then + error_exit "main directory cannot contain spaces nor colons" +fi + # default parameters cpu="" iasl="iasl"
Signature · 1 line
2.21.0
Peter Maydell
AppliedQuoted 11 lines · Laurent Vivier
The following changes since commit
474f3938d79ab36b9231c9ad3b5a9314c2aeacde:Merge remote-tracking branch 'remotes/amarkovic/tags/mips-queue-jun-21-2019' into staging (2019-06-21 15:40:50 +0100)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-patches-pull-requestfor you to fetch changes up to
b827891d73778eaf962b0536f955194cf4faa424:
Quoted 8 lines
MAINTAINERS: Change maintership of Xen code under hw/9pfs (2019-06-26 18:30:03 +0200)----------------------------------------------------------------
configure improvements and fixesMAINTAINERSupdate----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM