[Swan] Build Debian package with lastest src

Antony Antony antony at phenome.org
Sat Apr 29 12:19:10 UTC 2017


On Sat, Apr 29, 2017 at 01:16:01PM +0200, Muenz, Michael wrote:
> Hi,
> 
> I tried to build a deb with the latest source, but I got many errors that
> some includes can not be found (e.g. /usr/include/nss/pk11pub.h)
> The files are included with #include <pk11pub.h> and I have to add #include
> <nss/pk11pub.h>
> 
> Isn't there a way to check the linux version with an IF in order to change
> the path in the include?
> 
> After the third file I just did a
> 
> ln -s /usr/include/nss/* /usr/include/
> ln -s /usr/include/nspr/* /usr/include/

the automagic include path detection use pkg-config
e.g
pkg-config --cflags nss
-I/usr/include/nss -I/usr/include/nspr

to install all dependencies to build on Debian, in the libreswan source directory
mk-build-deps --install  ./debian/control 
mk-build-deps is part of devscripts


More information about the Swan mailing list