From 6e31f348809ed0fe40defb43f1c7c06e2c30ac19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Peccatte?= Date: Mon, 29 Feb 2016 16:44:07 +0100 Subject: [PATCH] Fixes #7992: Openssl build breaks debian packaging --- rudder-agent/SOURCES/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rudder-agent/SOURCES/Makefile b/rudder-agent/SOURCES/Makefile index 743959d8a..b3273415d 100644 --- a/rudder-agent/SOURCES/Makefile +++ b/rudder-agent/SOURCES/Makefile @@ -45,14 +45,12 @@ FETCH = fetch -q -o ifneq (,$(wildcard /usr/bin/curl)) GET = $(PROXY_ENV) $(CURL) GET_OPT = --curl -else -ifneq (,$(wildcard /usr/bin/fetch)) +else ifneq (,$(wildcard /usr/bin/fetch)) GET = $(PROXY_ENV) $(FETCH) else GET = $(PROXY_ENV) $(WGET) GET_OPT = --wget endif -endif # Autodtect presence of gnu tools TAR := $(shell type gtar >/dev/null 2>&1 && echo gtar || echo tar) @@ -65,8 +63,8 @@ FIND := find # Use parameters to guess what should be packaged BUILD_DEPS := INSTALL_DEPS := -# default: build openssl -ifneq (true,$(USE_SYSTEM_OPENSSL)) +# default: do not build openssl +ifeq (false,$(USE_SYSTEM_OPENSSL)) BUILD_DEPS := $(BUILD_DEPS) build-ssl INSTALL_DEPS := $(INSTALL_DEPS) install-ssl OPENSSL_ARG := --with-openssl=$(CURDIR)/build-ssl/opt/rudder @@ -90,6 +88,9 @@ endif # Hack needed because openssl is not guessing correctly the architecture on solaris 32bits ifeq (i386-pc-solaris2.10,$(shell ./config.guess)) SSL_CONFIGURE:=./Configure solaris-x86-gcc +# Hack needed because openssl is not guessing correctly the architecture on debian 32 bits chroot +else ifeq (i386,$(shell [ -x /usr/bin/dpkg ] && dpkg --print-architecture)) +SSL_CONFIGURE:=./Configure linux-generic32 else SSL_CONFIGURE:=./config endif