diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-17 19:46:07 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-18 15:27:41 +0100 |
commit | e975dc6195b661a3a15d73165cbe980066ecc906 (patch) | |
tree | b6a121a537792b6a9f784705e32748e26497a51f /dev-debug/kdbg | |
parent | Move {dev-util → dev-debug}/edb-debugger (diff) | |
download | gentoo-e975dc6195b661a3a15d73165cbe980066ecc906.tar.gz gentoo-e975dc6195b661a3a15d73165cbe980066ecc906.tar.bz2 gentoo-e975dc6195b661a3a15d73165cbe980066ecc906.zip |
Move {dev-util → dev-debug}/kdbg
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-debug/kdbg')
-rw-r--r-- | dev-debug/kdbg/Manifest | 2 | ||||
-rw-r--r-- | dev-debug/kdbg/files/kdbg-3.0.1-fix-rare-memleak.patch | 35 | ||||
-rw-r--r-- | dev-debug/kdbg/files/kdbg-3.0.1-usable-trace.patch | 23 | ||||
-rw-r--r-- | dev-debug/kdbg/kdbg-3.0.1-r1.ebuild | 48 | ||||
-rw-r--r-- | dev-debug/kdbg/kdbg-3.1.0.ebuild | 42 | ||||
-rw-r--r-- | dev-debug/kdbg/metadata.xml | 12 |
6 files changed, 162 insertions, 0 deletions
diff --git a/dev-debug/kdbg/Manifest b/dev-debug/kdbg/Manifest new file mode 100644 index 000000000000..6c598e48c73d --- /dev/null +++ b/dev-debug/kdbg/Manifest @@ -0,0 +1,2 @@ +DIST kdbg-3.0.1.tar.gz 431143 BLAKE2B 869bf9765650b2a4a2330f99303b51f599df764848ff18442c8c6813421fece2671e5e78a0e8c66a59bd77f06a7f02677ec08a49fb9a28874b92b0f84bf8f74f SHA512 9f3e0073bf37e56fa8ad0c3ae5f0be80331d8963b564ff376aee40c3ccebab5b5a482c31f110fd0f4dd14f9614cff31102d8edf62ffb33f4ae361d24346543ea +DIST kdbg-3.1.0.tar.gz 444052 BLAKE2B d0083094f8ba3cb374b2df4a20b7697ddae4fb24579e18d883701a5e826e86041a8cdb7bd1919c881bc149c49e764221eb246d98bcebacbffbdb5e0f83264ad6 SHA512 e7da5bb1a4882b031077bd4344c6795b058088eb9a00ef3a2ba9c3d72c0a022bb16822525369ca7bcfb623c775cf73140caa114c1591d37f1d6f6a3b22ae649b diff --git a/dev-debug/kdbg/files/kdbg-3.0.1-fix-rare-memleak.patch b/dev-debug/kdbg/files/kdbg-3.0.1-fix-rare-memleak.patch new file mode 100644 index 000000000000..44a2b33623f4 --- /dev/null +++ b/dev-debug/kdbg/files/kdbg-3.0.1-fix-rare-memleak.patch @@ -0,0 +1,35 @@ +From 0feb0986f220126177084badf67813ccdbaa996c Mon Sep 17 00:00:00 2001 +From: Daniels Umanovskis <daniels@umanovskis.se> +Date: Fri, 13 Mar 2020 13:48:19 +0100 +Subject: [PATCH] Fix a rare memory leak in the register display window + +--- + kdbg/regwnd.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/kdbg/regwnd.cpp b/kdbg/regwnd.cpp +index edb0e55..93008f9 100644 +--- a/kdbg/regwnd.cpp ++++ b/kdbg/regwnd.cpp +@@ -274,11 +274,12 @@ static char* toRaw(const QString& hex, uint& length) + static bool littleendian=(*testChar==1); + + length=((hex.length()-2)%2)+((hex.length()-2)/2); ++ if (hex.length()<=2) return 0; ++ + char* data=new char[length]; + + if (littleendian) { + uint j=0; +- if (hex.length()<=2) return 0; + for (int i=hex.length()-1; i>=2; ) { + if (j%2==0) + data[j/2]=hexCharToDigit(hex[i].toLatin1()); +@@ -288,7 +289,6 @@ static char* toRaw(const QString& hex, uint& length) + } + } else { // big endian + uint j=0; +- if (hex.length()<=2) return 0; + for (int i=2; i<hex.length(); ) { + if (j%2==0) + data[j/2]=hexCharToDigit(hex[i].toLatin1())<<4; diff --git a/dev-debug/kdbg/files/kdbg-3.0.1-usable-trace.patch b/dev-debug/kdbg/files/kdbg-3.0.1-usable-trace.patch new file mode 100644 index 000000000000..8336d2d53255 --- /dev/null +++ b/dev-debug/kdbg/files/kdbg-3.0.1-usable-trace.patch @@ -0,0 +1,23 @@ +From 8f2add1046c2d23294496bc0bc7c00d18c6aa0a2 Mon Sep 17 00:00:00 2001 +From: Daniels Umanovskis <daniels@umanovskis.se> +Date: Fri, 13 Mar 2020 16:23:02 +0100 +Subject: [PATCH] Change output for a trace so that trace is actually usable + again + +--- + kdbg/debugger.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kdbg/debugger.cpp b/kdbg/debugger.cpp +index 3751e4c..7d43eb9 100644 +--- a/kdbg/debugger.cpp ++++ b/kdbg/debugger.cpp +@@ -2225,7 +2225,7 @@ void KDebugger::slotValueEdited(VarTree* expr, const QString& text) + + ExprWnd* wnd = static_cast<ExprWnd*>(expr->treeWidget()); + TRACE(QString().sprintf("Changing %s to ", +- wnd->name()) + text); ++ wnd->exprList().join(" ")) + text); + + // determine the lvalue to edit + QString lvalue = expr->computeExpr(); diff --git a/dev-debug/kdbg/kdbg-3.0.1-r1.ebuild b/dev-debug/kdbg/kdbg-3.0.1-r1.ebuild new file mode 100644 index 000000000000..bfa17d373d61 --- /dev/null +++ b/dev-debug/kdbg/kdbg-3.0.1-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="true" +KFMIN=5.85.0 +QTMIN=5.15.2 +inherit ecm + +DESCRIPTION="Graphical debugger interface" +HOMEPAGE="https://www.kdbg.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="5" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="" + +DEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kiconthemes-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kwindowsystem-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 +" +RDEPEND="${DEPEND} + dev-debug/gdb +" + +PATCHES=( + "${FILESDIR}"/${P}-fix-rare-memleak.patch + "${FILESDIR}"/${P}-usable-trace.patch +) + +src_prepare() { + # allow documentation to be handled by eclass + mv kdbg/doc . || die + sed -i -e '/add_subdirectory(doc)/d' kdbg/CMakeLists.txt || die + echo "add_subdirectory ( doc ) " >> CMakeLists.txt || die + + ecm_src_prepare +} diff --git a/dev-debug/kdbg/kdbg-3.1.0.ebuild b/dev-debug/kdbg/kdbg-3.1.0.ebuild new file mode 100644 index 000000000000..f0b0412e4cf4 --- /dev/null +++ b/dev-debug/kdbg/kdbg-3.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="true" +KFMIN=5.85.0 +QTMIN=5.15.2 +inherit ecm + +DESCRIPTION="Graphical debugger interface" +HOMEPAGE="https://www.kdbg.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="5" +KEYWORDS="~amd64 ~riscv ~x86" + +DEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kiconthemes-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kwindowsystem-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 +" +RDEPEND="${DEPEND} + dev-debug/gdb +" + +src_prepare() { + # allow documentation to be handled by eclass + mv kdbg/doc . || die + sed -i -e '/add_subdirectory(doc)/d' kdbg/CMakeLists.txt || die + echo 'add_subdirectory(doc)' >> CMakeLists.txt || die + + ecm_src_prepare +} diff --git a/dev-debug/kdbg/metadata.xml b/dev-debug/kdbg/metadata.xml new file mode 100644 index 000000000000..b879ad3d0e80 --- /dev/null +++ b/dev-debug/kdbg/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <upstream> + <remote-id type="github">j6t/kdbg</remote-id> + <remote-id type="sourceforge">kdbg</remote-id> + </upstream> +</pkgmetadata> |