Summary: | app-misc/figlet-2.2.5 with sys-libs/musl - In file included from figlet.c:77:0: utf8.h:30:1: error: unknown type name ‘__BEGIN_DECLS’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Berne Campbell <berne.campbell> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | musl, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702 | ||
Attachments: | Proposed Patch |
Description
Berne Campbell
2017-02-04 05:09:27 UTC
(In reply to Berne Campbell from comment #0) > On a musl based system I cannot emerge figlet, I get a compilation error due > to utf8.h:30:1: error: unknown type name ‘__BEGIN_DECLS’. This seems to be a > bug in upstream figlet (which seems unmaintained). Replace all instances of __BEGIN_DECLS with #ifdef __cplusplus extern "C" { #endif and __END_DECLS with #ifdef __cplusplus } #endif If you want to prepare a patch, I can test and with Jeroen's permission commit or at least add it to the musl overlay. Created attachment 682867 [details, diff]
Proposed Patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff505acf8b6e0cdf3edcee56d58079f4e4b17a31 commit ff505acf8b6e0cdf3edcee56d58079f4e4b17a31 Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-05-01 18:05:31 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-05-01 18:05:31 +0000 app-misc/figlet: fix building on musl * The patch is from Alpine and the ebuild changes are not copyrightable. Closes: https://github.com/gentoo/gentoo/pull/20385 Closes: https://bugs.gentoo.org/608172 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> app-misc/figlet/figlet-2.2.5-r1.ebuild | 2 ++ app-misc/figlet/files/figlet-2.2.5-musl.patch | 36 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) |