All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-xen-4.5 0/3] tools: build system fixes and cleanups
@ 2014-12-02 15:16 Daniel Kiper
  2014-12-02 15:16 ` [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure Daniel Kiper
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Daniel Kiper @ 2014-12-02 15:16 UTC (permalink / raw)
  To: xen-devel; +Cc: keir, ian.campbell, andrew.cooper3, ian.jackson, jbeulich

Hi,

Here are three tools build system patches:
  - tools/hotplug: distclean target should remove files generated by configure,
  - gitignore: ignore some files generated by configure,
  - gitignore: group tools/hotplug files in one place.

First two are real fixes. Last one is a cleanup which is nice to have
but not required at this stage of 4.5 development.

Daniel

 .gitignore             |   12 +++++++-----
 tools/Makefile         |    3 +++
 tools/hotplug/Makefile |    5 ++++-
 3 files changed, 14 insertions(+), 6 deletions(-)

Daniel Kiper (3):
      tools/hotplug: distclean target should remove files generated by configure
      gitignore: ignore some files generated by configure
      gitignore: group tools/hotplug files in one place

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

* [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-02 15:16 [PATCH for-xen-4.5 0/3] tools: build system fixes and cleanups Daniel Kiper
@ 2014-12-02 15:16 ` Daniel Kiper
  2014-12-02 18:36   ` Konrad Rzeszutek Wilk
  2014-12-09 14:35   ` Ian Campbell
  2014-12-02 15:16 ` [PATCH for-xen-4.5 2/3] gitignore: ignore some " Daniel Kiper
  2014-12-02 15:16 ` [PATCH for-xen-4.5 3/3] gitignore: group tools/hotplug files in one place Daniel Kiper
  2 siblings, 2 replies; 14+ messages in thread
From: Daniel Kiper @ 2014-12-02 15:16 UTC (permalink / raw)
  To: xen-devel
  Cc: keir, ian.campbell, andrew.cooper3, Daniel Kiper, ian.jackson,
	jbeulich

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
---
 tools/Makefile         |    3 +++
 tools/hotplug/Makefile |    5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index af9798a..19b24f3 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -261,6 +261,9 @@ subdir-all-debugger/kdd: .phony
 subdir-distclean-firmware: .phony
 	$(MAKE) -C firmware distclean
 
+subdir-distclean-hotplug: .phony
+	$(MAKE) -C hotplug distclean
+
 subtree-force-update:
 ifeq ($(CONFIG_QEMU_XEN),y)
 	$(MAKE) qemu-xen-dir-force-update
diff --git a/tools/hotplug/Makefile b/tools/hotplug/Makefile
index 14ae9a8..a29a522 100644
--- a/tools/hotplug/Makefile
+++ b/tools/hotplug/Makefile
@@ -6,5 +6,8 @@ SUBDIRS-$(CONFIG_NetBSD) += NetBSD
 SUBDIRS-$(CONFIG_Linux) += Linux
 SUBDIRS-$(CONFIG_FreeBSD) += FreeBSD
 
-.PHONY: all clean install
+.PHONY: all clean distclean install
 all clean install: %: subdirs-%
+
+distclean:
+	rm -f Linux/init.d/sysconfig.xencommons Linux/init.d/xencommons NetBSD/rc.d/xencommons
-- 
1.7.10.4

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

* [PATCH for-xen-4.5 2/3] gitignore: ignore some files generated by configure
  2014-12-02 15:16 [PATCH for-xen-4.5 0/3] tools: build system fixes and cleanups Daniel Kiper
  2014-12-02 15:16 ` [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure Daniel Kiper
@ 2014-12-02 15:16 ` Daniel Kiper
  2014-12-04 13:25   ` Ian Campbell
  2014-12-02 15:16 ` [PATCH for-xen-4.5 3/3] gitignore: group tools/hotplug files in one place Daniel Kiper
  2 siblings, 1 reply; 14+ messages in thread
From: Daniel Kiper @ 2014-12-02 15:16 UTC (permalink / raw)
  To: xen-devel
  Cc: keir, ian.campbell, andrew.cooper3, Daniel Kiper, ian.jackson,
	jbeulich

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
---
 .gitignore |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitignore b/.gitignore
