From 9bf9cac489bfe313623d0382446a1504d4f75992 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 3 Jan 2024 20:11:51 +0100 Subject: [PATCH] package/exim: do not build perl-based utilities Upstream added various utilities, for example exim_id_update with commit https://github.com/Exim/exim/commit/46a36afae41f63de654269c8a0b7cf5852a85a14 which is a "Utility for one-time upgrage/downgrade between exim message- id formats, around the 4.97 transition" which would add a dependency to host-perl/perl so we build and install only the needed exim binary. Fixes: http://autobuild.buildroot.net/results/111302dc3b4763befe9b159ae59b1b72de9162ea/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/exim/exim.mk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package/exim/exim.mk b/package/exim/exim.mk index 98b6097957..84fe96218c 100644 --- a/package/exim/exim.mk +++ b/package/exim/exim.mk @@ -144,16 +144,15 @@ define EXIM_BUILD_CMDS CFLAGS="-std=c99 $(HOST_CFLAGS)" \ LFLAGS="-fPIC $(HOST_LDFLAGS)" $(TARGET_MAKE_ENV) build=br $(MAKE) -C $(@D) $(EXIM_STATIC_FLAGS) \ - CFLAGS="-std=c99 $(TARGET_CFLAGS) $(EXIM_CFLAGS)" + CFLAGS="-std=c99 $(TARGET_CFLAGS) $(EXIM_CFLAGS)" exim endef # Need to replicate the LFLAGS in install, as exim still wants to build # something when installing... define EXIM_INSTALL_TARGET_CMDS - DESTDIR=$(TARGET_DIR) INSTALL_ARG="-no_chown -no_symlink" build=br \ - $(MAKE) -C $(@D) $(EXIM_STATIC_FLAGS) \ - CFLAGS="-std=c99 $(TARGET_CFLAGS)" \ - install + cd $(@D)/build-br; \ + DESTDIR=$(TARGET_DIR) build=br \ + ../scripts/exim_install -no_chown -no_symlink exim chmod u+s $(TARGET_DIR)/usr/sbin/exim endef