Landry Breuil wrote:
On Mon, Jul 21, 2008 at 10:38:39PM -0400, Lawrence Teo wrote:
Landry, thank you for testing it on sparc64. Marc, thank you for your
feedback.

I haven't tested it extensively yet but it looks like openvpn can
use lzo2 too if it's available. For me, I started tinkering on lzo2
when I found that it was a dependency for lrzip.

I would appreciate some advice about where to install the header
files:

lzo version 1 (for brevity I'll refer to it as lzo1 from now on)
installs the header files into ${LOCALBASE}/include/

lzo2, as distributed by the author, installs them into
${LOCALBASE}/include/lzo/

I felt that was ambiguous because include/lzo/ could refer to
either lzo1 or lzo2. So I made the lzo2 port install the header
files into ${LOCALBASE}/include/lzo2/ instead.

However, after examining programs like lrzip, dxpc, and openvpn, I
found that all of them try to detect lzo2 in include/lzo/ by
default.

So I'm thinking of removing my patch so that the lzo2 port will
install the header files into include/lzo/ (as intended by its
author) -- it sacrifices clarity, but should result in less work to
port programs that depend on it.

For example, my experiment with dxpc shows that I will have to
create three patches if the header files are in include/lzo2. But no
patches are required if the header files are in include/lzo.

Any thoughts from the more experienced porters?

Don't patch ports if it's not _necessary_.. as simple as that from my
point of view. The author made some work to make both coexist this way,
so keep it like that. Adding a note/comment somewhere in Makefile/PLIST
is the way to go imho.

Landry, thanks for the pointers.

I have revised the port with the following changes:

- Header files are now installed in include/lzo/
- Added comments in pkg/PLIST about where lzo/lzo2 puts include files
- SEPARATE_BUILD=simple
- Added information about version 2 to pkg/DESCR

I've also updated the online version at:
http://labs.calyptix.com/openbsd-ports/lzo2.tar.gz

Updating dxpc and openvpn to use lzo2 is much simpler now.

Still passes regress on amd64 and i386. :)

Thanks,
Lawrence

Attachment: lzo2.tar.gz
Description: GNU Zip compressed data

Reply via email to