summaryrefslogtreecommitdiff
path: root/dev-libs/libofx/files/libofx-0.10.6-0002-autotools-fix-parallel-build-issue-with-ofxconnect-o.patch
blob: 8288aac50947e3dccf469d69820907b130d37c4e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
https://github.com/libofx/libofx/pull/77

From 55923eba7617c7c4056b21ddf3b569adaea43858 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 6 Sep 2022 06:00:04 +0100
Subject: [PATCH 2/2] autotools: fix parallel build issue with ofxconnect,
 ofxdump

We need to build the relevant tool before calling help2man, as
help2man tries to call the tool itself.

Otherwise, we get:
```
help2man: can't get `--help' info from ./ofxdump
Try `--no-discard-stderr' if option outputs to stderr
make[2]: *** [Makefile:1211: ofxdump.1] Error 127
make[2]: *** Waiting for unfinished jobs....
```

Ends up building okay as a workaround with -j1.

Bug: https://github.com/libofx/libofx/pull/56
See: 0597b8a0a9da3226af0779163fbb3ca389d70bc9
Fixes: 76dae192b4bf642b311084043cf9d6273dd69bb2
Signed-off-by: Sam James <sam@gentoo.org>
--- a/ofxconnect/Makefile.am
+++ b/ofxconnect/Makefile.am
@@ -23,9 +23,9 @@ EXTRA_DIST = cmdline.ggo test-privateserver.sh CMakeLists.txt
 
 # See README.privateserver for details on this server and how to get
 # the key needed to run this test.
-TESTS = test-privateserver.sh 
+TESTS = test-privateserver.sh
 
-ofxconnect.1: $(top_srcdir)/configure.ac
+ofxconnect.1: ofxconnect$(EXEEXT)
 if HAVE_HELP2MAN
 	$(HELP2MAN)  -n 'Create a statement request file' -N --output=ofxconnect.1 ./ofxconnect$(EXEEXT)
 else
--- a/ofxdump/Makefile.am
+++ b/ofxdump/Makefile.am
@@ -15,7 +15,7 @@ cmdline.c cmdline.h: cmdline.ggo Makefile
 
 endif
 
-ofxdump.1: $(top_srcdir)/configure.ac
+ofxdump.1: ofxdump$(EXEEXT)
 if HAVE_HELP2MAN
 	$(HELP2MAN) -n 'Dump content of OFX files as human-readable text' -N --output=ofxdump.1 ./ofxdump$(EXEEXT)
 else