Skip to content

Truly independent web browser

Meta+UI/Qt: Remove the Linux Qt private build dependency

Timothy Flynn29a12c3ea74e
diff --git a/.devcontainer/features/ladybird/install-ubuntu.sh b/.devcontainer/features/ladybird/install-ubuntu.sh
index 0a67a2b2201..e5a2d0da708 100644
--- a/.devcontainer/features/ladybird/install-ubuntu.sh
+++ b/.devcontainer/features/ladybird/install-ubuntu.sh
@@ -31,7 +31,7 @@ install_cmake() {
### Install packages
apt update -y
-apt install -y autoconf autoconf-archive automake build-essential ccache curl fonts-liberation2 git glslang-tools libdrm-dev libgl1-mesa-dev libncurses-dev libpulse-dev libtool libwayland-dev libxcb-icccm4-dev lsb-release nasm ninja-build pkg-config python3 qt6-base-private-dev qt6-positioning-dev qt6-tools-dev-tools qt6-wayland shellcheck tar unzip zip
+apt install -y autoconf autoconf-archive automake build-essential ccache curl fonts-liberation2 git glslang-tools libdrm-dev libgl1-mesa-dev libncurses-dev libpulse-dev libtool libwayland-dev libxcb-icccm4-dev lsb-release nasm ninja-build pkg-config python3 qt6-base-dev qt6-positioning-dev qt6-tools-dev-tools qt6-wayland shellcheck tar unzip zip
install_cmake
diff --git a/Documentation/BuildInstructionsLadybird.md b/Documentation/BuildInstructionsLadybird.md
index 397fbe704bc..954646a983e 100644
--- a/Documentation/BuildInstructionsLadybird.md
+++ b/Documentation/BuildInstructionsLadybird.md
@@ -20,7 +20,7 @@ CMake 3.30 or newer must be available in $PATH.
<!-- Note: If you change something here, please also change it in the `devcontainer/devcontainer.json` file. -->
```bash
-sudo apt install autoconf autoconf-archive automake build-essential ccache cmake curl fonts-liberation2 git glslang-tools libdrm-dev libgl1-mesa-dev libncurses-dev libpulse-dev libtool libwayland-dev libxcb-icccm4-dev nasm ninja-build pkg-config python3-venv qt6-base-private-dev qt6-positioning-dev qt6-tools-dev-tools qt6-wayland tar unzip zip
+sudo apt install autoconf autoconf-archive automake build-essential ccache cmake curl fonts-liberation2 git glslang-tools libdrm-dev libgl1-mesa-dev libncurses-dev libpulse-dev libtool libwayland-dev libxcb-icccm4-dev nasm ninja-build pkg-config python3-venv qt6-base-dev qt6-positioning-dev qt6-tools-dev-tools qt6-wayland tar unzip zip
```
#### CMake 3.30 or newer:
@@ -76,13 +76,13 @@ sudo pacman -S --needed autoconf-archive base-devel ccache cmake curl git less l
### Fedora or derivatives:
```
-sudo dnf install autoconf-archive automake ccache cmake curl git glslang libdrm-devel liberation-sans-fonts libglvnd-devel libtool nasm ncurses-devel ninja-build patchelf perl-FindBin perl-IPC-Cmd perl-lib perl-Time-Piece pulseaudio-libs-devel qt6-qtbase-private-devel qt6-qtpositioning-devel qt6-qttools-devel qt6-qtwayland-devel tar unzip xcb-util-wm-devel zip zlib-ng-compat-static
+sudo dnf install autoconf-archive automake ccache cmake curl git glslang libdrm-devel liberation-sans-fonts libglvnd-devel libtool nasm ncurses-devel ninja-build patchelf perl-FindBin perl-IPC-Cmd perl-lib perl-Time-Piece pulseaudio-libs-devel qt6-qtbase-devel qt6-qtpositioning-devel qt6-qttools-devel qt6-qtwayland-devel tar unzip xcb-util-wm-devel zip zlib-ng-compat-static
```
### openSUSE:
```
-sudo zypper install autoconf-archive automake ccache cmake curl gcc16 gcc16-c++ git liberation-fonts libglvnd-devel libpulse-devel libtool nasm ncurses-devel ninja qt6-base-private-devel qt6-positioning-devel qt6-tools-devel qt6-wayland-devel tar unzip xcb-util-wm-devel zip
+sudo zypper install autoconf-archive automake ccache cmake curl gcc16 gcc16-c++ git liberation-fonts libglvnd-devel libpulse-devel libtool nasm ncurses-devel ninja qt6-base-devel qt6-positioning-devel qt6-tools-devel qt6-wayland-devel tar unzip xcb-util-wm-devel zip
```
If one or more of the base repository packages are flagged as having an out-of-date version during the build process, you may need add the `devel:tools:building` repository. For example, on Leap 15.6, the `autoconf` package might be version 2.69, whereas the `gperf` package requires 2.70 to build.
@@ -122,7 +122,7 @@ This virtual environment can be created once and reused in future shell sessions
```
sudo xbps-install -Su # (optional) ensure packages are up to date to avoid "Transaction aborted due to unresolved dependencies."
-sudo xbps-install -S git bash gcc python3 curl cmake libtool zip unzip linux-headers make pkg-config autoconf automake autoconf-archive nasm ncurses-devel MesaLib-devel ninja pulseaudio-devel qt6-base-private-devel qt6-position-devel qt6-tools-devel qt6-wayland-devel xcb-util-wm-devel
+sudo xbps-install -S git bash gcc python3 curl cmake libtool zip unzip linux-headers make pkg-config autoconf automake autoconf-archive nasm ncurses-devel MesaLib-devel ninja pulseaudio-devel qt6-base-devel qt6-position-devel qt6-tools-devel qt6-wayland-devel xcb-util-wm-devel
```
### NixOS or with Nix:
diff --git a/Meta/CMake/check_for_dependencies.cmake b/Meta/CMake/check_for_dependencies.cmake
index 17ebeca87cd..6fdb389b02d 100644
--- a/Meta/CMake/check_for_dependencies.cmake
+++ b/Meta/CMake/check_for_dependencies.cmake
@@ -151,9 +151,9 @@ if (ENABLE_GUI_TARGETS AND NOT (ANDROID OR VCPKG_TARGET_ANDROID))
list(APPEND LADYBIRD_QT_COMPONENTS Positioning)
endif()
- if (APPLE OR (LINUX AND NOT ANDROID) OR HAS_DIRECTX)
+ if (APPLE OR HAS_DIRECTX)
# The native presentation paths use platform GPU buffer handles directly instead of copying frames through CPU
- # memory. Wayland activation also uses Qt platform APIs.
+ # memory.
list(APPEND LADYBIRD_QT_COMPONENTS GuiPrivate)
set(QT_NO_PRIVATE_MODULE_WARNING ON)
endif()
diff --git a/Meta/Docker/ci/VERSION b/Meta/Docker/ci/VERSION
index 2cabdf10da3..ec3c7665f86 100644
--- a/Meta/Docker/ci/VERSION
+++ b/Meta/Docker/ci/VERSION
@@ -1 +1 @@
-2026.11.19
+2026.11.20
diff --git a/Meta/Docker/ci/install-build-dependencies.sh b/Meta/Docker/ci/install-build-dependencies.sh
index 5d77c2555c5..97b26551d94 100755
--- a/Meta/Docker/ci/install-build-dependencies.sh
+++ b/Meta/Docker/ci/install-build-dependencies.sh
@@ -82,7 +82,7 @@ case "${ID}" in
pulseaudio \
python3 \
python3-venv \
- qt6-base-private-dev \
+ qt6-base-dev \
qt6-positioning-dev \
qt6-tools-dev-tools \
tar \
@@ -129,7 +129,7 @@ case "${ID}" in
pulseaudio \
pulseaudio-libs-devel \
python3 \
- qt6-qtbase-private-devel \
+ qt6-qtbase-devel \
qt6-qtpositioning-devel \
qt6-qttools-devel \
qt6-qtwayland-devel \
diff --git a/UI/Qt/CMakeLists.txt b/UI/Qt/CMakeLists.txt
index 18d0bb5bbe5..20dc781f6b6 100644
--- a/UI/Qt/CMakeLists.txt
+++ b/UI/Qt/CMakeLists.txt
@@ -96,7 +96,7 @@ endif()
if (LINUX AND NOT ANDROID)
target_sources(ladybird_impl PRIVATE DefaultBrowserLinux.cpp ExternalURLActivationToken.cpp ExternalURLHandler.cpp X11Window.cpp X11Window.h)
- target_link_libraries(ladybird_impl PRIVATE LibThreading PkgConfig::GIO PkgConfig::XCB_ICCCM Qt::GuiPrivate)
+ target_link_libraries(ladybird_impl PRIVATE LibThreading PkgConfig::GIO PkgConfig::XCB_ICCCM)
if (WAYLAND_CLIENT_FOUND)
target_sources(ladybird_impl PRIVATE WaylandWindow.cpp WaylandWindow.h)
target_link_libraries(ladybird_impl PRIVATE PkgConfig::WAYLAND_CLIENT)