From 9800590a7ead7f7f79fd40188c313dc7fdea8d5c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 26 Oct 2014 23:43:32 +0000 Subject: [PATCH] Portability fixes for acctdump: * Do not build on platforms with no --- cprogs/Makefile | 16 +++++++++++++--- debian/changelog | 7 +++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/cprogs/Makefile b/cprogs/Makefile index 64d4ba4..cd82ab1 100644 --- a/cprogs/Makefile +++ b/cprogs/Makefile @@ -28,16 +28,26 @@ include ../settings.make RWBUFFER_SIZE_MB=16 PROGRAMS= readbuffer writebuffer with-lock-ex xbatmon-simple \ - summer watershed rcopy-repeatedly xduplic-copier \ - acctdump + summer watershed rcopy-repeatedly xduplic-copier SUIDSBINPROGRAMS= really DAEMONS= trivsoundd MAN1PAGES= readbuffer.1 writebuffer.1 with-lock-ex.1 \ xduplic-copier.1 -MAN8PAGES= trivsoundd.8 really.8 acctdump.8 +MAN8PAGES= trivsoundd.8 really.8 BUILTTXTDOCS= watershed.txt TXTDOCS= $(BUILTTXTDOCS) +acctdump_cc_out:=$(shell \ + printf "\#include \n\#include " \ + | $(CC) -E - 2>&1 >/dev/null \ +) +ifeq (,$(acctdump_cc_out)) +PROGRAMS+=acctdump +MAN8PAGES+=acctdump.8 +else +$(warning Not building acctdump: $(acctdump_cc_out)) +endif + TARGETS= $(PROGRAMS) $(SUIDSBINPROGRAMS) $(DAEMONS) $(BUILTTXTDOCS) all: $(TARGETS) diff --git a/debian/changelog b/debian/changelog index 2e9cb13..99e5999 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +chiark-utils (4.4.1) unstable; urgency=low + + Portability fixes for acctdump: + * Do not build on platforms with no + + -- + chiark-utils (4.4.0) unstable; urgency=low New utilities: -- 2.30.2