All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: tim@xen.org, keir@xen.org, ian.jackson@eu.citrix.com,
	jbeulich@suse.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: Install unstripped version -syms version into /usr/lib/debug
Date: Fri, 26 Jun 2015 10:55:51 +0100	[thread overview]
Message-ID: <1435312551.32500.157.camel@citrix.com> (raw)
In-Reply-To: <558D1FE4.9040209@citrix.com>

On Fri, 2015-06-26 at 10:48 +0100, Andrew Cooper wrote:
> > +BOOT_DIR defaults to /boot, DERBUG_DIR defaults to /usr/lib/debugt and
> 
> DERBUG and /debugt

Gah!

> > +EFI_DIR to /usr/lib64/efi.
> >  BOOT_DIR=
> > +DEBUG_DIR=
> >  EFI_DIR=
> >  
> >  The make target 'rpmball' will build a xen.rpm. This variable can be
> > diff --git a/config/StdGNU.mk b/config/StdGNU.mk
> > index f47c238..39d36b2 100644
> > --- a/config/StdGNU.mk
> > +++ b/config/StdGNU.mk
> > @@ -27,6 +27,7 @@ INSTALL_DATA = $(INSTALL) -m0644 -p
> >  INSTALL_PROG = $(INSTALL) -m0755 -p
> >  
> >  BOOT_DIR ?= /boot
> > +DEBUG_DIR ?= /usr/lib/debug
> 
> While I hate to day it, this probably needs /local/ handling for
> non-system builds, and this sounds autoconf'y.  How stable is the path
> across different systems?

This is used in xen/Makefile so autoconf is off the cards. So far we
already have BOOT_DIR and EFI_DIR which are special in this way. IMHO
adding DEBUG_DIR is fine. I don't think we will need this for tools/*
since what should happen there is we install the unstripped things (if
asked to do so) as usual and then the rpm/deb packaging tools will take
care of creating the detached debug info if they care. Normal users will
just get the stripped or unstripped versions install depending on what
they asked for.

I looked on Debian and at some Fedora wiki page and they both appear to
use /usr/lib/debug.

Ian.

> 
> ~Andrew
> 
> >  
> >  SOCKET_LIBS =
> >  UTIL_LIBS = -lutil
> > diff --git a/config/SunOS.mk b/config/SunOS.mk
> > index 21ea0c2..86a384d 100644
> > --- a/config/SunOS.mk
> > +++ b/config/SunOS.mk
> > @@ -19,6 +19,7 @@ INSTALL_DATA = $(INSTALL) -m0644 -p
> >  INSTALL_PROG = $(INSTALL) -m0755 -p
> >  
> >  BOOT_DIR ?= /boot
> > +DEBUG_DIR ?= /usr/lib/debug
> >  
> >  SunOS_LIBDIR = /usr/sfw/lib
> >  SunOS_LIBDIR_x86_64 = /usr/sfw/lib/amd64
> > diff --git a/xen/Makefile b/xen/Makefile
> > index b51dd36..6305880 100644
> > --- a/xen/Makefile
> > +++ b/xen/Makefile
> > @@ -44,7 +44,8 @@ _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
> >  	ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z)
> >  	ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z)
> >  	ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z)
> > -	$(INSTALL_DATA) $(TARGET)-syms $(D)$(BOOT_DIR)/$(T)-syms-$(XEN_FULLVERSION)
> > +	[ -d "$(D)$(DEBUG_DIR)" ] || $(INSTALL_DIR) $(D)$(DEBUG_DIR)
> > +	$(INSTALL_DATA) $(TARGET)-syms $(D)$(DEBUG_DIR)/$(T)-syms-$(XEN_FULLVERSION)
> >  	if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \
> >  		[ -d $(D)$(EFI_DIR) ] || $(INSTALL_DIR) $(D)$(EFI_DIR); \
> >  		$(INSTALL_DATA) $(TARGET).efi $(D)$(EFI_DIR)/$(T)-$(XEN_FULLVERSION).efi; \
> > @@ -67,7 +68,7 @@ _uninstall:
> >  	rm -f $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z)
> >  	rm -f $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z)
> >  	rm -f $(D)$(BOOT_DIR)/$(T)$(Z)
> > -	rm -f $(D)$(BOOT_DIR)/$(T)-syms-$(XEN_FULLVERSION)
> > +	rm -f $(D)$(DEBUG_DIR)/$(T)-syms-$(XEN_FULLVERSION)
> >  	rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_FULLVERSION).efi
> >  	rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION).efi
> >  	rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).efi
> 

  reply	other threads:[~2015-06-26  9:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26  9:41 [PATCH] xen: Install unstripped version -syms version into /usr/lib/debug Ian Campbell
2015-06-26  9:48 ` Andrew Cooper
2015-06-26  9:55   ` Ian Campbell [this message]
2015-06-26 10:05     ` Jan Beulich
2015-06-26 12:01       ` Ian Campbell
2015-06-26 12:52         ` Ian Jackson
2015-06-26 14:36           ` Ian Campbell
2015-06-30 14:19       ` Ian Campbell

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=1435312551.32500.157.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /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 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.