git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Include xmlparse.h instead of expat.h on QNX

From
MKMatt Kraai <kraai@ftbfs.org>
Date
Feb 11, 2013, 21:49 UTC
Message-ID
<20130211214948.GB19113@ftbfs.org>
In-Reply-To
<7vip5ylekj.fsf@alter.siamese.dyndns.org>
On Mon, Feb 11, 2013 at 01:34:52PM -0800, Junio C Hamano wrote:
Show 12 quoted lines
> Two points and a possibly irrelevant half:
> 
>  - If a fix is platform specific (i.e. tempts to use #ifdef
>    PLATFORM_NAME), we would prefer to see a patch that that is
>    isolated to platform-specific compatibility layer, which would
>    involve:
> 
>    . add compat/qnx/expat.h file that #include <xmlparse.h>
>    . to Makefile, add -Icompat/qnx/ to CFLAGS
> 
>  - Is this really a fix for a problem specific to QNX?  It looks
>    like this is for any platform with expat 1, no?

It should apply to anyone trying to build with expat 1.1 or 1.2, but not with 1.95.0 or later.

>  - What happens to people with QNX older than 6.3.2 or newer than
>    6.5.0 (assuming they will eventually start shipping expat 2) with
>    your patch?

Git will fail to build http-push.c. I don't know if QNX will ever update expat, though. expat 1.95.0 was released in 2000, expat 2.0.0 was released in 2006, and QNX 6.5.0 was released in 2010.

> Assuming that this change is about building with expat1, it would
> probably be better to do something like this instead, I would think.

expat 1.95.0 through 1.95.8 used expat.h; should I still use EXPAT_VERSION = 1 to signify that it should use xmlparse.h, use EXPAT_NEEDS_XMLPARSE_H as Jeff suggested, or something else entirely?

Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 11 in “Include xmlparse.h instead of expat.h on QNX”
  1. Include xmlparse.h instead of expat.h on QNXMatt Kraai, Feb 11, 2013
  2. Jeff KingFeb 11, 2013
  3. Matt KraaiFeb 11, 2013
  4. Allow building with xmlparse.hMatt Kraai, Feb 11, 2013
  5. Junio C HamanoFeb 11, 2013
  6. Allow building with xmlparse.hMatt Kraai, Feb 11, 2013
  7. Junio C HamanoFeb 11, 2013
  8. Junio C HamanoFeb 11, 2013
  9. Junio C HamanoFeb 11, 2013
  10. Matt KraaiFeb 11, 2013
  11. Junio C HamanoFeb 11, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.