[packages/qt-creator] don't expose apis with __int128_t on archs which don't support it
atler
atler at pld-linux.org
Thu Sep 3 02:32:30 CEST 2026
commit 9acac4a661c3a21c7678966cd152c7e3d56afeb4
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Sep 3 02:32:00 2026 +0200
don't expose apis with __int128_t on archs which don't support it
int128.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
qt-creator.spec | 2 ++
2 files changed, 62 insertions(+)
---
diff --git a/qt-creator.spec b/qt-creator.spec
index ab53a72..cd33e87 100644
--- a/qt-creator.spec
+++ b/qt-creator.spec
@@ -25,6 +25,7 @@ Source0: https://download.qt.io/official_releases/qtcreator/20.0/%{version}/%{na
# tar acf go-vendor.tar.xz src/libs/gocmdbridge/server/vendor
Source1: go-vendor.tar.xz
# Source1-md5: be8524f78f4bff8f151db634c1d7e23d
+Patch0: int128.patch
URL: https://doc.qt.io/qtcreator/
BuildRequires: Qt6Concurrent-devel >= %{qtver}
BuildRequires: Qt6Designer-devel >= %{qtver}
@@ -84,6 +85,7 @@ Qt.
%prep
%setup -q -n %{name}-opensource-src-%{version} -a1
+%patch -P0 -p1
sed -i '1s,/usr/bin/env python,%{__python},' src/shared/qbs/src/3rdparty/python/lib/python3.9/site-packages/dmgbuild/__main__.py
diff --git a/int128.patch b/int128.patch
new file mode 100644
index 0000000..373ee1e
--- /dev/null
+++ b/int128.patch
@@ -0,0 +1,60 @@
+--- qt-creator-opensource-src-20.0.1/src/libs/sqlite/sqlitebasestatement.cpp.orig 2026-07-28 01:35:35.000000000 +0000
++++ qt-creator-opensource-src-20.0.1/src/libs/sqlite/sqlitebasestatement.cpp 2026-09-02 21:23:39.623333067 +0000
+@@ -163,7 +163,7 @@
+ Sqlite::throwError(resultCode, sqliteDatabaseHandle(sourceLocation), sourceLocation);
+ }
+
+-#ifdef Q_OS_UNIX
++#if defined(Q_OS_UNIX) && defined(__SIZEOF_INT128__)
+ void BaseStatement::bind(int index, __int128_t value, const source_location &sourceLocation)
+ {
+ NanotraceHR::Tracer tracer{"bind int128",
+@@ -560,7 +560,7 @@
+ return value;
+ }
+
+-#ifdef Q_OS_UNIX
++#if defined(Q_OS_UNIX) && defined(__SIZEOF_INT128__)
+ __int128_t BaseStatement::fetchInt128Value(int column) const
+ {
+ NanotraceHR::Tracer tracer{"fetch int 128",
+@@ -586,7 +586,7 @@
+ return fetchLongLongValue(column);
+ }
+
+-#ifdef Q_OS_UNIX
++#if defined(Q_OS_UNIX) && defined(__SIZEOF_INT128__)
+ template<>
+ __int128_t BaseStatement::fetchValue<__int128_t>(int column) const
+ {
+--- qt-creator-opensource-src-20.0.1/src/libs/sqlite/sqlitebasestatement.h.orig 2026-07-28 01:35:35.000000000 +0000
++++ qt-creator-opensource-src-20.0.1/src/libs/sqlite/sqlitebasestatement.h 2026-09-02 21:23:54.716666390 +0000
+@@ -59,7 +59,7 @@
+ int fetchIntValue(int column) const;
+ long fetchLongValue(int column) const;
+ long long fetchLongLongValue(int column) const;
+-#ifdef Q_OS_UNIX
++#if defined(Q_OS_UNIX) && defined(__SIZEOF_INT128__)
+ __int128_t fetchInt128Value(int column) const;
+ #endif
+
+@@ -74,7 +74,7 @@
+ void bind(int index, NullValue, const source_location &sourceLocation);
+ void bind(int index, int value, const source_location &sourceLocation);
+ void bind(int index, long long value, const source_location &sourceLocation);
+-#ifdef Q_OS_UNIX
++#if defined(Q_OS_UNIX) && defined(__SIZEOF_INT128__)
+ void bind(int index, __int128_t value, const source_location &sourceLocation);
+ #endif
+
+--- qt-creator-opensource-src-20.0.1/tests/unit/tests/unittests/sqlite/sqlitestatement-test.cpp.orig 2026-07-28 01:35:34.000000000 +0000
++++ qt-creator-opensource-src-20.0.1/tests/unit/tests/unittests/sqlite/sqlitestatement-test.cpp 2026-09-02 21:24:05.166666382 +0000
+@@ -377,7 +377,7 @@
+ ASSERT_THAT(statement.fetchSmallStringViewValue(0), "poo");
+ }
+
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) && defined(__SIZEOF_INT128__)
+ TEST_F(SqliteStatement, bind_int128)
+ {
+ SqliteTestStatement<1, 1> statement("WITH T(blob) AS (VALUES (?)) SELECT blob FROM T", database);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qt-creator.git/commitdiff/9acac4a661c3a21c7678966cd152c7e3d56afeb4
More information about the pld-cvs-commit
mailing list