commit: 977cfe6dac1a14198581c281213d8cff4be1e9b5 Author: Felix Janda <felix.janda <AT> posteo <DOT> de> AuthorDate: Sun Aug 2 21:27:57 2020 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Aug 7 17:57:49 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=977cfe6d
www-client/elinks: fix compilation with -fno-common/gcc10 Bug: https://bugs.gentoo.org/730658 Signed-off-by: Felix Janda <felix.janda <AT> posteo.de> Signed-off-by: Sam James <sam <AT> gentoo.org> www-client/elinks/elinks-0.13.4.ebuild | 1 + www-client/elinks/elinks-9999.ebuild | 1 + www-client/elinks/files/elinks-0.13.4-ruby-gcc10.patch | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/www-client/elinks/elinks-0.13.4.ebuild b/www-client/elinks/elinks-0.13.4.ebuild index 82731e98cab..c4b601e544b 100644 --- a/www-client/elinks/elinks-0.13.4.ebuild +++ b/www-client/elinks/elinks-0.13.4.ebuild @@ -46,6 +46,7 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-9999-parallel-make.patch + "${FILESDIR}"/${P}-ruby-gcc10.patch ) src_prepare() { diff --git a/www-client/elinks/elinks-9999.ebuild b/www-client/elinks/elinks-9999.ebuild index 16eb304d3e7..ce228d3832a 100644 --- a/www-client/elinks/elinks-9999.ebuild +++ b/www-client/elinks/elinks-9999.ebuild @@ -46,6 +46,7 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${P}-parallel-make.patch + "${FILESDIR}"/${PN}-0.13.4-ruby-gcc10.patch ) src_unpack() { diff --git a/www-client/elinks/files/elinks-0.13.4-ruby-gcc10.patch b/www-client/elinks/files/elinks-0.13.4-ruby-gcc10.patch new file mode 100644 index 00000000000..380dce51f0d --- /dev/null +++ b/www-client/elinks/files/elinks-0.13.4-ruby-gcc10.patch @@ -0,0 +1,13 @@ +https://github.com/rkd77/felinks/pull/61 + +--- a/src/scripting/ruby/core.h ++++ b/src/scripting/ruby/core.h +@@ -21,7 +21,7 @@ + #define RB_ERRINFO (ruby_errinfo) + #endif + +-VALUE erb_module; ++extern VALUE erb_module; + + void alert_ruby_error(struct session *ses, unsigned char *msg); + void erb_report_error(struct session *ses, int state);