From: Ian Campbell Subject: Re: [PATCH v2 3/4] python: set absolute path to libxl.h on _pyxl_types.c Date: Fri, 18 May 2012 10:25:57 +0100 Message-ID: <1337333157.22316.31.camel@zakaz.uk.xensource.com> References: <1337256990-51913-1-git-send-email-roger.pau@citrix.com> <1337256990-51913-3-git-send-email-roger.pau@citrix.com> <1337261146.7781.75.camel@zakaz.uk.xensource.com> <4FB504F4.5050408@citrix.com> <1337265498.7781.95.camel@zakaz.uk.xensource.com> <4FB514FC.5040807@citrix.com> <1337267689.7781.99.camel@zakaz.uk.xensource.com> <4FB60B35.4050400@citrix.com> <1337331149.22316.17.camel@zakaz.uk.xensource.com> <4FB61313.7000904@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FB61313.7000904@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: Christoph Egger , Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-05-18 at 10:14 +0100, Roger Pau Monne wrote: > Ian Campbell wrote: > > On Fri, 2012-05-18 at 09:41 +0100, Roger Pau Monne wrote: > >> This fault was due to the way NetBSD pkgsrc builds Python, passing > >> OPT="-I/usr/include -I/usr/pkg/include ..." to the configure script, > >> which then gets saved to a Makefile that is parsed by distutils and > >> appended to the build of every extension. A bug report has already been > >> sent: > >> > >> http://mail-index.netbsd.org/pkgsrc-bugs/2012/05/17/msg047735.html > >> > >> Anyway, I don't think setting libxl.h path in genwrap.py is such a bad > >> idea, this file gets regenerated during every build, and we can make > >> sure we are always including the correct header (which should happen > >> automatically unless there are some underlying problems with Python, > >> like on NetBSD). > > > > I don't much like having absolute paths in includes. Imagine I moved my > > source tree, then very strange errors would occur. Also it should be > > unnecessary unless the underlying system has some very weird > > properties... > > So at least the correct fix would be to replace > > #include "libxl.h" > > with > > #include > > right? I think it ould be strictly speaking correct to make that change, although I'm not sure it would make a difference unless there was another libxl.h in tools/python somewhere. > > The right thing is to fix the underlying python problem, which it seems > > you have in hand. > > Yes, I've send a PR, but the python port seems to have no specific > maintainer, so I don't know how long it will take before someone picks > it up... OK. Ian.