Bug#409036: postfix: FTBFS on GNU/kFreeBSD

2007-02-01 Thread Samuel Thibault
Petr Salinger, le Thu 01 Feb 2007 08:30:52 +0100, a écrit :
 On Wed, 31 Jan 2007, LaMont Jones wrote:
 
 On Tue, Jan 30, 2007 at 12:07:57PM +0100, Petr Salinger wrote:
 It incorporates needed changes into debian/patches/30hurd.dpatch
 and changes debian/rules to ignore failure of make tidy.
 On GNU/kFreeBSD and GNU/hurd it fails always when the 30hurd.dpatch
 is not applied - i.e. also in the initial clean.
 
 Could I get uname -r output for both distros? Upstream would like that
 prior to including the fix upstream.
 
 I suppose -r is not the wanted switch, all variants for GNU/kFreeBSD
 are in http://lists.debian.org/debian-bsd/2006/06/msg5.html
 uname -r will currently print 6.2-1-486 or 6.2-1-686 or ...
 
 Please, could hurd porters send similar output of uname invocation.

[EMAIL PROTECTED]:~$ uname -s
GNU
[EMAIL PROTECTED]:~$ uname -n
gnubber
[EMAIL PROTECTED]:~$ uname -r
0.3
[EMAIL PROTECTED]:~$ uname -v
GNU-Mach 1.3.99/Hurd-0.3
[EMAIL PROTECTED]:~$ uname -m
i686-AT386
[EMAIL PROTECTED]:~$ uname -o
GNU

uname -p / -i return unknown.

Samuel



Bug#409036: postfix: FTBFS on GNU/kFreeBSD

2007-02-01 Thread Petr Salinger



Please, could hurd porters send similar output of uname invocation.


[EMAIL PROTECTED]:~$ uname -s
GNU


Whoop!

Please use now attached patch for adding GNU/kFreeBSD support.

Sorry

Petr
Author: Robin Elfrink, Petr Salinger

diff -u postfix-2.3.6/debian/rules postfix-2.3.6/debian/rules
--- postfix-2.3.6/debian/rules
+++ postfix-2.3.6/debian/rules
@@ -198,7 +198,7 @@
$(checkdir)
dh_clean build
test ! -d ${base} || rm -rf ${base}
-   $(MAKE) tidy
+   -$(MAKE) tidy
 
 clean: clean-preunpatch unpatch
rm -rf debian/{files*,vars,*substvars,*.debhelper}
diff -u postfix-2.3.6/debian/patches/30hurd.dpatch 
postfix-2.3.6/debian/patches/30hurd.dpatch
--- postfix-2.3.6/debian/patches/30hurd.dpatch
+++ postfix-2.3.6/debian/patches/30hurd.dpatch
@@ -8,7 +8,7 @@
 diff -Nur postfix-2.2.9_old/makedefs postfix-2.2.9/makedefs
 --- postfix-2.2.9_old/makedefs 2006-01-03 22:50:25.0 +0100
 +++ postfix-2.2.9/makedefs 2006-03-11 13:12:49.0 +0100
-@@ -259,6 +259,38 @@
+@@ -259,6 +259,42 @@
2.[0-3].*) CCARGS=$CCARGS -DNO_IPV6;;
esac
;;
@@ -41,8 +41,12 @@
 +  }
 +  done
 +  done
-+  # currently no IPv6 support on Hurd
-+  CCARGS=$CCARGS -DNO_IPV6
++  case `uname -s` in
++  GNU)
++  # currently no IPv6 support on Hurd
++  CCARGS=$CCARGS -DNO_IPV6
++  ;;
++  esac
 +  ;;
   IRIX*.5.*)   SYSTYPE=IRIX5
# Use the native compiler by default
@@ -50,7 +54,7 @@
 diff -Nur postfix-2.2.9_old/src/util/sys_defs.h 
postfix-2.2.9/src/util/sys_defs.h
 --- postfix-2.2.9_old/src/util/sys_defs.h  2006-01-03 22:52:17.0 
+0100
 +++ postfix-2.2.9/src/util/sys_defs.h  2006-03-11 14:29:44.0 +0100
