Source: htpdate Version: 1.3.7-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
htpdate regressed cross building. The upstream Makefile was patched to select the https target as dependency for all, but a file https is not created. As a result, invoking make install goes install -> all -> https and rebuilds htpdate, but dh_auto_install does not pass cross tools. I'm attaching a patch that renames the target back and implements the choice of https via a variable instead. Thus htpdate is only built once via dh_auto_build. Helmut
--- htpdate-1.3.7.orig/Makefile +++ htpdate-1.3.7/Makefile @@ -9,13 +9,16 @@ INSTALL ?= install -c STRIP ?= strip -s -all: https +ENABLE_HTTPS ?= 1 +ifeq ($(ENABLE_HTTPS),1) +CPPFLAGS += -DENABLE_HTTPS +LIBS += $(SSL_LIBS) +endif -htpdate: htpdate.c - $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o htpdate htpdate.c +all: htpdate -https: htpdate.c - $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -DENABLE_HTTPS -o htpdate htpdate.c $(SSL_LIBS) +htpdate: htpdate.c + $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o htpdate htpdate.c $(LIBS) install: all $(STRIP) htpdate