Skip to contentSkip to conversation

New release candidate for Xen 4.0.1

PATCH M A Young 5 participants 11 messages Jul 20, 2010 – Jul 23, 2010

lore
Share & tools
lore

M A Young

author
#0 lore raw

I have a minor fix for this. BASH_COMPLETION_DIR is used uninitialized in tools/libxl/Makefile which means that xl.sh can end up in / which is not ideal. The patch below sets a sensible default for this variable.

tools/libxl/Makefile renamed from tools/libxl/Makefile.orig +1 -0
@@ -4,6 +4,7 @@
 
 XEN_ROOT = ../..
 include $(XEN_ROOT)/tools/Rules.mk
+BASH_COMPLETION_DIR ?= /etc/bash_completion.d/
 
 MAJOR = 1.0
 MINOR = 0
#1 lore raw

Shouldn't this be in xen-unstable first, and then backported in the usual way?

K.

Quoted 22 lines · M A Young

I have a minor fix for this. BASH_COMPLETION_DIR is used uninitialized in tools/libxl/Makefile which means that xl.sh can end up in / which is not ideal.
The patch below sets a sensible default for this variable.

tools/libxl/Makefile 2010-07-16 19:39:46.000000000 +0100 renamed from tools/libxl/Makefile.orig 2010-07-16 18:27:14.000000000 +0100 +1 -0
@@ -4,6 +4,7 @@
 
  XEN_ROOT = ../..
  include $(XEN_ROOT)/tools/Rules.mk
+BASH_COMPLETION_DIR ?= /etc/bash_completion.d/
 
  MAJOR = 1.0
  MINOR = 0

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#2 lore raw
Quoted 2 lines · Keir Fraser

Shouldn't this be in xen-unstable first, and then backported in the usual way?

If that is the normal process then yes. I haven't checked whether this bug exists in xen-unstable, but a quick glance at the Makefile I am patching suggests that it probably does.

Michael Young

#3 lore raw
Quoted 8 lines · M A Young
Quoted 2 lines · Keir Fraser

Shouldn't this be in xen-unstable first, and then backported in the usual way?

If that is the normal process then yes. I haven't checked whether this bug exists in xen-unstable, but a quick glance at the Makefile I am patching suggests that it probably does.

The precise process for toolset patches now is that they get applied to
http://xenbits.xen.org/staging/xen-unstable-tools.hg by Ian Jackson or Stefano Stabellini. I merge that tree into main xen-unstable.hg nearly every day. Then, for 4.0.x and 3.4.x stable branches, Ian and Stefano nominate patches for backport from xen-unstable.

-- Keir

Quoted 1 line

Michael Young

#4 lore raw

One result of this process is that it makes it difficult to see changes via the xen-changelog mailing list as the pull by Keir into xen-unstable just shows up as a Merge, without any of the changeset title or log detail. Any way to fix this? If necessary, by adding the staging/xen-unstable-tools.hg tree to the changelog mailing list?

Quoted 39 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, July 21, 2010 4:23 AM
To: M A Young
Cc: Ian Campbell; [email protected]; Stefano Stabellini
Subject: Re: [PATCH] Re: [Xen-devel] New release candidate for Xen 4.0.1

Quoted 3 lines · M A Young
Quoted 1 line · Keir Fraser

Shouldn't this be in xen-unstable first, and then backported in the

usual

Quoted 3 lines
Quoted 1 line

way?

If that is the normal process then yes. I haven't checked whether

this

Quoted 2 lines

bug exists in xen-unstable, but a quick glance at the Makefile I am patching suggests that it probably does.

The precise process for toolset patches now is that they get applied to
http://xenbits.xen.org/staging/xen-unstable-tools.hg by Ian Jackson or Stefano Stabellini. I merge that tree into main xen-unstable.hg nearly every
day. Then, for 4.0.x and 3.4.x stable branches, Ian and Stefano nominate
patches for backport from xen-unstable.

-- Keir

Quoted 1 line

Michael Young

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

Er, no. There's still one email per changeset. You can ignore the merge
changesets: they're all trivial auto merges, and I'm not sure why they end up with an associated diff, it must be how mercurial consolidates and merges a branch.

-- Keir

Quoted 47 lines · Dan Magenheimer

One result of this process is that it makes it difficult to see changes via the xen-changelog mailing list as the pull by Keir into xen-unstable just shows up as a Merge, without any of the changeset title or log detail. Any way to fix this? If necessary, by adding the staging/xen-unstable-tools.hg tree to the changelog mailing list?

Quoted 39 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Wednesday, July 21, 2010 4:23 AM
To: M A Young
Cc: Ian Campbell; [email protected]; Stefano Stabellini
Subject: Re: [PATCH] Re: [Xen-devel] New release candidate for Xen 4.0.1

Quoted 3 lines · M A Young
Quoted 1 line · Keir Fraser

Shouldn't this be in xen-unstable first, and then backported in the

usual

Quoted 3 lines
Quoted 1 line

way?

If that is the normal process then yes. I haven't checked whether

this

Quoted 2 lines

bug exists in xen-unstable, but a quick glance at the Makefile I am patching suggests that it probably does.

The precise process for toolset patches now is that they get applied to
http://xenbits.xen.org/staging/xen-unstable-tools.hg by Ian Jackson or Stefano Stabellini. I merge that tree into main xen-unstable.hg nearly every
day. Then, for 4.0.x and 3.4.x stable branches, Ian and Stefano nominate
patches for backport from xen-unstable.

-- Keir

Quoted 1 line

Michael Young

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw

