Add dev-qt from an older version of the gentoo repo

Qt5 has been removed, we restore it since we still use it.
This commit is contained in:
2026-07-03 09:45:00 +02:00
parent 2247967dd3
commit d5c461ec31
587 changed files with 30457 additions and 0 deletions

7
dev-qt/qtsvg/Manifest Normal file
View File

@ -0,0 +1,7 @@
DIST qtsvg-5.15.16-gentoo-kde-1.tar.xz 2880 BLAKE2B 43407f054b958e911b23d89baad627a947f305968943149ebe7712ffe76a3f0cb03b4cdc6cee019e46c7dbc6f38d802b48ee472b2d8aac92aba6187aff93ab7b SHA512 01bcc1dba55f32b77eebf8f0a2ca2230ac4d8440f345599846584c19adbdab6038f834f2647c4102ff46d10898b4764f554ca19d3339c6114d9c82760227247c
DIST qtsvg-5.15.17-gentoo-kde-1.tar.xz 2876 BLAKE2B 5b3c7ba6f35647958628b2422a6ba8b23384df2182febadb0a50ae80621deedadd09e1e1f7b909ca8b84f163d0101fcd318f528a7b3e0cf34b6211806bc92b3b SHA512 6158c518f4eece8be89b216d450bf6f006b9936321b2ac4c9078e5341777ac81667d87c5cf7f37ab315c9071512de3354e615324d4a65d3f596d713741023de3
DIST qtsvg-everywhere-opensource-src-5.15.16.tar.xz 1881028 BLAKE2B 50bac71738e2f8e7572ca5de1fd198d32db7b5c7ae1432d854b5e40632110359c3b24d1f390b7e80bedaa362a18f4f783b666ab0100ceeee87380843a736e6b5 SHA512 227b6b4f0d6ad7d9405c0bceabadfab28e591b4b02d7575de0ee7679280fc7115ec04751a8e839af5e9958e1800e6d4529bf8bae2251b579abbc688fdb99b9e8
DIST qtsvg-everywhere-opensource-src-5.15.17.tar.xz 1883104 BLAKE2B 47486a30a96f10df8b19d8f209a4465a370765fb903b17625b0926816ff13042d01a30a614fa202913d3a014fd87d3f715bb2354139ccf0dbe66a6e67f17581f SHA512 fd75fedcba3f741d930e90b196a0671349fde7877f4e9812ecc136c3eb9b0b0e814e9e8840e99d2990bf1c3ca5e9cf3ebebc623a0598d168895bd7670397293e
DIST qtsvg-everywhere-src-6.8.2.tar.xz 2006996 BLAKE2B c1bbb0b779fd9688e5d8e124fb3be0467c2750cb3ca4a3da32d430d1a8f48233a3f7dab1578f66c2a52789cce368848c59c161349afe0625b1fa7db089192ccc SHA512 475bb701395e5f02fe898ccd013e75f8e65ec0a99f0386632c4c0876413c224b7fff12759b561dd745cd35930a55d168b82f6109bb5be5acee6c7edd689522fe
DIST qtsvg-everywhere-src-6.8.3.tar.xz 2009072 BLAKE2B d7ae04dcb7b7033e5591ba4d82502f6cb1954ace12db0bfed52ee74e342f9a175b029309ed039f60ece395cd1448c7ae42ced63d96f40c8f3ad93ff4f815507a SHA512 213af7fdf92fb64c9b824dbe044f51d89e661ccc02c17cf109e65b962a7b1de84c71e1b1b58d6cad0cc9fccee80b97efe9ebcab3491b478fb9b64bcfd33986a4
DIST qtsvg-everywhere-src-6.9.0.tar.xz 2017172 BLAKE2B 22a38a1f911a1df561ec7171dc857e748749b60f8edbdb4edb166205b1b58caec0796f1293cffeea7858be2738dddc0e2393fecad8e47c313e8cf68dfdb9f066 SHA512 23c061ca4b51e4475624e38f7bb233a8732b66402445c9069ccefd7f2a14f62e8f60890facbf16de0272075eb76c4e44fe773ebeb144272bec997a8668f12d00

View File

@ -0,0 +1,43 @@
https://bugs.gentoo.org/974278
https://codereview.qt-project.org/c/qt/qtsvg/+/732200
--- a/src/svg/qsvgstructure.cpp
+++ b/src/svg/qsvgstructure.cpp
@@ -415,7 +415,8 @@
const auto markers = markersForNode(node);
for (auto &i : markers) {
- QSvgMarker *markNode = static_cast<QSvgMarker*>(node->document()->namedNode(i.markerId));
- if (!markNode)
+ QSvgNode *referencedNode = node->document()->namedNode(i.markerId);
+ if (!referencedNode || referencedNode->type() != QSvgNode::Marker)
continue;
+ QSvgMarker *markNode = static_cast<QSvgMarker *>(referencedNode);
p->save();
@@ -722,6 +723,7 @@
// Chrome seems to return the mask of the mask if a mask is set on the mask
if (this->hasMask()) {
- QSvgMask *maskNode = static_cast<QSvgMask*>(document()->namedNode(this->maskId()));
- if (maskNode) {
+ QSvgNode *referencedNode = document()->namedNode(this->maskId());
+ if (referencedNode && referencedNode->type() == QSvgNode::Mask) {
+ QSvgMask *maskNode = static_cast<QSvgMask *>(referencedNode);
QRectF boundsRect;
return maskNode->createMask(p, states, localRect, &boundsRect);
--- a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
+++ b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
@@ -1868,4 +1868,15 @@
QTest::newRow("excessive moveto in path") // id=406541912
<< R"(<svg><path stroke="#000" d="M- 7e8t9 ."/><marker id="c"/><use href=" c"/></svg>)"_ba;
+ // Bad-cast to QSvgMarker from QSvgLine -> Heap-buffer-overflow
+ QTest::newRow("line-as-marker") // id=496327371
+ << R"-(<svg><line x1="4" id="lledr" marker-end="url(#lledr)" stroke="#00f"/></svg>)-"_ba;
+ QTest::newRow("line-as-mask") // modeled after 496327371 to test similar problem, needs UBSAN
+ << R"-(<svg>
+ <defs>
+ <line x1="4" id="line"/>
+ <mask id="mask" width="2" height="2" mask="url(#line)"/>
+ </defs>
+ <rect width="2" height="2" mask="url(#mask)"/>
+ </svg>)-"_ba;
}

18
dev-qt/qtsvg/metadata.xml Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>qt@gentoo.org</email>
<name>Gentoo Qt Project</name>
</maintainer>
<upstream>
<bugs-to>https://bugreports.qt.io/</bugs-to>
<doc>https://doc.qt.io/</doc>
<remote-id type="github">qt/qtsvg</remote-id>
</upstream>
<slots>
<subslots>
Must only be used by packages that are known to use private parts of the Qt API.
</subslots>
</slots>
</pkgmetadata>

View File

@ -0,0 +1,25 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ ${PV} != *9999* ]]; then
QT5_KDEPATCHSET_REV=1
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
fi
inherit qt5-build
DESCRIPTION="SVG rendering library for the Qt5 framework"
IUSE=""
RDEPEND="
=dev-qt/qtcore-${QT5_PV}*
=dev-qt/qtgui-${QT5_PV}*
=dev-qt/qtwidgets-${QT5_PV}*
sys-libs/zlib:=
"
DEPEND="${RDEPEND}
test? ( =dev-qt/qtxml-${QT5_PV}* )
"

View File

@ -0,0 +1,25 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ ${PV} != *9999* ]]; then
QT5_KDEPATCHSET_REV=1
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
inherit qt5-build
DESCRIPTION="SVG rendering library for the Qt5 framework"
IUSE=""
RDEPEND="
=dev-qt/qtcore-${QT5_PV}*
=dev-qt/qtgui-${QT5_PV}*
=dev-qt/qtwidgets-${QT5_PV}*
sys-libs/zlib:=
"
DEPEND="${RDEPEND}
test? ( =dev-qt/qtxml-${QT5_PV}* )
"

View File

@ -0,0 +1,25 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ ${PV} != *9999* ]]; then
QT5_KDEPATCHSET_REV=1
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
fi
inherit qt5-build
DESCRIPTION="SVG rendering library for the Qt5 framework"
IUSE=""
RDEPEND="
=dev-qt/qtcore-${QT5_PV}*
=dev-qt/qtgui-${QT5_PV}*
=dev-qt/qtwidgets-${QT5_PV}*
virtual/zlib:=
"
DEPEND="${RDEPEND}
test? ( =dev-qt/qtxml-${QT5_PV}* )
"

View File

@ -0,0 +1,30 @@
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
virtual/zlib:=
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-6.10.3-CVE-2026-6210.patch
)
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
virtual/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
virtual/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
virtual/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
sys-libs/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
sys-libs/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
sys-libs/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
sys-libs/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}

View File

@ -0,0 +1,26 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qt6-build toolchain-funcs
DESCRIPTION="SVG rendering library for the Qt6 framework"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
RDEPEND="
~dev-qt/qtbase-${PV}:6[gui,widgets]
sys-libs/zlib:=
"
DEPEND="${RDEPEND}"
src_test() {
# tst_QSvgRenderer::testFeColorMatrix (new in 6.7, likely low impact)
# is known failing on BE, could use more looking into (bug #935356)
[[ $(tc-endian) == big ]] && local CMAKE_SKIP_TESTS=( tst_qsvgrenderer )
qt6-build_src_test
}