/trunk/debian/patches/dont-touch-CFLAGS.patch |
---|
0,0 → 1,25 |
Description: Change the configure script so that --enable-debug doesn't modify $CFLAGS |
The debug logging option is useful, but we don't want the build flags to be messed with. |
--- a/configure |
+++ b/configure |
@@ -4533,7 +4533,7 @@ cat >>confdefs.h <<\_ACEOF |
#define ENABLE_DEBUGGING 1 |
_ACEOF |
- DEBUG_CFLAGS="-O0 -fvar-tracking -g3 -ggdb" |
+# DEBUG_CFLAGS="-O0 -fvar-tracking -g3 -ggdb" |
fi |
enableval="" |
--- a/configure.ac |
+++ b/configure.ac |
@@ -58,7 +58,7 @@ AC_ARG_ENABLE(debug, |
[ --enable-debug Enable debugging]) |
if test "$enableval" = "yes"; then |
AC_DEFINE(ENABLE_DEBUGGING, 1, [Define to enable debugging]) |
- DEBUG_CFLAGS="-O0 -fvar-tracking -g3 -ggdb" |
+# DEBUG_CFLAGS="-O0 -fvar-tracking -g3 -ggdb" |
fi |
enableval="" |
/trunk/debian/patches/series |
---|
0,0 → 1,4 |
bind-to-ipv6-too.patch |
ftbfs-gcc5.patch |
dont_mention_INSTALL.patch |
dont-touch-CFLAGS.patch |
/trunk/debian/patches/bind-to-ipv6-too.patch |
---|
0,0 → 1,19 |
Description: Patch to bind to ipv6 socket as well |
Author: Fabian Knittel <fabian.knittel@avona.com> |
Bug-Debian: https://bugs.debian.org/533604 |
--- oidentd-2.0.8//src/oidentd_inet_util.c 2006-05-22 02:31:19.000000000 +0200 |
+++ oidentd-2.0.8.new//src/oidentd_inet_util.c 2010-03-01 20:26:11.000000000 +0100 |
@@ -60,6 +60,12 @@ |
#ifdef WANT_IPV6 |
case AF_INET6: |
SIN6(ai->ai_addr)->sin6_port = listen_port; |
+ |
+ if (setsockopt(listenfd, IPPROTO_IPV6, IPV6_V6ONLY, &one, |
+ sizeof(one)) != 0) { |
+ debug("setsockopt IPV6_V6ONLY: %s", strerror(errno)); |
+ return (-1); |
+ } |
break; |
#endif |
/trunk/debian/patches/dont_mention_INSTALL.patch |
---|
0,0 → 1,14 |
Description: Don't reference INSTALL, which isn't included in the package since it's mostly irrelevant to Debian users. |
Bug-Debian: http://bugs.debian.org/253199 |
--- a/README |
+++ b/README |
@@ -7,8 +7,6 @@ oidentd has a flexible mechanism for spe |
be granted permission to specify their own ident responses. Responses can be |
specified according to host and port pairs. |
-For details on how to install oidentd see the INSTALL file. |
- |
See the TODO file for things that need to be done. |
For a complete list of features, consult the manual page or run |
/trunk/debian/patches/ftbfs-gcc5.patch |
---|
0,0 → 1,25 |
Description: Fix a failure to build with gcc5. |
Bug-Debian: http://bugs.debian.org/778035 |
--- a/src/oidentd_util.c 2015-07-03 05:56:24.000000000 -0400 |
+++ b/src/oidentd_util.c 2015-07-03 05:56:47.671378000 -0400 |
@@ -75,7 +75,7 @@ |
** PRNG functions on systems whose libraries provide them.) |
*/ |
-inline int randval(int i) { |
+extern __attribute__ ((gnu_inline)) int randval(int i) { |
/* Per _Numerical Recipes in C_: */ |
return ((double) i * rand() / (RAND_MAX+1.0)); |
} |
--- a/src/oidentd_util.h 2015-07-03 05:56:32.000000000 -0400 |
+++ b/src/oidentd_util.h 2015-07-03 05:56:53.835378000 -0400 |
@@ -58,7 +58,7 @@ |
int find_group(const char *temp_group, gid_t *gid); |
int random_seed(void); |
-inline int randval(int i); |
+extern __attribute__ ((gnu_inline)) int randval(int i); |
#ifndef HAVE_SNPRINTF |
int snprintf(char *str, size_t n, char const *fmt, ...); |