Keir Fraser writes ("Re: [PATCH] Re: [Xen-devel] New release candidate for Xen 4.0.1"):

Quoted 4 lines

Er, no. There's still one email per changeset. You can ignore the merge
changesets: they're all trivial auto merges, and I'm not sure why they end up with an associated diff, it must be how mercurial consolidates and merges a branch.

Right.

We could add the separate tools tree to the patchbot but it would result in every tools patch being mailed out twice.

Ian.

#7 lore raw
In reply to M A Young
Quoted 10 lines · M A Young

I have a minor fix for this. BASH_COMPLETION_DIR is used uninitialized in tools/libxl/Makefile which means that xl.sh can end up in / which is not ideal. The patch below sets a sensible default for this variable.

tools/libxl/Makefile line 10

Quoted 7 lines
tools/libxl/Makefile renamed from tools/libxl/Makefile.orig +1 -0
@@ -4,6 +4,7 @@
 
  XEN_ROOT = ../..
  include $(XEN_ROOT)/tools/Rules.mk
+BASH_COMPLETION_DIR ?= /etc/bash_completion.d/
 
  MAJOR = 1.0
  MINOR = 0

I would rather backport this to xen4.0:

# HG changeset patch
# User Keir Fraser <[email protected]>
# Date 1276064492 -3600
# Node ID 0c10e80e083b115313bfc213e7683f4fc3f761bc
# Parent 87fe942a90b1d96b5e378fa5b221fd8eeba439da
tools: fix install bash-completion files to non-default locations.

Config.mk +1 -1
diff -r 87fe942a90b1 -r 0c10e80e083b Config.mk
@@ -29,7 +29,7 @@ include $(XEN_ROOT)/config/$(XEN_TARGET_
 SHAREDIR    ?= $(PREFIX)/share
 DOCDIR      ?= $(SHAREDIR)/doc/xen
 MANDIR      ?= $(SHAREDIR)/man
-BASH_COMPLETION_DIR ?= /etc/bash_completion.d
+BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d
 
 ifneq ($(EXTRA_PREFIX),)
 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
author
#8 lore raw
Quoted 22 lines · Stefano Stabellini

I would rather backport this to xen4.0:

# HG changeset patch
# User Keir Fraser <[email protected]>
# Date 1276064492 -3600
# Node ID 0c10e80e083b115313bfc213e7683f4fc3f761bc
# Parent 87fe942a90b1d96b5e378fa5b221fd8eeba439da
tools: fix install bash-completion files to non-default locations.

diff -r 87fe942a90b1 -r 0c10e80e083b Config.mk

Config.mk +0 -0
@@ -29,7 +29,7 @@ include $(XEN_ROOT)/config/$(XEN_TARGET_
SHAREDIR    ?= $(PREFIX)/share
DOCDIR      ?= $(SHAREDIR)/doc/xen
MANDIR      ?= $(SHAREDIR)/man
Config.mk +1 -1
-BASH_COMPLETION_DIR ?= /etc/bash_completion.d
+BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d
Quoted 3 lines

ifneq ($(EXTRA_PREFIX),)
EXTRA_INCLUDES += $(EXTRA_PREFIX)/include

Adding that line at that place looks reasonable, though that patch won't work because there isn't currently a BASH_COMPLETION_DIR line in Config.mk, hence the original bug. It looks like the selective backport
http://xenbits.xensource.com/xen-4.0-testing.hg?rev/b1321a50f626
of xl stuff missed this.

Michael Young

#9 lore raw
Quoted 24 lines · M A Young
Quoted 22 lines · Stefano Stabellini

I would rather backport this to xen4.0:

# HG changeset patch
# User Keir Fraser <[email protected]>
# Date 1276064492 -3600
# Node ID 0c10e80e083b115313bfc213e7683f4fc3f761bc
# Parent 87fe942a90b1d96b5e378fa5b221fd8eeba439da
tools: fix install bash-completion files to non-default locations.

diff -r 87fe942a90b1 -r 0c10e80e083b Config.mk

Config.mk +0 -0
@@ -29,7 +29,7 @@ include $(XEN_ROOT)/config/$(XEN_TARGET_
SHAREDIR    ?= $(PREFIX)/share
DOCDIR      ?= $(SHAREDIR)/doc/xen
MANDIR      ?= $(SHAREDIR)/man
Config.mk +1 -1
-BASH_COMPLETION_DIR ?= /etc/bash_completion.d
+BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d
Quoted 9 lines
Quoted 3 lines

ifneq ($(EXTRA_PREFIX),)
EXTRA_INCLUDES += $(EXTRA_PREFIX)/include

Adding that line at that place looks reasonable, though that patch won't work because there isn't currently a BASH_COMPLETION_DIR line in Config.mk, hence the original bug. It looks like the selective backport
http://xenbits.xensource.com/xen-4.0-testing.hg?rev/b1321a50f626
of xl stuff missed this.

Indeed.
Thanks for pointing out this bug.

#10 lore raw
Quoted 8 lines · Stefano Stabellini
Quoted 5 lines

Adding that line at that place looks reasonable, though that patch won't work because there isn't currently a BASH_COMPLETION_DIR line in Config.mk, hence the original bug. It looks like the selective backport
http://xenbits.xensource.com/xen-4.0-testing.hg?rev/b1321a50f626
of xl stuff missed this.

Indeed.
Thanks for pointing out this bug.

Yeah, I think we need to net effect of xen-unstable changesets 21253, 21517 and 21565 on Config.mk. I can sort that out easy enough, it's still basically a one liner.

-- Keir