summaryrefslogtreecommitdiff
path: root/dev-db/sqlitebrowser
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-06-28 03:56:13 +0100
committerSam James <sam@gentoo.org>2025-06-28 03:56:13 +0100
commit1544277caa672bae727a5dea188b4234b4f9381c (patch)
tree49b5c8ee286e3deb3769d642a0defc6f5ff2ea28 /dev-db/sqlitebrowser
parent1cef3bf7f58577e31431c134995f96af4ef1c2f7 (diff)
downloadgentoo-1544277caa672bae727a5dea188b4234b4f9381c.tar.gz
gentoo-1544277caa672bae727a5dea188b4234b4f9381c.tar.bz2
gentoo-1544277caa672bae727a5dea188b4234b4f9381c.zip
dev-db/sqlitebrowser: fix build w/ qt-6.9
Closes: https://bugs.gentoo.org/957676 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/sqlitebrowser')
-rw-r--r--dev-db/sqlitebrowser/files/sqlitebrowser-3.13.1_p20250502-qt-6.9.patch35
-rw-r--r--dev-db/sqlitebrowser/sqlitebrowser-3.13.1_p20250502-r1.ebuild5
2 files changed, 39 insertions, 1 deletions
diff --git a/dev-db/sqlitebrowser/files/sqlitebrowser-3.13.1_p20250502-qt-6.9.patch b/dev-db/sqlitebrowser/files/sqlitebrowser-3.13.1_p20250502-qt-6.9.patch
new file mode 100644
index 000000000000..4b5a32015027
--- /dev/null
+++ b/dev-db/sqlitebrowser/files/sqlitebrowser-3.13.1_p20250502-qt-6.9.patch
@@ -0,0 +1,35 @@
+https://bugs.gentoo.org/957676
+https://github.com/sqlitebrowser/sqlitebrowser/pull/3948
+
+From 94b2f23517e59fdd8dd222989f704bef2c9460a2 Mon Sep 17 00:00:00 2001
+From: Patrick Ziegler <zipat@proton.me>
+Date: Wed, 4 Jun 2025 15:42:29 +0200
+Subject: [PATCH] Fix enum class value conversion for storing last locations
+
+See issue #3949.
+---
+ src/FileDialog.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/FileDialog.cpp b/src/FileDialog.cpp
+index a3b611747..df4271b68 100644
+--- a/src/FileDialog.cpp
++++ b/src/FileDialog.cpp
+@@ -48,7 +48,7 @@ QString FileDialog::getFileDialogPath(const FileDialogTypes dialogType)
+ case 2: { // Remember last location for current session only
+ QHash<QString, QVariant> lastLocations = Settings::getValue("db", "lastlocations").toHash();
+
+- return lastLocations[QString(QChar(dialogType))].toString();
++ return lastLocations[QString::number(static_cast<int>(dialogType))].toString();
+ }
+ case 1: // Always use this locations
+ return Settings::getValue("db", "defaultlocation").toString();
+@@ -62,7 +62,7 @@ void FileDialog::setFileDialogPath(const FileDialogTypes dialogType, const QStri
+ QString dir = QFileInfo(new_path).absolutePath();
+ QHash<QString, QVariant> lastLocations = Settings::getValue("db", "lastlocations").toHash();
+
+- lastLocations[QString(QChar(dialogType))] = dir;
++ lastLocations[QString::number(static_cast<int>(dialogType))] = dir;
+
+ switch(Settings::getValue("db", "savedefaultlocation").toInt())
+ {
diff --git a/dev-db/sqlitebrowser/sqlitebrowser-3.13.1_p20250502-r1.ebuild b/dev-db/sqlitebrowser/sqlitebrowser-3.13.1_p20250502-r1.ebuild
index afd3734523b8..8d5d57a26253 100644
--- a/dev-db/sqlitebrowser/sqlitebrowser-3.13.1_p20250502-r1.ebuild
+++ b/dev-db/sqlitebrowser/sqlitebrowser-3.13.1_p20250502-r1.ebuild
@@ -39,7 +39,10 @@ BDEPEND="dev-qt/qttools:6[linguist]"
DOCS=( images/ {BUILDING,CHANGELOG,README}.md )
-PATCHES=( "${FILESDIR}/${P}-no-git.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-no-git.patch"
+ "${FILESDIR}/${P}-qt-6.9.patch"
+)
src_configure() {
local mycmakeargs=(