All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs/xen-headers: allow headers to be symlinks
@ 2012-06-21 12:20 Jan Beulich
  2012-06-26 16:28 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2012-06-21 12:20 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

There's no apparent reason not to permit this, and since we don't
support out-of-source-tree builds, the least overhead way of doing
multiple, differently configured (perhaps different architecture)
builds from a single source tree is to create symlinked build trees.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/docs/xen-headers
+++ b/docs/xen-headers
@@ -368,7 +368,7 @@ foreach $pass (qw(1 2)) {
     find({ wanted => 
                sub {
                    return unless m/\.h$/;
-                   lstat $File::Find::name or die "$File::Find::name $!";
+                   stat $File::Find::name or die "$File::Find::name $!";
                    -f _ or die "$File::Find::name";
                    substr($File::Find::name, 0, 1+length $basedir) 
                        eq "$basedir/"




[-- Attachment #2: docs-xen-header-symlink.patch --]
[-- Type: text/plain, Size: 875 bytes --]

docs/xen-headers: allow headers to be symlinks

There's no apparent reason not to permit this, and since we don't
support out-of-source-tree builds, the least overhead way of doing
multiple, differently configured (perhaps different architecture)
builds from a single source tree is to create symlinked build trees.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/docs/xen-headers
+++ b/docs/xen-headers
@@ -368,7 +368,7 @@ foreach $pass (qw(1 2)) {
     find({ wanted => 
                sub {
                    return unless m/\.h$/;
-                   lstat $File::Find::name or die "$File::Find::name $!";
+                   stat $File::Find::name or die "$File::Find::name $!";
                    -f _ or die "$File::Find::name";
                    substr($File::Find::name, 0, 1+length $basedir) 
                        eq "$basedir/"

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: [PATCH] docs/xen-headers: allow headers to be symlinks
  2012-06-21 12:20 [PATCH] docs/xen-headers: allow headers to be symlinks Jan Beulich
@ 2012-06-26 16:28 ` Ian Campbell
  2012-06-29 16:35   ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2012-06-26 16:28 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen-devel

On Thu, 2012-06-21 at 13:20 +0100, Jan Beulich wrote:
> There's no apparent reason not to permit this, and since we don't
> support out-of-source-tree builds, the least overhead way of doing
> multiple, differently configured (perhaps different architecture)
> builds from a single source tree is to create symlinked build trees.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Seems reasonable and applying the patch resulted in no change in the
output on this end:

Acked-by: Ian Campbell <ian.campbell@citrix.com>

> 
> --- a/docs/xen-headers
> +++ b/docs/xen-headers
> @@ -368,7 +368,7 @@ foreach $pass (qw(1 2)) {
>      find({ wanted => 
>                 sub {
>                     return unless m/\.h$/;
> -                   lstat $File::Find::name or die "$File::Find::name $!";
> +                   stat $File::Find::name or die "$File::Find::name $!";
>                     -f _ or die "$File::Find::name";
>                     substr($File::Find::name, 0, 1+length $basedir) 
>                         eq "$basedir/"
> 
> 
> 

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

* Re: [PATCH] docs/xen-headers: allow headers to be symlinks
  2012-06-26 16:28 ` Ian Campbell
@ 2012-06-29 16:35   ` Ian Jackson
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Jackson @ 2012-06-29 16:35 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Jan Beulich, xen-devel

Ian Campbell writes ("Re: [Xen-devel] [PATCH] docs/xen-headers: allow headers to be symlinks"):
> On Thu, 2012-06-21 at 13:20 +0100, Jan Beulich wrote:
> > There's no apparent reason not to permit this, and since we don't
> > support out-of-source-tree builds, the least overhead way of doing
> > multiple, differently configured (perhaps different architecture)
> > builds from a single source tree is to create symlinked build trees.
> > 
> > Signed-off-by: Jan Beulich <jbeulich@suse.com>
> 
> Seems reasonable and applying the patch resulted in no change in the
> output on this end:
> 
> Acked-by: Ian Campbell <ian.campbell@citrix.com>

Indeed, this is correct.  I see it's been applied.

Ian.

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

end of thread, other threads:[~2012-06-29 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21 12:20 [PATCH] docs/xen-headers: allow headers to be symlinks Jan Beulich
2012-06-26 16:28 ` Ian Campbell
2012-06-29 16:35   ` Ian Jackson

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.