From 900140fa4d64d23b1ff3478ebe4d1da94ae5f84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 1 May 2026 13:37:36 +0200 Subject: [PATCH] net-news/rssguard: Add a database schema change warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- net-news/rssguard/rssguard-5.1.0.ebuild | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/net-news/rssguard/rssguard-5.1.0.ebuild b/net-news/rssguard/rssguard-5.1.0.ebuild index 057ff3be8cdd0..a71a578aafab2 100644 --- a/net-news/rssguard/rssguard-5.1.0.ebuild +++ b/net-news/rssguard/rssguard-5.1.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake xdg +inherit cmake eapi9-ver xdg DESCRIPTION="Simple (yet powerful) news feed reader" HOMEPAGE="https://github.com/martinrotter/rssguard/" @@ -12,7 +12,7 @@ SRC_URI=" " LICENSE="|| ( LGPL-3 GPL-2+ ) AGPL-3+ BSD GPL-3+ MIT" -SLOT="0" +SLOT="0/101" KEYWORDS="~amd64" IUSE="icu libmpv mysql qtmultimedia +sqlite webengine" REQUIRED_USE=" @@ -49,7 +49,19 @@ RDEPEND="${DEPEND}" # go QA_FLAGS_IGNORED="/usr/bin/rssguard-article-extractor" +pkg_pretend() { + if ver_replacing -lt 5.1.0; then + ewarn "RSSGuard 5.1.0 changed its database schema. Once you start the new" + ewarn "version, the database will be upgraded in place and it will" + ewarn "no longer be possible to run an older version of RSSGuard with it." + fi +} + src_configure() { + grep -q "^#define APP_DB_SCHEMA_VERSION\s*\"${SLOT#0/}\"$" \ + src/librssguard/definitions/definitions.h || + die "APP_DB_SCHEMA_VERSION changed, update SLOT" + local mycmakeargs=( -DBUILD_WITH_QT6=ON -DREVISION_FROM_GIT=OFF