Description: Upstream changes introduced in version 1.1-3
This patch has been created by dpkg-source during the package build.
Here's the last changelog entry, hopefully it gives details on why
those changes were made:
.
cronutils (1.1-3) unstable; urgency=low
.
* Fix FTBFS on kfreebsd, by defining HOST_NAME_MAX. (Closes: #635212)
* Put the libraries at the end of the linker call, allowing building
with --as-needed linker option (Thanks, Ilya Barygin) (Closes: #637587)
.
The person named in the Author field signed this changelog entry.
Author: Jamie Wilkinson <jaq@debian.org>
Bug-Debian: http://bugs.debian.org/635212
Bug-Debian: http://bugs.debian.org/637587
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- cronutils-1.1.orig/runstat.c
+++ cronutils-1.1/runstat.c
@@ -35,6 +35,12 @@ limitations under the License.
#include "subprocess.h"
#include "tempdir.h"
+/* FreeBSD does not have HOST_NAME_MAX defined.
+ * TODO(jaq): use sysconf() to discover its value. */
+#if !defined(HOST_NAME_MAX) && defined(_POSIX_HOST_NAME_MAX)
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
+
static void usage(char * prog) {
fprintf(stderr,
"Usage: %s [options] command [arg [arg] ...]\n\n"
--- cronutils-1.1.orig/Makefile
+++ cronutils-1.1/Makefile
@@ -21,7 +21,7 @@ runlock: runlock.c subprocess.c tempdir.
runstat: runstat.c subprocess.c tempdir.c
CFLAGS=-Wall -Werror -Wextra -D_XOPEN_SOURCE=500 -g -O0 -ansi -pedantic-errors -Wwrite-strings -Wcast-align -Wcast-qual -Winit-self -Wformat=2 -Wuninitialized -Wmissing-declarations -Wpointer-arith -Wstrict-aliasing -fstrict-aliasing
-LDFLAGS=-lrt
+LDLIBS=-lrt
SOURCES = runalarm.c runlock.c runstat.c subprocess.c subprocess.h tempdir.c tempdir.h Makefile runalarm.1 runlock.1 runstat.1 version