All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] configure: Add missing space when using --with-pkgversion
@ 2018-02-14 17:31 ` Thomas Huth
  0 siblings, 0 replies; 16+ messages in thread
From: Thomas Huth @ 2018-02-14 17:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Paolo Bonzini

When running configure with --with-pkgversion=foo there is no
space anymore between the version number and the parentheses:

$ m68k-softmmu/qemu-system-m68k -version
QEMU emulator version 2.11.50(foo)

Fix it by moving the space from the configure script to the Makefile.

Fixes: 67a1de0d195a6185c39b436159c9ffc7720bf979
Buglink: https://bugs.launchpad.net/qemu/+bug/1673373
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 Makefile  | 2 +-
 configure | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4ec7a3c..41adbc9 100644
--- a/Makefile
+++ b/Makefile
@@ -369,7 +369,7 @@ qemu-version.h: FORCE
 		(cd $(SRC_PATH); \
 		printf '#define QEMU_PKGVERSION '; \
 		if test -n "$(PKGVERSION)"; then \
-			printf '"$(PKGVERSION)"\n'; \
+			printf '" ($(PKGVERSION))"\n'; \
 		else \
 			if test -d .git; then \
 				printf '" ('; \
diff --git a/configure b/configure
index fe9eea9..1fc687c 100755
--- a/configure
+++ b/configure
@@ -1162,7 +1162,7 @@ for opt do
   ;;
   --disable-blobs) blobs="no"
   ;;
-  --with-pkgversion=*) pkgversion=" ($optarg)"
+  --with-pkgversion=*) pkgversion="$optarg"
   ;;
   --with-coroutine=*) coroutine="$optarg"
   ;;
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-02-15 14:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-14 17:31 [Qemu-trivial] [PATCH] configure: Add missing space when using --with-pkgversion Thomas Huth
2018-02-14 17:31 ` [Qemu-devel] " Thomas Huth
2018-02-14 18:33 ` [Qemu-trivial] " Peter Maydell
2018-02-14 18:33   ` Peter Maydell
2018-02-14 20:00   ` [Qemu-trivial] " Thomas Huth
2018-02-14 20:00     ` Thomas Huth
2018-02-14 20:15     ` [Qemu-trivial] " Eric Blake
2018-02-14 20:15       ` Eric Blake
2018-02-14 20:23 ` [Qemu-trivial] " Eric Blake
2018-02-14 20:23   ` Eric Blake
2018-02-15  6:02   ` [Qemu-trivial] " Thomas Huth
2018-02-15  6:02     ` Thomas Huth
2018-02-15 10:08     ` [Qemu-trivial] " Daniel P. Berrangé
2018-02-15 10:08       ` Daniel P. Berrangé
2018-02-15 14:11       ` [Qemu-trivial] " Eric Blake
2018-02-15 14:11         ` Eric Blake

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.