Support building/linking against system oniguruma #14

Closed
nmathewson opened this Issue Dec 15, 2011 · 4 comments

5 participants

@nmathewson

Most free operating system packagers get pretty shirty when you embed a copy of something that they already ship. They'd rather have all libraries be shared libraries, and have only one copy of each one exist. This lets them apply patches as needed in only one place, lets them upgrade every copy on the system at once, and so on.

In order to get libevhtp usable by programs that want to get shipped by (say) debian or fedora, there is going to need to be a documented option for how to build with a system copy of oniguruma. (Ideally, it could just detect an oniguruma of the appropriate version or later, and not even bug the user.)

@PanderMusubi
$ sudo apt-get install libonig2 libonig-dev

$ dpkg -L libonig-dev|grep h$
/usr/include/oniguruma.h
/usr/include/oniggnu.h
/usr/include/onigposix.h

$ dpkg -L libonig2|grep \.so
/usr/lib/libonig.so.2.0.0
/usr/lib/libonig.so.2
@dvandok

With some patching this can be done. See for example the Debian packaging in https://github.com/dvandok/libevhtp

@djc
djc commented Aug 6, 2013

+1.

@ellzey
Owner

this was done a very long time ago. It checks to see if it's already installed. going to close this ticket.

@ellzey ellzey closed this Aug 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment