Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt 6.4.1 #115926

Closed
wants to merge 7 commits into from
Closed

qt 6.4.1 #115926

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Formula/qt-libiodbc.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class QtLibiodbc < Formula
desc "Qt SQL Database Driver"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/submodules/qtbase-everywhere-src-6.4.0.tar.xz"
sha256 "cb6475a0bd8567c49f7ffbb072a05516ee6671171bed55db75b22b94ead9b37d"
license all_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
chenrui333 marked this conversation as resolved.
Show resolved Hide resolved
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/submodules/qtbase-everywhere-src-6.4.1.tar.xz"
sha256 "532ad71cc0f9c8f7cb92766c47bc3d23263c60876becd9053802f9727af24fae"
license any_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-3.0-only"]

livecheck do
formula "qt"
Expand Down
6 changes: 3 additions & 3 deletions Formula/qt-mariadb.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class QtMariadb < Formula
desc "Qt SQL Database Driver"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/submodules/qtbase-everywhere-src-6.4.0.tar.xz"
sha256 "cb6475a0bd8567c49f7ffbb072a05516ee6671171bed55db75b22b94ead9b37d"
license all_of: ["LGPL-2.1-only", "LGPL-3.0-only"]
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/submodules/qtbase-everywhere-src-6.4.1.tar.xz"
sha256 "532ad71cc0f9c8f7cb92766c47bc3d23263c60876becd9053802f9727af24fae"
license any_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-3.0-only"]

livecheck do
formula "qt"
Expand Down
6 changes: 3 additions & 3 deletions Formula/qt-mysql.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class QtMysql < Formula
desc "Qt SQL Database Driver"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/submodules/qtbase-everywhere-src-6.4.0.tar.xz"
sha256 "cb6475a0bd8567c49f7ffbb072a05516ee6671171bed55db75b22b94ead9b37d"
license all_of: ["LGPL-2.1-only", "LGPL-3.0-only"]
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/submodules/qtbase-everywhere-src-6.4.1.tar.xz"
sha256 "532ad71cc0f9c8f7cb92766c47bc3d23263c60876becd9053802f9727af24fae"
license any_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-3.0-only"]

livecheck do
formula "qt"
Expand Down
6 changes: 3 additions & 3 deletions Formula/qt-percona-server.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class QtPerconaServer < Formula
desc "Qt SQL Database Driver"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/submodules/qtbase-everywhere-src-6.4.0.tar.xz"
sha256 "cb6475a0bd8567c49f7ffbb072a05516ee6671171bed55db75b22b94ead9b37d"
license all_of: ["LGPL-2.1-only", "LGPL-3.0-only"]
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/submodules/qtbase-everywhere-src-6.4.1.tar.xz"
sha256 "532ad71cc0f9c8f7cb92766c47bc3d23263c60876becd9053802f9727af24fae"
license any_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-3.0-only"]

livecheck do
formula "qt"
Expand Down
6 changes: 3 additions & 3 deletions Formula/qt-postgresql.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class QtPostgresql < Formula
desc "Qt SQL Database Driver"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/submodules/qtbase-everywhere-src-6.4.0.tar.xz"
sha256 "cb6475a0bd8567c49f7ffbb072a05516ee6671171bed55db75b22b94ead9b37d"
license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/submodules/qtbase-everywhere-src-6.4.1.tar.xz"
sha256 "532ad71cc0f9c8f7cb92766c47bc3d23263c60876becd9053802f9727af24fae"
license any_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-3.0-only"]

livecheck do
formula "qt"
Expand Down
6 changes: 3 additions & 3 deletions Formula/qt-unixodbc.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class QtUnixodbc < Formula
desc "Qt SQL Database Driver"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/submodules/qtbase-everywhere-src-6.4.0.tar.xz"
sha256 "cb6475a0bd8567c49f7ffbb072a05516ee6671171bed55db75b22b94ead9b37d"
license all_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/submodules/qtbase-everywhere-src-6.4.1.tar.xz"
sha256 "532ad71cc0f9c8f7cb92766c47bc3d23263c60876becd9053802f9727af24fae"
license any_of: ["GPL-2.0-only", "GPL-3.0-only", "LGPL-3.0-only"]

livecheck do
formula "qt"
Expand Down
48 changes: 34 additions & 14 deletions Formula/qt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ class Qt < Formula

desc "Cross-platform application and UI framework"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.4/6.4.0/single/qt-everywhere-src-6.4.0.tar.xz"
sha256 "8936b0354d95fa26e87be65cc9c840495360ad93fd09b069bc780cbcab4a2ca1"
license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
revision 1
url "https://download.qt.io/official_releases/qt/6.4/6.4.1/single/qt-everywhere-src-6.4.1.tar.xz"
sha256 "e20b850b6134098a7f2e7701cfddfb213c6cf394b9e848e6fbc5b0e89dcfcc09"
license all_of: [
"BSD-3-Clause",
"GFDL-1.3-no-invariants-only",
"GPL-2.0-only",
{ "GPL-3.0-only" => { with: "Qt-GPL-exception-1.0" } },
"LGPL-3.0-only",
]
head "https://code.qt.io/qt/qt5.git", branch: "dev"

# The first-party website doesn't make version information readily available,
Expand All @@ -31,8 +36,11 @@ class Qt < Formula
depends_on "pkg-config" => :build
depends_on "[email protected]" => :build
depends_on "six" => :build
depends_on "vulkan-headers" => [:build, :test]
depends_on xcode: :build

depends_on "vulkan-loader" => :test

depends_on "assimp"
depends_on "brotli"
depends_on "dbus"
Expand Down Expand Up @@ -65,6 +73,10 @@ class Qt < Formula
uses_from_macos "libxslt"
uses_from_macos "zlib"

on_macos do
depends_on "molten-vk" => [:build, :test]
end

on_linux do
depends_on "alsa-lib"
depends_on "at-spi2-core"
Expand Down Expand Up @@ -122,12 +134,12 @@ class Qt < Formula
directory "qtbase"
end

# Fix build with LLVM 15 (QTBUG-107074).
# Remove with 6.4.1.
# Fix Linux build with CMake versions >= 3.25
# remove in next release
patch do
url "https://github.com/qt/qttools/commit/01cae372619369d1a5a04f4d0f87817011029b78.patch?full_index=1"
sha256 "2ec45719fcc5b12c97040b4f30fdbb5d4c1dc1dded15f02f271ac7c668f5a2a0"
directory "qttools"
url "https://github.com/qt/qtwebengine/commit/240e71877865ed07e4c8d5bd4553aa0772c2adf4.patch?full_index=1"
sha256 "8fb13bfc7aac50084e1c533955564a1819bbb25b544ebccd05b99e24527c7b80"
directory "qtwebengine"
end

def install
Expand Down Expand Up @@ -263,7 +275,7 @@ def install
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt6 COMPONENTS Core Widgets Sql Concurrent
find_package(Qt6 COMPONENTS Core Gui Widgets Sql Concurrent
3DCore Svg Quick3D Network NetworkAuth REQUIRED)

add_executable(test
Expand All @@ -272,42 +284,48 @@ def install

target_link_libraries(test PRIVATE Qt6::Core Qt6::Widgets
Qt6::Sql Qt6::Concurrent Qt6::3DCore Qt6::Svg Qt6::Quick3D
Qt6::Network Qt6::NetworkAuth
Qt6::Network Qt6::NetworkAuth Qt6::Gui
)
EOS

(testpath/"test.pro").write <<~EOS
QT += core svg 3dcore network networkauth quick3d \
sql
sql gui widgets
TARGET = test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
INCLUDEPATH += #{Formula["vulkan-headers"].opt_include}
EOS

(testpath/"main.cpp").write <<~EOS
#undef QT_NO_DEBUG
#include <QCoreApplication>
#include <QGuiApplication>
#include <Qt3DCore>
#include <QtQuick3D>
#include <QImageReader>
#include <QtNetworkAuth>
#include <QtSql>
#include <QtSvg>
#include <QDebug>
#include <QVulkanInstance>
#include <iostream>

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QGuiApplication app(argc, argv);
QSvgGenerator generator;
auto *handler = new QOAuthHttpServerReplyHandler();
delete handler; handler = nullptr;
auto *root = new Qt3DCore::QEntity();
delete root; root = nullptr;
Q_ASSERT(QSqlDatabase::isDriverAvailable("QSQLITE"));
const auto &list = QImageReader::supportedImageFormats();
QVulkanInstance inst;
// See https://github.com/actions/runner-images/issues/1779
// if (!inst.create())
// qFatal("Failed to create Vulkan instance: %d", inst.errorCode());
for(const char* fmt:{"bmp", "cur", "gif",
#ifdef __APPLE__
"heic", "heif",
Expand All @@ -321,6 +339,8 @@ def install
}
EOS

ENV["QT_VULKAN_LIB"] = Formula["vulkan-loader"].opt_lib/(shared_library "libvulkan")
carlocab marked this conversation as resolved.
Show resolved Hide resolved

system "cmake", testpath
system "make"
system "./test"
Expand Down