-@@ -687,6 +687,62 @@
+@@ -687,6 +687,70 @@
  #endif
  
   /*
@@ -99,10 +103,18 @@
 +#endif
 +#define SOCKADDR_SIZE socklen_t
 +#define SOCKOPT_SIZE  socklen_t
++#ifdef __FreeBSD_kernel__
++# define HAS_DUPLEX_PIPE
++# define HAS_ISSETUGID
++#endif
 +#ifndef NO_IPV6
 +# define HAS_IPV6
-+# define HAS_PROCNET_IFINET6
-+# define _PATH_PROCNET_IFINET6 /proc/net/if_inet6
++# ifdef __FreeBSD_kernel__
++#  define HAVE_GETIFADDRS
++# else
++#  define HAS_PROCNET_IFINET6
++#  define _PATH_PROCNET_IFINET6 /proc/net/if_inet6
++# endif
 +#endif
 +#define CANT_USE_SEND_RECV_MSG
 +#define DEF_SMTP_CACHE_DEMAND 0


Bug#409036: postfix: FTBFS on GNU/kFreeBSD

2007-01-31 Thread LaMont Jones
On Tue, Jan 30, 2007 at 12:07:57PM +0100, Petr Salinger wrote:
 It incorporates needed changes into debian/patches/30hurd.dpatch
 and changes debian/rules to ignore failure of make tidy.
 On GNU/kFreeBSD and GNU/hurd it fails always when the 30hurd.dpatch
 is not applied - i.e. also in the initial clean.

Could I get uname -r output for both distros?  Upstream would like that
prior to including the fix upstream.

thanks,
lamont


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409036: postfix: FTBFS on GNU/kFreeBSD

2007-01-31 Thread Petr Salinger



On Wed, 31 Jan 2007, LaMont Jones wrote:


On Tue, Jan 30, 2007 at 12:07:57PM +0100, Petr Salinger wrote:

It incorporates needed changes into debian/patches/30hurd.dpatch
and changes debian/rules to ignore failure of make tidy.
On GNU/kFreeBSD and GNU/hurd it fails always when the 30hurd.dpatch
is not applied - i.e. also in the initial clean.


Could I get uname -r output for both distros? Upstream would like that
prior to including the fix upstream.


I suppose -r is not the wanted switch, all variants for GNU/kFreeBSD
are in http://lists.debian.org/debian-bsd/2006/06/msg5.html
uname -r will currently print 6.2-1-486 or 6.2-1-686 or ...

Please, could hurd porters send similar output of uname invocation.

Many thanks

Petr


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409036: postfix: FTBFS on GNU/kFreeBSD

2007-01-30 Thread Petr Salinger

Package: postfix
Severity: important
Version: 2.3.6-2
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

Please find attached patch to fix that.
It incorporates needed changes into debian/patches/30hurd.dpatch
and changes debian/rules to ignore failure of make tidy.
On GNU/kFreeBSD and GNU/hurd it fails always when the 30hurd.dpatch
is not applied - i.e. also in the initial clean.
See http://experimental.ftbfs.de/build.php?pkg=postfixarch=hurd-i386,
http://experimental.ftbfs.de/build.php?pkg=postfixarch=kfreebsd-i386.

Thanks in advance

Petrdiff -u postfix-2.3.6/debian/rules postfix-2.3.6/debian/rules
--- postfix-2.3.6/debian/rules
+++ postfix-2.3.6/debian/rules
@@ -198,7 +198,7 @@
$(checkdir)
dh_clean build
test ! -d ${base} || rm -rf ${base}
-   $(MAKE) tidy
+   -$(MAKE) tidy
 
 clean: clean-preunpatch unpatch
rm -rf debian/{files*,vars,*substvars,*.debhelper}
diff -u postfix-2.3.6/debian/patches/30hurd.dpatch 
postfix-2.3.6/debian/patches/30hurd.dpatch
--- postfix-2.3.6/debian/patches/30hurd.dpatch
+++ postfix-2.3.6/debian/patches/30hurd.dpatch
@@ -8,7 +8,7 @@
 diff -Nur postfix-2.2.9_old/makedefs postfix-2.2.9/makedefs
 --- postfix-2.2.9_old/makedefs 2006-01-03 22:50:25.0 +0100
 +++ postfix-2.2.9/makedefs 2006-03-11 13:12:49.0 +0100
-@@ -259,6 +259,38 @@
+@@ -259,6 +259,42 @@
2.[0-3].*) CCARGS=$CCARGS -DNO_IPV6;;
esac
;;
@@ -41,8 +41,12 @@
 +  }
 +  done
 +  done
-+  # currently no IPv6 support on Hurd
-+  CCARGS=$CCARGS -DNO_IPV6
++  case `uname -s` in
++  GNU/Hurd)
++  # currently no IPv6 support on Hurd
++  CCARGS=$CCARGS -DNO_IPV6
++  ;;
++  esac
 +  ;;
   IRIX*.5.*)   SYSTYPE=IRIX5
# Use the native compiler by default
@@ -50,7 +54,7 @@
 diff -Nur postfix-2.2.9_old/src/util/sys_defs.h 
postfix-2.2.9/src/util/sys_defs.h
 --- postfix-2.2.9_old/src/util/sys_defs.h  2006-01-03 22:52:17.0 
+0100
 +++ postfix-2.2.9/src/util/sys_defs.h  2006-03-11 14:29:44.0 +0100
-@@ -687,6 +687,62 @@
+@@ -687,6 +687,70 @@
  #endif
  
   /*
@@ -99,10 +103,18 @@
 +#endif
 +#define SOCKADDR_SIZE socklen_t
 +#define SOCKOPT_SIZE  socklen_t
++#ifdef __FreeBSD_kernel__
++# define HAS_DUPLEX_PIPE
++# define HAS_ISSETUGID
++#endif
 +#ifndef NO_IPV6
 +# define HAS_IPV6
-+# define HAS_PROCNET_IFINET6
-+# define _PATH_PROCNET_IFINET6 /proc/net/if_inet6
++# ifdef __FreeBSD_kernel__
++#  define HAVE_GETIFADDRS
++# else
++#  define HAS_PROCNET_IFINET6
++#  define _PATH_PROCNET_IFINET6 /proc/net/if_inet6
++# endif
 +#endif
 +#define CANT_USE_SEND_RECV_MSG
 +#define DEF_SMTP_CACHE_DEMAND 0