Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 728930

Summary: app-text/discount-2.2.6 - ld: pandoc_headers.c:(.text.startup+0x5c): undefined reference to `gethopt'
Product: Gentoo Linux Reporter: Daniel Rammelt <d.rammelt>
Component: Current packagesAssignee: Ben Kohler <bkohler>
Status: RESOLVED FIXED    
Severity: normal CC: bkohler
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Fix Makefile.in

Description Daniel Rammelt 2020-06-20 19:48:13 UTC
Created attachment 645434 [details]
build.log

Fails to compile due to 

ld: pandoc_headers.c:(.text.startup+0x5c): undefined reference to `gethopt'

Upstream patch fails to apply cleanly.
https://github.com/Orc/discount/commit/e42188e6c4c30d9de668cf98d98dd0c13ecce7cf
Comment 1 Daniel Rammelt 2020-06-20 19:50:05 UTC
Created attachment 645436 [details, diff]
Fix Makefile.in

Patch against 2.2.6 source using upstream patch as reference.
Comment 2 Ben Kohler gentoo-dev 2020-06-26 11:32:23 UTC
This is a (somewhat highly?) parallel make issue, right?  I will add the patch, I just ask for my own curiosity of how I missed a complete build failure with default USE.
Comment 3 Larry the Git Cow gentoo-dev 2020-06-26 15:53:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28625ec7e0e405c313b34ac9a08a85ee50cc1982

commit 28625ec7e0e405c313b34ac9a08a85ee50cc1982
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2020-06-26 15:53:19 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2020-06-26 15:53:36 +0000

    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@gentoo.org>

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