Summary: | app-text/ghostscript-gpl-10.04.0: fails to compile with clang (invalid argument '-std=gnu17' not allowed with 'C++') | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Violet Purcell <vimproved> |
Component: | Current packages | Assignee: | Codec Project <codec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | floppym, printing, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 945129 | ||
Attachments: |
build.log
workaround |
Description
Violet Purcell
2024-12-03 19:56:30 UTC
Looks like the crazy homebrew build system passes CFLAGS to the C++ compiler. Nasty. Created attachment 913286 [details, diff]
workaround
Here's a workaround; please test.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b6a506bddd3cf1315008950c7ad92950de977b3 commit 1b6a506bddd3cf1315008950c7ad92950de977b3 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-12-04 04:52:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-12 11:08:51 +0000 app-text/ghostscript-gpl: work around broken build system The homegrown Makefiles pass CFLAGS to the C++ compiler. Add "-std=gnu17" to CC to avoid an error with clang++. Closes: https://bugs.gentoo.org/945826 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org> app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) |