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:
Sam James
2024-07-24 08:11:50 +01:00
parent 4f7560c3d1
commit 985c76dc6a
2 changed files with 25 additions and 1 deletions

View 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;

View File

@@ -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() {