[Pkg-xen-changes] [xen] 89/128: version
Ian Campbell
ijc-guest at moszumanska.debian.org
Sat Jul 12 09:06:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
ijc-guest pushed a commit to branch feature/4.4-updates
in repository xen.
commit 27fa7a7f352b1e1854dc754800aebbaa7cd66e51
Author: Bastian Blank <waldi at debian.org>
Date: Sat Jul 5 11:46:43 2014 +0200
version
@DPATCH@
---
xen/Makefile | 7 ++++---
xen/common/kernel.c | 4 ++--
xen/common/version.c | 17 +++++++++++------
xen/drivers/char/console.c | 6 +++---
xen/include/xen/compile.h.in | 7 ++++---
xen/include/xen/version.h | 7 ++++---
6 files changed, 28 insertions(+), 20 deletions(-)
diff --git a/xen/Makefile b/xen/Makefile
index 39839a3..68d50ea 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -125,14 +125,15 @@ delete-unfresh-files:
include/xen/compile.h: include/xen/compile.h.in .banner
@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \
-e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \
- -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \
- -e 's/@@domain@@/$(XEN_DOMAIN)/g' \
- -e 's/@@hostname@@/$(shell hostname)/g' \
-e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) --version 2>&1 | head -1)!g' \
-e 's/@@version@@/$(XEN_VERSION)/g' \
-e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
-e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
-e 's!@@changeset@@!$(shell tools/scmversion $(XEN_ROOT) || echo "unavailable")!g' \
+ -e 's/@@system_distribution@@/$(shell lsb_release -is)/g' \
+ -e 's/@@system_maintainer_domain@@/$(shell cd ../../../..; dpkg-parsechangelog | sed -ne 's,^Maintainer: .[^<]*<[^@>]*@\([^>]*\)>,\1,p')/g' \
+ -e 's/@@system_maintainer_local@@/$(shell cd ../../../..; dpkg-parsechangelog | sed -ne 's,^Maintainer: .[^<]*<\([^@>]*\)@.*>,\1,p')/g' \
+ -e 's/@@system_version@@/$(shell cd ../../../..; dpkg-parsechangelog | awk '/^Version:/ {print $$2}')/g' \
< include/xen/compile.h.in > $@.new
@cat .banner
@$(PYTHON) tools/fig-to-oct.py < .banner >> $@.new
diff --git a/xen/common/kernel.c b/xen/common/kernel.c
index b371f8f..877d461 100644
--- a/xen/common/kernel.c
+++ b/xen/common/kernel.c
@@ -243,8 +243,8 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
{
struct xen_compile_info info;
safe_strcpy(info.compiler, xen_compiler());
- safe_strcpy(info.compile_by, xen_compile_by());
- safe_strcpy(info.compile_domain, xen_compile_domain());
+ safe_strcpy(info.compile_by, xen_compile_system_maintainer_local());
+ safe_strcpy(info.compile_domain, xen_compile_system_maintainer_domain());
safe_strcpy(info.compile_date, xen_compile_date());
if ( copy_to_guest(arg, &info, 1) )
return -EFAULT;
diff --git a/xen/common/version.c b/xen/common/version.c
index b152e27..8ad3c40 100644
--- a/xen/common/version.c
+++ b/xen/common/version.c
@@ -11,19 +11,24 @@ const char *xen_compile_time(void)
return XEN_COMPILE_TIME;
}
-const char *xen_compile_by(void)
+const char *xen_compile_system_distribution(void)
{
- return XEN_COMPILE_BY;
+ return XEN_COMPILE_SYSTEM_DISTRIBUTION;
}
-const char *xen_compile_domain(void)
+const char *xen_compile_system_maintainer_local(void)
{
- return XEN_COMPILE_DOMAIN;
+ return XEN_COMPILE_SYSTEM_MAINTAINER_LOCAL;
}
-const char *xen_compile_host(void)
+const char *xen_compile_system_maintainer_domain(void)
{
- return XEN_COMPILE_HOST;
+ return XEN_COMPILE_SYSTEM_MAINTAINER_DOMAIN;
+}
+
+const char *xen_compile_system_version(void)
+{
+ return XEN_COMPILE_SYSTEM_VERSION;
}
const char *xen_compiler(void)
diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index 532c426..bd1531b 100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -670,11 +670,11 @@ void __init console_init_preirq(void)
spin_lock(&console_lock);
__putstr(xen_banner());
spin_unlock(&console_lock);
- printk("Xen version %d.%d%s (%s@%s) (%s) debug=%c %s\n",
+ printk("Xen version %d.%d%s (%s %s) (%s@%s) (%s) debug=%c %s\n",
xen_major_version(), xen_minor_version(), xen_extra_version(),
- xen_compile_by(), xen_compile_domain(),
+ xen_compile_system_distribution(), xen_compile_system_version(),
+ xen_compile_system_maintainer_local(), xen_compile_system_maintainer_domain(),
xen_compiler(), debug_build() ? 'y' : 'n', xen_compile_date());
- printk("Latest ChangeSet: %s\n", xen_changeset());
if ( opt_sync_console )
{
diff --git a/xen/include/xen/compile.h.in b/xen/include/xen/compile.h.in
index 440ecb2..93edf4b 100644
--- a/xen/include/xen/compile.h.in
+++ b/xen/include/xen/compile.h.in
@@ -1,8 +1,9 @@
#define XEN_COMPILE_DATE "@@date@@"
#define XEN_COMPILE_TIME "@@time@@"
-#define XEN_COMPILE_BY "@@whoami@@"
-#define XEN_COMPILE_DOMAIN "@@domain@@"
-#define XEN_COMPILE_HOST "@@hostname@@"
+#define XEN_COMPILE_SYSTEM_DISTRIBUTION "@@system_distribution@@"
+#define XEN_COMPILE_SYSTEM_MAINTAINER_DOMAIN "@@system_maintainer_domain@@"
+#define XEN_COMPILE_SYSTEM_MAINTAINER_LOCAL "@@system_maintainer_local@@"
+#define XEN_COMPILE_SYSTEM_VERSION "@@system_version@@"
#define XEN_COMPILER "@@compiler@@"
#define XEN_VERSION @@version@@
diff --git a/xen/include/xen/version.h b/xen/include/xen/version.h
index 81a3c7d..e57db02 100644
--- a/xen/include/xen/version.h
+++ b/xen/include/xen/version.h
@@ -3,9 +3,10 @@
const char *xen_compile_date(void);
const char *xen_compile_time(void);
-const char *xen_compile_by(void);
-const char *xen_compile_domain(void);
-const char *xen_compile_host(void);
+const char *xen_compile_system_distribution(void);
+const char *xen_compile_system_maintainer_domain(void);
+const char *xen_compile_system_maintainer_local(void);
+const char *xen_compile_system_version(void);
const char *xen_compiler(void);
unsigned int xen_major_version(void);
unsigned int xen_minor_version(void);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xen/xen.git
More information about the Pkg-xen-changes
mailing list