mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
app-admin/lnav: fix build w/ gcc-15
Closes: https://bugs.gentoo.org/936409 Thanks-to: David Seifert <soap@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
23
app-admin/lnav/files/lnav-0.11.2-gcc15.patch
Normal file
23
app-admin/lnav/files/lnav-0.11.2-gcc15.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
https://github.com/tstack/lnav/pull/1285
|
||||
https://github.com/tstack/lnav/commit/ce97375280877f80e3dcebd20c21be44b13d8199
|
||||
|
||||
From ce97375280877f80e3dcebd20c21be44b13d8199 Mon Sep 17 00:00:00 2001
|
||||
From: David Seifert <soap@gentoo.org>
|
||||
Date: Sun, 21 Jul 2024 19:38:41 +0200
|
||||
Subject: [PATCH] [build] fix for GCC 15 two-phase lookup
|
||||
|
||||
* GCC 15 is more aggressive about checking dependent names
|
||||
|
||||
Bug: https://bugs.gentoo.org/936409
|
||||
--- a/src/vtab_module.hh
|
||||
+++ b/src/vtab_module.hh
|
||||
@@ -582,7 +582,7 @@ struct vtab_module : public vtab_module_base {
|
||||
struct vtab {
|
||||
explicit vtab(sqlite3* db, T& impl) : v_db(db), v_impl(impl) {}
|
||||
|
||||
- explicit operator sqlite3_vtab*() { return &this->base; }
|
||||
+ explicit operator sqlite3_vtab*() { return &this->v_base; }
|
||||
|
||||
sqlite3_vtab v_base{};
|
||||
sqlite3* v_db;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -36,6 +36,7 @@ DOCS=( AUTHORS NEWS.md README )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.11.0-disable-tests.patch
|
||||
"${FILESDIR}"/${PN}-0.11.2-gcc15.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user