commit:     28625ec7e0e405c313b34ac9a08a85ee50cc1982
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 26 15:53:19 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Fri Jun 26 15:53:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28625ec7

app-text/discount: parallel build fix from upstream

Closes: https://bugs.gentoo.org/728930
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 app-text/discount/discount-2.2.6.ebuild         |  2 ++
 app-text/discount/files/gethopt-undefined.patch | 12 ++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/app-text/discount/discount-2.2.6.ebuild 
b/app-text/discount/discount-2.2.6.ebuild
index 9e570549251..9cb5d5ea9f1 100644
--- a/app-text/discount/discount-2.2.6.ebuild
+++ b/app-text/discount/discount-2.2.6.ebuild
@@ -15,6 +15,8 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc 
~x86"
 IUSE="minimal test"
 RESTRICT="!test? ( test )"
 
+PATCHES=( "${FILESDIR}"/gethopt-undefined.patch )
+
 src_prepare() {
        default
 

diff --git a/app-text/discount/files/gethopt-undefined.patch 
b/app-text/discount/files/gethopt-undefined.patch
new file mode 100644
index 00000000000..5b081877a7a
--- /dev/null
+++ b/app-text/discount/files/gethopt-undefined.patch
@@ -0,0 +1,12 @@
+diff -aur discount-2.2.6/Makefile.in discount-2.2.6-new/Makefile.in
+--- discount-2.2.6/Makefile.in 2019-04-16 03:28:20.000000000 +1200
++++ discount-2.2.6-new/Makefile.in     2020-06-21 07:39:32.256757588 +1200
+@@ -139,7 +139,7 @@
+ 
+ pandoc_headers.o: tools/pandoc_headers.c config.h
+       $(BUILD) -c -o pandoc_headers.o tools/pandoc_headers.c
+-pandoc_headers: pandoc_headers.o
++pandoc_headers: pandoc_headers.o $(MKDLIB)
+       $(LINK) -o pandoc_headers pandoc_headers.o $(COMMON) -lmarkdown 
+ 
+ branch.o: tools/branch.c config.h

Reply via email to