[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl: Fix missing dependency in api check rule
On Tue, 2012-09-11 at 15:35 +0100, Ian Jackson wrote: > Olaf Hering writes ("Re: [Xen-devel] [PATCH] libxl: add missing dependencies > of libxl.h"): > > On Fri, Sep 07, Ian Jackson wrote: > > > -_%.api-for-check: %.h > > > +_%.api-for-check: %.h $(filter-out %.api-ok, $(AUTOINCS)) > > > $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$*.o) -c -E $< $(APPEND_CFLAGS) \ > > > -DLIBXL_EXTERNAL_CALLERS_ONLY=LIBXL_EXTERNAL_CALLERS_ONLY \ > > > >$@.new > > > > > > Can you confirm that this fixes it for you ? > > > > The package builds fine with this change. > > The failure if fixes happend only once. > > Hmm. > > Adding this: (WARNING DO NOT APPLY THIS BIT) > > diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile > index a9d9ec6..5f2332c 100644 > --- a/tools/libxl/Makefile > +++ b/tools/libxl/Makefile > @@ -132,6 +132,7 @@ _paths.h: genpath > > _libxl_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-seddery > $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h > $(PERL) $^ --prefix=libxl >$@.new > + sleep 10 > $(call move-if-changed,$@.new,$@) > > _libxl_save_msgs_helper.c _libxl_save_msgs_callout.c \ > > allowed me to repro the failure and confirm that my proposed change > fixes it. > > So (for -unstable and 4.2), the fix is below. > > Ian. > > > Subject: [PATCH] libxl: Fix missing dependency in api check rule > > Without this, the api check cpp run might happen before the various > autogenerated files which are #include by libxl.h are ready. > > We need to filter out the api-ok file from AUTOINCS to avoid a > circular dependency. The result is that the api check is the last > thing to be done before make considers the AUTOINCS all done and can > start work on compiling .c files into .o's. > > Reported-by: Olaf Hering <olaf@xxxxxxxxx> > Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> I'm ok with this for 4.2.0. Although I do wonder if this: > -_%.api-for-check: %.h > +_%.api-for-check: %.h $(filter-out %.api-ok, $(AUTOINCS)) Indicates that libxl.api-ok doesn't strictly speaking belong in AUTOINCS. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |