Package: havp
Version: 0.91-1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
your package FTBFS on GNU/kFreeBSD[1]:
| checking OS... GNU/kFreeBSD
| checking for mandatory locking support... OS not supported
|
| Mandatory locking only works on Linux and Solaris.
|
| You are running GNU/kFreeBSD, so you must rerun configure
| with --disable-locking option.
|
| This means you cannot use dynamic scanning features
| like KEEPBACKBUFFER. Everything is downloaded fully
| and only then sent to client.
|
| make: *** [config.status] Error 1
| dpkg-buildpackage: error: debian/rules build gave error exit status 2
1.
https://buildd.debian.org/fetch.cgi?pkg=havp&arch=kfreebsd-i386&ver=0.91-1&stamp=1257250087&file=log&as=raw
Please find attached a tiny patch to fix that. Please also note that your
specifying --host and --build unconditionally breaks cross-compiling, see
autotools-dev's README.Debian
Thanks for considering.
Mraw,
KiBi.
diff -u havp-0.91/debian/rules havp-0.91/debian/rules
--- havp-0.91/debian/rules
+++ havp-0.91/debian/rules
@@ -24,6 +24,10 @@
CFLAGS += -O2
endif
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+ extra_opts += --disable-locking
+endif
+
config.status: patch configure
dh_testdir
# Add here commands to configure the package.
@@ -33,7 +37,7 @@
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --mandir=\$${prefix}/share/man \
--sysconfdir=/etc --infodir=\$${prefix}/share/info \
- --localstatedir=/var
+ --localstatedir=/var $(extra_opts)
build: build-stamp