From: "Jan Beulich" Subject: [PATCH] docs/xen-headers: allow headers to be symlinks Date: Thu, 21 Jun 2012 13:20:34 +0100 Message-ID: <4FE32DB2020000780008B138@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part5779F682.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part5779F682.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- a/docs/xen-headers +++ b/docs/xen-headers @@ -368,7 +368,7 @@ foreach $pass (qw(1 2)) { find({ wanted =3D>=20 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)=20 eq "$basedir/" --=__Part5779F682.0__= Content-Type: text/plain; name="docs-xen-header-symlink.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="docs-xen-header-symlink.patch" docs/xen-headers: allow headers to be symlinks=0A=0AThere's no apparent = reason not to permit this, and since we don't=0Asupport out-of-source-tree = builds, the least overhead way of doing=0Amultiple, differently configured = (perhaps different architecture)=0Abuilds from a single source tree is to = create symlinked build trees.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/docs/xen-headers=0A+++ b/docs/xen-headers=0A@@ -368,7 = +368,7 @@ foreach $pass (qw(1 2)) {=0A find({ wanted =3D> =0A = sub {=0A return unless m/\.h$/;=0A- = lstat $File::Find::name or die "$File::Find::name $!";=0A+ = stat $File::Find::name or die "$File::Find::name $!";=0A = -f _ or die "$File::Find::name";=0A substr($File:= :Find::name, 0, 1+length $basedir) =0A eq "$basedir/= "=0A --=__Part5779F682.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part5779F682.0__=--