[Libreoffice] [PATCH] build dependencies, removing headers and getting away with it. (was build errors on Ubuntu)
caolanm at redhat.com
Tue Aug 23 03:22:50 PDT 2011
On Mon, 2011-08-22 at 23:37 +0200, Cor Nouws wrote:
> ERROR: error 65280 occurred while making
Well, firstly these don't really include the actual error, but I'm going
to guess that its very likely the problem is header files that used to
exist, got removed, and whose references in .cxx files also got removed
correctly, but there are stale dependencies that still depend on the
removed headers. Even if this isn't the problem here, is such a common
problem that its generally the case.
So.. I suggest we add -MP to our gcc dependency generation, that makes
extra fake rules for each dependency so that a missing header is
considered "ok", i.e. http://www.makelinux.net/make3/make3-CHP-8-SECT-3
and (also attached) patch from
Testing here shows that it allows a rebuild to survive a removed header
and rebuild without annoying halt and spew, so the problem "just goes
away". Bigger dependencies I guess, but I think its worth a lot to just
be able to "make".
Unless someone knows a good reason why this is a really stupid idea I'll
push it later today. Non-gcc platforms might be able to hack up the same
sort of support with the sed example from the make book above.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2784 bytes
Desc: not available
More information about the LibreOffice