commit:     a9edb98841e0786ca192d96f1493b3be13d1887c
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Fri Apr 25 22:11:02 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun May 25 21:12:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9edb988

www-apps/tt-rss: drop mysql support, rm no-chmod patch for live, update PHP_USE

chmod removed by upstream :
https://gitlab.tt-rss.org/tt-rss/tt-rss/-/commit/be82663ac9b59de8a135178a519efe9f7ebae213

update PHP_USE (from composer.lock) :
json is no longer an useflag since dev-lang/php-8
add ctype, filter, tokenizer

drop mysql support

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/41756
Closes: https://github.com/gentoo/gentoo/pull/41756
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 www-apps/tt-rss/tt-rss-99999999.ebuild | 41 +++++++++++++++++++++++++++++-----
 1 file changed, 35 insertions(+), 6 deletions(-)

diff --git a/www-apps/tt-rss/tt-rss-99999999.ebuild 
b/www-apps/tt-rss/tt-rss-99999999.ebuild
index 4cfffd3921c4..9c83e2ff6538 100644
--- a/www-apps/tt-rss/tt-rss-99999999.ebuild
+++ b/www-apps/tt-rss/tt-rss-99999999.ebuild
@@ -10,11 +10,10 @@ HOMEPAGE="https://tt-rss.org/";
 EGIT_REPO_URI="https://git.tt-rss.org/fox/${PN}.git";
 LICENSE="GPL-3"
 SLOT="${PV}" # Single live slot.
-IUSE="+acl daemon gd +mysqli postgres"
-REQUIRED_USE="|| ( mysqli postgres )"
+IUSE="+acl daemon gd"
 
 PHP_SLOTS="8.4 8.3 8.2" # Check with: grep PHP_VERSION classes/Config.php
-PHP_USE="gd?,mysqli?,postgres?,curl,fileinfo,intl,json(+),pdo,unicode,xml"
+PHP_USE="gd?,postgres,ctype,curl,fileinfo,filter,intl,pdo,tokenizer,unicode,xml"
 
 php_rdepend() {
        local slot
@@ -50,9 +49,39 @@ DEPEND="
 
 need_httpd_cgi # From webapp.eclass
 
-PATCHES=(
-       "${FILESDIR}"/${PN}-no-chmod.patch
-)
+pkg_pretend() {
+       if has_version www-apps/tt-rss[mysqli]; then
+               ewarn
+               ewarn "You are currently using tt-rss with mysql backend."
+               ewarn
+               ewarn "THIS IS NOT SUPPORTED ANYMORE."
+               ewarn
+               ewarn "Since 2025-04-14 tt-rss has dropped support for MySQL."
+               ewarn
+               ewarn "To upgrade, you need to migrate to PostgreSQL first."
+               ewarn
+               ewarn "Migrating between different tt-rss versions might work 
but is not recommended."
+               ewarn "It's recommended to switch to =www-apps/tt-rss-20250414 
for migration."
+               ewarn
+               ewarn "Export/Import articles could be done with an official 
plugin:"
+               ewarn "ttrss-data-migration"
+               ewarn "For plugin installation and export/import, see:"
+               ewarn 
"https://gitlab.tt-rss.org/tt-rss/plugins/ttrss-data-migration";
+               ewarn
+               ewarn "Example of migration steps:"
+               ewarn "0. Setup PostgreSQL (dev-db/postgresql)"
+               ewarn "1. Backup !"
+               ewarn "2. Export settings/feeds (OPML)"
+               ewarn "3. Export articles (JSON) via ttrss-data-migration"
+               ewarn "4. Migrate to PostgreSQL backend changing USE flag 
mysqli to postgres"
+               ewarn "5. Emerge www-apps/tt-rss with new USE flag"
+               ewarn "6. Setup fresh install of tt-rss with PostgreSQL backend"
+               ewarn "7. Import settings/feeds (OPML)"
+               ewarn "8. Import articles"
+               ewarn
+               die "MySQL backend not supported anymore"
+       fi
+}
 
 src_install() {
        webapp_src_preinst

Reply via email to