Package: netatalk
Version: 2.2~beta4-1
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd


Hi,

the current version fails to build on GNU/kFreeBSD.

It needs attached tweak for configure.in
and corresponding regeneration of some files,
i.e. "autoreconf -vfi".

See also message bellow and thread started by
http://lists.debian.org/debian-bsd/2011/06/msg00120.html

It would also be nice if you can ask upstream
to include this change.

Thanks in advance

                        Petr


---------- Forwarded message ----------
Date: Mon, 13 Jun 2011 11:12:27 +0200
From: Mattias Welponer <matt...@welponer.net>
To: Petr Salinger <petr.salin...@seznam.cz>
Subject: Re: AFP support

Hi Petr,

the package is working fine, no problems so fare. I use the same configuration files as with Debian/Linux before. Everything is working fine.

Thanks for your help,
   Mattias

On Jun 9, 2011, at 21:15 , Petr Salinger wrote:

To get it compiled, it suffices to add "#define _GNU_SOURCE 1"
into (generated) config.h.

Are you able to test the resulting binaries ?

So far I have installed Debian/kFreeBSD on my home server to use ZFS and AFP for the network shares. I can test the binaries as I had a full running system on Debian/linux if I get the packages compiled.

The kfreebsd-amd64 is here:
http://asdfasdf.debian.net/~salinger/netatalk_2.2~beta4-1_kfreebsd-amd64.deb

The building recipe is

 apt-get build-dep netatalk
 apt-get source netatalk
 cd netatalk-2.2~beta4/
 debian/rules build

After failure

 echo "#define _GNU_SOURCE 1" >> config.h
 debian/rules build
 fakeroot debian/rules binary

Petr


--- netatalk-2.2~beta4.orig/configure.in
+++ netatalk-2.2~beta4/configure.in
@@ -8,6 +8,7 @@ AC_SUBST(NETATALK_VERSION)
 AC_CANONICAL_SYSTEM
 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
 AM_CONFIG_HEADER(config.h)
+AC_USE_SYSTEM_EXTENSIONS
 
 dnl Checks for programs.
 AC_PROG_AWK
@@ -551,12 +552,6 @@ case "$host_cpu" in
 	powerpc|ppc)				this_cpu=ppc ;;
 esac
 
-dnl --------------------- GNU source
-case "$this_os" in
-	linux)	AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions])
-        ;;
-esac
-
 dnl --------------------- operating system specific flags (port from sys/*)
 
 dnl ----- AIX specific -----

Reply via email to