xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: "xen.org" <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, keir@xen.org,
	Jan Beulich <JBeulich@suse.com>,
	stefano.stabellini@eu.citrix.com
Subject: Re: [xen-unstable bisection] complete test-amd64-i386-rhel6hvm-intel
Date: Sun, 21 Jul 2013 06:30:07 +0100	[thread overview]
Message-ID: <1374384607.4127.6.camel@hastur.hellion.org.uk> (raw)
In-Reply-To: <E1V0kHp-0000U4-Nw@woking.cam.xci-test.com>

On Sun, 2013-07-21 at 04:26 +0100, xen.org wrote:
>   commit 524b93def23b9f75fd7851063f5291886e63d1ed
>   Author: Ian Campbell <ian.campbell@citrix.com>
>   Date:   Thu Jul 18 09:41:41 2013 +0100
>   
>       xen: x86: drop the ".gz" suffix when installing
>       
>       As Jan says it is pretty meaningless under /boot anyway. However I am slightly
>       concerned about breaking bootloaders (or more specifically their help scripts
>       which automatically generate config files). By inspection at least grub 2's
>       update-grub script (as present in Debian Wheezy) seems to cope (it matches on
>       xen* not xen*.gz)

Looks like update-grub in Squeeze doesn't handle this case well.
http://www.chiark.greenend.org.uk/~xensrcts/logs/18537/test-amd64-amd64-xl/4.ts-xen-install.log shows osstest failing to find any hypervisor stanzas in grub.cfg and http://www.chiark.greenend.org.uk/~xensrcts/logs/18537/test-amd64-amd64-xl/field-cricket--grub.cfg.1 shows that there are indeed none present...

Lets just undo things for now:

8<------------------------------

>From 5f7b0c68d3721fd2eef80f7e23466425b55d21af Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@citrix.com>
Date: Sun, 21 Jul 2013 06:24:30 +0100
Subject: [PATCH] xen: x86: put back .gz suffix on installed hypervisor binary.

This reverts the effect of 524b93def23b "xen: x86: drop the ".gz" suffix when
installing" which broke things in osstest (Debian Squeeze update-grub apparently
can't cope). It is not a direct revert because of other changes made since.

We continue to omit the suffix on ARM.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: jbeulich@suse.com
---
 xen/Makefile |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/xen/Makefile b/xen/Makefile
index 2abfa58..597972d 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -34,12 +34,13 @@ _build: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
 .PHONY: _install
 _install: D=$(DESTDIR)
 _install: T=$(notdir $(TARGET))
+_install: Z=$(CONFIG_XEN_INSTALL_SUFFIX)
 _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
 	[ -d $(D)/boot ] || $(INSTALL_DIR) $(D)/boot
-	$(INSTALL_DATA) $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX) $(D)/boot/$(T)-$(XEN_FULLVERSION)
-	ln -f -s $(T)-$(XEN_FULLVERSION) $(D)/boot/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)
-	ln -f -s $(T)-$(XEN_FULLVERSION) $(D)/boot/$(T)-$(XEN_VERSION)
-	ln -f -s $(T)-$(XEN_FULLVERSION) $(D)/boot/$(T)
+	$(INSTALL_DATA) $(TARGET)$(Z) $(D)/boot/$(T)-$(XEN_FULLVERSION)$(Z)
+	ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)/boot/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z)
+	ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)/boot/$(T)-$(XEN_VERSION)$(Z)
+	ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)/boot/$(T)$(Z)
 	$(INSTALL_DATA) $(TARGET)-syms $(D)/boot/$(T)-syms-$(XEN_FULLVERSION)
 	if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \
 		[ -d $(D)$(EFI_DIR) ] || $(INSTALL_DIR) $(D)$(EFI_DIR); \
@@ -57,11 +58,12 @@ _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
 .PHONY: _uninstall
 _uninstall: D=$(DESTDIR)
 _uninstall: T=$(notdir $(TARGET))
+_uninstall: Z=$(CONFIG_XEN_INSTALL_SUFFIX)
 _uninstall:
-	rm -f $(D)/boot/$(T)-$(XEN_FULLVERSION)
-	rm -f $(D)/boot/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)
-	rm -f $(D)/boot/$(T)-$(XEN_VERSION)
-	rm -f $(D)/boot/$(T)
+	rm -f $(D)/boot/$(T)-$(XEN_FULLVERSION)$(Z)
+	rm -f $(D)/boot/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z)
+	rm -f $(D)/boot/$(T)-$(XEN_VERSION)$(Z)
+	rm -f $(D)/boot/$(T)$(Z)
 	rm -f $(D)/boot/$(T)-syms-$(XEN_FULLVERSION)
 	rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_FULLVERSION).efi
 	rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION).efi
-- 
1.7.2.5

  reply	other threads:[~2013-07-21  5:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-21  3:26 [xen-unstable bisection] complete test-amd64-i386-rhel6hvm-intel xen.org
2013-07-21  5:30 ` Ian Campbell [this message]
2013-07-21 15:15   ` Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2013-02-06  7:04 xen.org
2012-02-25 16:48 xen.org
2011-11-21  3:40 xen.org
2011-11-21 11:37 ` Ian Jackson
2011-11-21 11:55   ` Keir Fraser
2011-11-21 18:47     ` Keir Fraser
2011-11-21 19:43       ` Jean Guyader
2011-11-21 21:32         ` Keir Fraser
2011-11-21 21:51           ` Jean Guyader
2011-09-01 15:54 xen.org
2011-09-01 16:26 ` Ian Jackson
2011-09-01 17:22   ` Laszlo Ersek
2011-09-02  7:11     ` Ian Campbell
2011-09-01 17:48   ` Laszlo Ersek
2011-09-01 19:28   ` Andrew Jones
2011-09-02 11:08     ` Ian Jackson
2011-07-07 14:41 xen.org
2010-12-22  2:12 xen.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1374384607.4127.6.camel@hastur.hellion.org.uk \
    --to=ian.campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).