aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/dovecot/dovecot/0001-doveadm-Fix-parallel-build.patch
blob: 3170ae8658a88ff4e81922ed68df158e5f36cc22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From be9b3809b86fe593dbb16f0b981b3d315a27b799 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 22 Oct 2017 22:10:41 -0700
Subject: [PATCH] doveadm: Fix parallel build

Sometimes dovetail build fails with errors like

doveadm-util.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:812: test-doveadm-util] Error 1

This is partial backport from

https://github.com/dovecot/core/commit/b200bc3875fa06d42c8619865cc306c3297fcacc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/doveadm/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: dovecot-2.2.36.4/src/doveadm/Makefile.am
===================================================================
--- dovecot-2.2.36.4.orig/src/doveadm/Makefile.am
+++ dovecot-2.2.36.4/src/doveadm/Makefile.am
@@ -182,8 +182,8 @@ test_libs = \
 	../lib/liblib.la
 test_deps = $(noinst_LTLIBRARIES) $(test_libs)
 
-test_doveadm_util_SOURCES = test-doveadm-util.c
-test_doveadm_util_LDADD = doveadm-util.o $(test_libs) $(MODULE_LIBS)
+test_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c
+test_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS)
 test_doveadm_util_DEPENDENCIES = $(test_deps)
 
 check: check-am check-test