Skip to content

Commit

Permalink
dev-qt/qtbase: add 6.5.2-r2, drop 6.5.2-r1
Browse files Browse the repository at this point in the history
Signed-off-by: orbea <orbea@riseup.net>
  • Loading branch information
orbea committed Sep 17, 2023
1 parent a1b07f7 commit cc45677
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dev-qt/qtbase/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<name>Gentoo Qt Project</name>
</maintainer>
<use>
<flag name="X">Build the XCB platform plugin and enable X11 integration</flag>
<flag name="brotli">Enable support for Brotli decompression</flag>
<flag name="concurrent">Build Qt6Concurrent module</flag>
<flag name="dbus">Build Qt6DBus module</flag>
Expand All @@ -17,11 +18,10 @@
<flag name="libinput">Enable support for input devices via <pkg>dev-libs/libinput</pkg></flag>
<flag name="libproxy">Use <pkg>net-libs/libproxy</pkg> for automatic HTTP/SOCKS proxy configuration</flag>
<flag name="network">Build Qt6Network module</flag>
<flag name="renderdoc">Enable support for capturing graphic's API calls using <pkg>media-gfx/renderdoc</pkg></flag>
<flag name="sql">Build Qt6Sql module</flag>
<flag name="systemd">Enable native journald logging support</flag>
<flag name="tslib">Enable support for touchscreen devices via <pkg>x11-libs/tslib</pkg></flag>
<flag name="widgets">Build Qt6Widgets module</flag>
<flag name="X">Build the XCB platform plugin and enable X11 integration</flag>
</use>
<upstream>
<bugs-to>https://bugreports.qt.io/</bugs-to>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ inherit flag-o-matic qt6-build toolchain-funcs
DESCRIPTION="Cross-platform application development framework"

if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64"
KEYWORDS="amd64 ~arm ~arm64 ~x86"
fi

declare -A QT6_IUSE=(
[global]="+ssl +udev zstd"
[core]="icu systemd"
[core]="icu"
[modules]="+concurrent +dbus +gui +network +sql +xml"

[gui]="
Expand All @@ -24,7 +24,7 @@ declare -A QT6_IUSE=(
[sql]="mysql oci8 odbc postgres +sqlite"
[widgets]="cups gtk"

[optfeature]="wayland" #864509
[optfeature]="nls wayland" #810802,864509
)
IUSE="${QT6_IUSE[*]}"
REQUIRED_USE="
Expand All @@ -36,6 +36,7 @@ REQUIRED_USE="
)
accessibility? ( X dbus )
eglfs? ( opengl )
gles2-only? ( opengl )
gui? ( || ( X eglfs wayland ) )
libinput? ( udev )
sql? ( || ( ${QT6_IUSE[sql]//+/} ) )
Expand All @@ -60,7 +61,6 @@ RDEPEND="
dev-libs/glib:2
dev-libs/libpcre2:=[pcre16,unicode(+)]
icu? ( dev-libs/icu:= )
systemd? ( sys-apps/systemd:= )
dbus? ( sys-apps/dbus )
gui? (
Expand Down Expand Up @@ -124,10 +124,14 @@ DEPEND="
)
"
BDEPEND="zstd? ( app-arch/libarchive[zstd] )" #910392
PDEPEND="wayland? ( ~dev-qt/qtwayland-${PV}:6 )"
PDEPEND="
nls? ( ~dev-qt/qttranslations-${PV}:6 )
wayland? ( ~dev-qt/qtwayland-${PV}:6 )
"

PATCHES=(
"${FILESDIR}/${PN}-6.5.0-libressl.patch"
"${FILESDIR}"/${PN}-6.5.2-no-symlink-check.patch
"${FILESDIR}"/${P}-CVE-2023-38197.patch
"${FILESDIR}"/${P}-tests-gcc13.patch
)
Expand All @@ -144,6 +148,8 @@ src_prepare() {

src_configure() {
local mycmakeargs=(
-DBUILD_WITH_PCH=OFF

-DINSTALL_ARCHDATADIR="${QT6_ARCHDATADIR}"
-DINSTALL_BINDIR="${QT6_BINDIR}"
-DINSTALL_DATADIR="${QT6_DATADIR}"
Expand All @@ -158,15 +164,13 @@ src_configure() {
-DINSTALL_SYSCONFDIR="${QT6_SYSCONFDIR}"
-DINSTALL_TRANSLATIONSDIR="${QT6_TRANSLATIONDIR}"

-DQT_FEATURE_precompile_header=OFF
$(qt_feature ssl openssl)
$(qt_feature ssl openssl_linked)
$(qt_feature udev libudev)
$(qt_feature zstd)

# qtcore
$(qt_feature icu)
$(qt_feature systemd journald)

# tools
-DQT_FEATURE_androiddeployqt=OFF
Expand All @@ -190,13 +194,11 @@ src_configure() {
$(qt_feature eglfs)
$(qt_feature evdev)
$(qt_feature evdev mtdev)
$(qt_feature gles2-only opengles2)
$(qt_feature libinput)
$(qt_feature opengl)
$(usev !opengl -DINPUT_opengl=no) #913691
$(qt_feature tslib)
$(qt_feature vulkan)
$(qt_feature widgets)
-DINPUT_opengl=$(usex opengl $(usex gles2-only es2 desktop) no)
-DQT_FEATURE_system_textmarkdownreader=OFF # TODO?: package md4c
) && use widgets && mycmakeargs+=(
$(qt_feature cups) # qtprintsupport is enabled w/ gui+widgets
Expand Down Expand Up @@ -298,13 +300,15 @@ src_test() {
tst_qglyphrun
tst_qvectornd
tst_rcc
# similarly, but on armv7 (bug #914028)
tst_qlineedit
tst_qpainter
# partially broken on llvm-musl, needs looking into but skip to have
# a baseline for regressions (like above, rest of dev-qt is fine)
$(usev elibc_musl '
tst_qfiledialog2
tst_qicoimageformat
tst_qimagereader
tst_qpainter
tst_qimage
')
# note: for linux, upstream only really runs+maintains tests for amd64
Expand Down

0 comments on commit cc45677

Please sign in to comment.