index b24e905..2b51d5f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -141,12 +141,15 @@ tools/flask/utils/flask-set-bool
 tools/flask/utils/flask-label-pci
 tools/hotplug/common/hotplugpath.sh
 tools/hotplug/FreeBSD/rc.d/xencommons
+tools/hotplug/Linux/init.d/sysconfig.xencommons
 tools/hotplug/Linux/init.d/xen-watchdog
+tools/hotplug/Linux/init.d/xencommons
 tools/hotplug/Linux/init.d/xendomains
 tools/hotplug/Linux/vif-setup
 tools/hotplug/Linux/xen-backend.rules
 tools/hotplug/Linux/xen-hotplug-common.sh
 tools/hotplug/Linux/xendomains
+tools/hotplug/NetBSD/rc.d/xencommons
 tools/include/xen/*
 tools/include/xen-foreign/*.(c|h|size)
 tools/include/xen-foreign/checker
-- 
1.7.10.4

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

* [PATCH for-xen-4.5 3/3] gitignore: group tools/hotplug files in one place
  2014-12-02 15:16 [PATCH for-xen-4.5 0/3] tools: build system fixes and cleanups Daniel Kiper
  2014-12-02 15:16 ` [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure Daniel Kiper
  2014-12-02 15:16 ` [PATCH for-xen-4.5 2/3] gitignore: ignore some " Daniel Kiper
@ 2014-12-02 15:16 ` Daniel Kiper
  2 siblings, 0 replies; 14+ messages in thread
From: Daniel Kiper @ 2014-12-02 15:16 UTC (permalink / raw)
  To: xen-devel
  Cc: keir, ian.campbell, andrew.cooper3, Daniel Kiper, ian.jackson,
	jbeulich

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
---
 .gitignore |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 2b51d5f..8c8c06f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -145,6 +145,10 @@ tools/hotplug/Linux/init.d/sysconfig.xencommons
 tools/hotplug/Linux/init.d/xen-watchdog
 tools/hotplug/Linux/init.d/xencommons
 tools/hotplug/Linux/init.d/xendomains
+tools/hotplug/Linux/systemd/*.conf
+tools/hotplug/Linux/systemd/*.mount
+tools/hotplug/Linux/systemd/*.socket
+tools/hotplug/Linux/systemd/*.service
 tools/hotplug/Linux/vif-setup
 tools/hotplug/Linux/xen-backend.rules
 tools/hotplug/Linux/xen-hotplug-common.sh
@@ -329,8 +333,3 @@ tools/xenstore/xenstore-watch
 docs/txt/misc/*.txt
 docs/txt/man/*.txt
 docs/figs/*.png
-
-tools/hotplug/Linux/systemd/*.conf
-tools/hotplug/Linux/systemd/*.mount
-tools/hotplug/Linux/systemd/*.socket
-tools/hotplug/Linux/systemd/*.service
-- 
1.7.10.4

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-02 15:16 ` [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure Daniel Kiper
@ 2014-12-02 18:36   ` Konrad Rzeszutek Wilk
  2014-12-03 15:53     ` Daniel Kiper
  2014-12-05  1:53     ` Konrad Rzeszutek Wilk
  2014-12-09 14:35   ` Ian Campbell
  1 sibling, 2 replies; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-02 18:36 UTC (permalink / raw)
  To: Daniel Kiper
  Cc: keir, ian.campbell, andrew.cooper3, ian.jackson, jbeulich,
	xen-devel

On Tue, Dec 02, 2014 at 04:16:28PM +0100, Daniel Kiper wrote:
> Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>

This usage scenario which I can see this being useful (and
I've tripped over this) is when you rebuild a new version
from the same repo. As in, this affects developers, but
not end-users and not distros. But perhaps I am missing
one scenario?

As such I would lean towards deferring this (and the other
two) to Xen 4.6.

Thank you!
> ---
>  tools/Makefile         |    3 +++
>  tools/hotplug/Makefile |    5 ++++-
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/Makefile b/tools/Makefile
> index af9798a..19b24f3 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -261,6 +261,9 @@ subdir-all-debugger/kdd: .phony
>  subdir-distclean-firmware: .phony
>  	$(MAKE) -C firmware distclean
>  
> +subdir-distclean-hotplug: .phony
> +	$(MAKE) -C hotplug distclean
> +
>  subtree-force-update:
>  ifeq ($(CONFIG_QEMU_XEN),y)
>  	$(MAKE) qemu-xen-dir-force-update
> diff --git a/tools/hotplug/Makefile b/tools/hotplug/Makefile
> index 14ae9a8..a29a522 100644
> --- a/tools/hotplug/Makefile
> +++ b/tools/hotplug/Makefile
> @@ -6,5 +6,8 @@ SUBDIRS-$(CONFIG_NetBSD) += NetBSD
>  SUBDIRS-$(CONFIG_Linux) += Linux
>  SUBDIRS-$(CONFIG_FreeBSD) += FreeBSD
>  
> -.PHONY: all clean install
> +.PHONY: all clean distclean install
>  all clean install: %: subdirs-%
> +
> +distclean:
> +	rm -f Linux/init.d/sysconfig.xencommons Linux/init.d/xencommons NetBSD/rc.d/xencommons
> -- 
> 1.7.10.4
> 

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-02 18:36   ` Konrad Rzeszutek Wilk
@ 2014-12-03 15:53     ` Daniel Kiper
  2014-12-03 20:36       ` Konrad Rzeszutek Wilk
  2014-12-05  1:53     ` Konrad Rzeszutek Wilk
  1 sibling, 1 reply; 14+ messages in thread
From: Daniel Kiper @ 2014-12-03 15:53 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: keir, ian.campbell, andrew.cooper3, ian.jackson, jbeulich,
	xen-devel

On Tue, Dec 02, 2014 at 01:36:20PM -0500, Konrad Rzeszutek Wilk wrote:
> On Tue, Dec 02, 2014 at 04:16:28PM +0100, Daniel Kiper wrote:
> > Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
>
> This usage scenario which I can see this being useful (and
> I've tripped over this) is when you rebuild a new version
> from the same repo. As in, this affects developers, but
> not end-users and not distros. But perhaps I am missing
> one scenario?
>
> As such I would lean towards deferring this (and the other
> two) to Xen 4.6.

As I know Debian build system sometimes complain if make distclean
does not leave build tree in distclean state (read "state before
configure" != "state after distclean"). It means that from
distros point of view we should apply this patch. However,
other two are not required and we can deffer them to Xen 4.6.

Daniel

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-03 15:53     ` Daniel Kiper
@ 2014-12-03 20:36       ` Konrad Rzeszutek Wilk
  2014-12-04  8:17         ` [Pkg-xen-devel] " Ian Campbell
  0 siblings, 1 reply; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-03 20:36 UTC (permalink / raw)
  To: Daniel Kiper, abe, pkg-xen-devel
  Cc: keir, ian.campbell, andrew.cooper3, ian.jackson, jbeulich,
	xen-devel

On Wed, Dec 03, 2014 at 04:53:53PM +0100, Daniel Kiper wrote:
> On Tue, Dec 02, 2014 at 01:36:20PM -0500, Konrad Rzeszutek Wilk wrote:
> > On Tue, Dec 02, 2014 at 04:16:28PM +0100, Daniel Kiper wrote:
> > > Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
> >
> > This usage scenario which I can see this being useful (and
> > I've tripped over this) is when you rebuild a new version
> > from the same repo. As in, this affects developers, but
> > not end-users and not distros. But perhaps I am missing
> > one scenario?
> >
> > As such I would lean towards deferring this (and the other
> > two) to Xen 4.6.
> 
> As I know Debian build system sometimes complain if make distclean
> does not leave build tree in distclean state (read "state before
> configure" != "state after distclean"). It means that from
> distros point of view we should apply this patch. However,
> other two are not required and we can deffer them to Xen 4.6.

Cc-ing Axel and Debian Xen Team.
> 
> Daniel

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

* Re: [Pkg-xen-devel] [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-03 20:36       ` Konrad Rzeszutek Wilk
@ 2014-12-04  8:17         ` Ian Campbell
  0 siblings, 0 replies; 14+ messages in thread
From: Ian Campbell @ 2014-12-04  8:17 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: keir, pkg-xen-devel, Daniel Kiper, ian.jackson, jbeulich,
	andrew.cooper3, xen-devel, abe

On Wed, 2014-12-03 at 15:36 -0500, Konrad Rzeszutek Wilk wrote:
> On Wed, Dec 03, 2014 at 04:53:53PM +0100, Daniel Kiper wrote:
> > On Tue, Dec 02, 2014 at 01:36:20PM -0500, Konrad Rzeszutek Wilk wrote:
> > > On Tue, Dec 02, 2014 at 04:16:28PM +0100, Daniel Kiper wrote:
> > > > Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
> > >
> > > This usage scenario which I can see this being useful (and
> > > I've tripped over this) is when you rebuild a new version
> > > from the same repo. As in, this affects developers, but
> > > not end-users and not distros. But perhaps I am missing
> > > one scenario?
> > >
> > > As such I would lean towards deferring this (and the other
> > > two) to Xen 4.6.
> > 
> > As I know Debian build system sometimes complain if make distclean
> > does not leave build tree in distclean state (read "state before
> > configure" != "state after distclean"). It means that from
> > distros point of view we should apply this patch. However,
> > other two are not required and we can deffer them to Xen 4.6.
> 
> Cc-ing Axel and Debian Xen Team.

Debian is shipping 4.4 in the next release (8, Jessie, already frozen)
and I think it likely that the release after that will ship something
greater than 4.5 due to the timelines involved.

In any case, the Debian Xen packages cannot have any bugs of the kind
mentioned here because the package copyies the source to
debian/build/foo (for reasons other than distclean) and nuking the
entire of debian/build on clean.

Ian.

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

* Re: [PATCH for-xen-4.5 2/3] gitignore: ignore some files generated by configure
  2014-12-02 15:16 ` [PATCH for-xen-4.5 2/3] gitignore: ignore some " Daniel Kiper
@ 2014-12-04 13:25   ` Ian Campbell
  2014-12-05 14:52     ` Daniel Kiper
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Campbell @ 2014-12-04 13:25 UTC (permalink / raw)
  To: Daniel Kiper; +Cc: xen-devel, keir, ian.jackson, jbeulich, andrew.cooper3

On Tue, 2014-12-02 at 16:16 +0100, Daniel Kiper wrote:
> Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>

.gitignore updates seem harmless enough. so I've applied this and the
third patch. Awaiting Konrad's verdict on the first.

> ---
>  .gitignore |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index b24e905..2b51d5f 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -141,12 +141,15 @@ tools/flask/utils/flask-set-bool
>  tools/flask/utils/flask-label-pci
>  tools/hotplug/common/hotplugpath.sh
>  tools/hotplug/FreeBSD/rc.d/xencommons
> +tools/hotplug/Linux/init.d/sysconfig.xencommons
>  tools/hotplug/Linux/init.d/xen-watchdog
> +tools/hotplug/Linux/init.d/xencommons
>  tools/hotplug/Linux/init.d/xendomains
>  tools/hotplug/Linux/vif-setup
>  tools/hotplug/Linux/xen-backend.rules
>  tools/hotplug/Linux/xen-hotplug-common.sh
>  tools/hotplug/Linux/xendomains
> +tools/hotplug/NetBSD/rc.d/xencommons
>  tools/include/xen/*
>  tools/include/xen-foreign/*.(c|h|size)
>  tools/include/xen-foreign/checker

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-02 18:36   ` Konrad Rzeszutek Wilk
  2014-12-03 15:53     ` Daniel Kiper
@ 2014-12-05  1:53     ` Konrad Rzeszutek Wilk
  2014-12-05 14:52       ` Daniel Kiper
  1 sibling, 1 reply; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-05  1:53 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: keir, ian.campbell, andrew.cooper3, Daniel Kiper, ian.jackson,
	jbeulich, xen-devel

On Tue, Dec 02, 2014 at 01:36:20PM -0500, Konrad Rzeszutek Wilk wrote:
> On Tue, Dec 02, 2014 at 04:16:28PM +0100, Daniel Kiper wrote:
> > Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
> 
> This usage scenario which I can see this being useful (and
> I've tripped over this) is when you rebuild a new version
> from the same repo. As in, this affects developers, but


Lets get it in. It fixes an issues that I keep on tripping
on and it is harmless enough that I don't see a way
for this to cause any regressions.

Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> not end-users and not distros. But perhaps I am missing
> one scenario?
> 
> As such I would lean towards deferring this (and the other
> two) to Xen 4.6.
> 
> Thank you!
> > ---
> >  tools/Makefile         |    3 +++
> >  tools/hotplug/Makefile |    5 ++++-
> >  2 files changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/tools/Makefile b/tools/Makefile
> > index af9798a..19b24f3 100644
> > --- a/tools/Makefile
> > +++ b/tools/Makefile
> > @@ -261,6 +261,9 @@ subdir-all-debugger/kdd: .phony
> >  subdir-distclean-firmware: .phony
> >  	$(MAKE) -C firmware distclean
> >  
> > +subdir-distclean-hotplug: .phony
> > +	$(MAKE) -C hotplug distclean
> > +
> >  subtree-force-update:
> >  ifeq ($(CONFIG_QEMU_XEN),y)
> >  	$(MAKE) qemu-xen-dir-force-update
> > diff --git a/tools/hotplug/Makefile b/tools/hotplug/Makefile
> > index 14ae9a8..a29a522 100644
> > --- a/tools/hotplug/Makefile
> > +++ b/tools/hotplug/Makefile
> > @@ -6,5 +6,8 @@ SUBDIRS-$(CONFIG_NetBSD) += NetBSD
> >  SUBDIRS-$(CONFIG_Linux) += Linux
> >  SUBDIRS-$(CONFIG_FreeBSD) += FreeBSD
> >  
> > -.PHONY: all clean install
> > +.PHONY: all clean distclean install
> >  all clean install: %: subdirs-%
> > +
> > +distclean:
> > +	rm -f Linux/init.d/sysconfig.xencommons Linux/init.d/xencommons NetBSD/rc.d/xencommons
> > -- 
> > 1.7.10.4
> > 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

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

* Re: [PATCH for-xen-4.5 2/3] gitignore: ignore some files generated by configure
  2014-12-04 13:25   ` Ian Campbell
@ 2014-12-05 14:52     ` Daniel Kiper
  0 siblings, 0 replies; 14+ messages in thread
From: Daniel Kiper @ 2014-12-05 14:52 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel, keir, ian.jackson, jbeulich, andrew.cooper3

On Thu, Dec 04, 2014 at 01:25:55PM +0000, Ian Campbell wrote:
> On Tue, 2014-12-02 at 16:16 +0100, Daniel Kiper wrote:
> > Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
>
> .gitignore updates seem harmless enough. so I've applied this and the
> third patch. Awaiting Konrad's verdict on the first.

Thanks!

Daniel

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-05  1:53     ` Konrad Rzeszutek Wilk
@ 2014-12-05 14:52       ` Daniel Kiper
  0 siblings, 0 replies; 14+ messages in thread
From: Daniel Kiper @ 2014-12-05 14:52 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: keir, ian.campbell, andrew.cooper3, ian.jackson, jbeulich,
	xen-devel

On Thu, Dec 04, 2014 at 09:53:40PM -0400, Konrad Rzeszutek Wilk wrote:
> On Tue, Dec 02, 2014 at 01:36:20PM -0500, Konrad Rzeszutek Wilk wrote:
> > On Tue, Dec 02, 2014 at 04:16:28PM +0100, Daniel Kiper wrote:
> > > Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
> >
> > This usage scenario which I can see this being useful (and
> > I've tripped over this) is when you rebuild a new version
> > from the same repo. As in, this affects developers, but
>
>
> Lets get it in. It fixes an issues that I keep on tripping
> on and it is harmless enough that I don't see a way
> for this to cause any regressions.
>
> Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

Great! Thanks!

Daniel

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-02 15:16 ` [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure Daniel Kiper
  2014-12-02 18:36   ` Konrad Rzeszutek Wilk
@ 2014-12-09 14:35   ` Ian Campbell
  2014-12-09 15:32     ` Konrad Rzeszutek Wilk
  1 sibling, 1 reply; 14+ messages in thread
From: Ian Campbell @ 2014-12-09 14:35 UTC (permalink / raw)
  To: Daniel Kiper; +Cc: xen-devel, keir, ian.jackson, jbeulich, andrew.cooper3

On Tue, 2014-12-02 at 16:16 +0100, Daniel Kiper wrote:

> +distclean:
> +	rm -f Linux/init.d/sysconfig.xencommons Linux/init.d/xencommons NetBSD/rc.d/xencommons

Configure generates a boatload more things than this, see e.g. 

$ grep hotplug/ tools/configure.ac 

Perhaps the answer would be to recurse into tools/hotplug/* and refactor
the existing XEN_SCRIPTS to have the generated stuff in XEN_SCRIPTS_GEN
instead and XEN_SCRIPTS += $(XEN_SCRIPTS). The on distclean remove the
XEN_SCRIPTS_GEN ones.

It's not ideal, but at least it puts the distclean logic in the same
place as the logic to install the files, if not their generation, which
at least increases the chance of someone adding it to the right place.

Ian.

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

* Re: [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure
  2014-12-09 14:35   ` Ian Campbell
@ 2014-12-09 15:32     ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-12-09 15:32 UTC (permalink / raw)
  To: Ian Campbell
  Cc: keir, andrew.cooper3, Daniel Kiper, ian.jackson, jbeulich,
	xen-devel

On Tue, Dec 09, 2014 at 02:35:37PM +0000, Ian Campbell wrote:
> On Tue, 2014-12-02 at 16:16 +0100, Daniel Kiper wrote:
> 
> > +distclean:
> > +	rm -f Linux/init.d/sysconfig.xencommons Linux/init.d/xencommons NetBSD/rc.d/xencommons
> 
> Configure generates a boatload more things than this, see e.g. 
> 
> $ grep hotplug/ tools/configure.ac 
> 
> Perhaps the answer would be to recurse into tools/hotplug/* and refactor
> the existing XEN_SCRIPTS to have the generated stuff in XEN_SCRIPTS_GEN
> instead and XEN_SCRIPTS += $(XEN_SCRIPTS). The on distclean remove the
> XEN_SCRIPTS_GEN ones.
> 
> It's not ideal, but at least it puts the distclean logic in the same
> place as the logic to install the files, if not their generation, which
> at least increases the chance of someone adding it to the right place.

Daniel pointed to me that the two other patches that were committed
solve the problem of seeing those auto-generated files sticking (and
forcing one to use git checkout XYZ -f).

So this small patch can be ditched in favour of the more encompassing
design that you have sketched out.

Thank you!
> 
> Ian.
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2014-12-09 15:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 15:16 [PATCH for-xen-4.5 0/3] tools: build system fixes and cleanups Daniel Kiper
2014-12-02 15:16 ` [PATCH for-xen-4.5 1/3] tools/hotplug: distclean target should remove files generated by configure Daniel Kiper
2014-12-02 18:36   ` Konrad Rzeszutek Wilk
2014-12-03 15:53     ` Daniel Kiper
2014-12-03 20:36       ` Konrad Rzeszutek Wilk
2014-12-04  8:17         ` [Pkg-xen-devel] " Ian Campbell
2014-12-05  1:53     ` Konrad Rzeszutek Wilk
2014-12-05 14:52       ` Daniel Kiper
2014-12-09 14:35   ` Ian Campbell
2014-12-09 15:32     ` Konrad Rzeszutek Wilk
2014-12-02 15:16 ` [PATCH for-xen-4.5 2/3] gitignore: ignore some " Daniel Kiper
2014-12-04 13:25   ` Ian Campbell
2014-12-05 14:52     ` Daniel Kiper
2014-12-02 15:16 ` [PATCH for-xen-4.5 3/3] gitignore: group tools/hotplug files in one place Daniel Kiper

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.