Subject: libxml and libxml2 at the same time
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 06/29/2001 12:31:37
Hi again!

I just noticed that the libxml2 package I created installs
.h files into /usr/pkg/include/libxml and thus conflicts with
libxml 1.x.

I modified the configuration script to install all .h files into
include/libxml2 but inside the files there are still references
to libxml/xxx. Not very good if one wants to use those .h files
to compile other programs.

Which one of this is the correct way to handle files:

1) Use the CONFLICTS keyword to allow only 1.x or 2.x but not both

2) Convert the "#include <libxml/xxx>" lines into "#include <libxml2/xxx>"

Right now I using #2 because I have version 1.x installed but it means
some ugly post-patch rules to modify every *.[ch] file in the libxml2
distribution. What would be the "clean NetBSD way" of doing things
in this case?

Please CC me with the answer as I'm not on this list...

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>
http://www.iki.fi/~kuparine/