-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca0dafe
commit f129dce
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gammaray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The gdb and lldb injectors require kernel.yama.ptrace_scope to be set to 0. | ||
This might reduce system security, as it allows regular users to inject into a non-child process. | ||
|
||
# echo "kernel.yama.ptrace_scope=0" >> /etc/sysctl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- plugins/network/networksupport.cpp | ||
+++ plugins/network/networksupport.cpp | ||
@@ -89,7 +89,9 @@ Q_DECLARE_METATYPE(QNetworkInterface::InterfaceFlags) | ||
#endif | ||
Q_DECLARE_METATYPE(QNetworkProxy::Capabilities) | ||
Q_DECLARE_METATYPE(QNetworkProxy::ProxyType) | ||
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) | ||
Q_DECLARE_METATYPE(QSocketNotifier::Type) | ||
+#endif | ||
#ifndef QT_NO_SSL | ||
Q_DECLARE_METATYPE(QSsl::KeyAlgorithm) | ||
Q_DECLARE_METATYPE(QSsl::KeyType) | ||
--- plugins/widgetinspector/overlaywidget.h | ||
+++ plugins/widgetinspector/overlaywidget.h | ||
@@ -30,6 +30,7 @@ | ||
#define GAMMARAY_WIDGETINSPECTOR_OVERLAYWIDGET_H | ||
|
||
#include <QLayout> | ||
+#include <QPainterPath> | ||
#include <QPointer> | ||
#include <QWidget> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Template file for 'gammaray' | ||
pkgname=gammaray | ||
version=2.11.1 | ||
revision=1 | ||
build_style=cmake | ||
configure_args="-DGAMMARAY_INSTALL_QT_LAYOUT=true -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins/gammaray" | ||
hostmakedepends="qt5-host-tools qt5-devel" | ||
makedepends="qt5-devel" | ||
short_desc="Tool to poke around in a Qt-application" | ||
maintainer="toluschr <toluschr@protonmail.com>" | ||
license="GPL-2.0-or-later" | ||
homepage="https://github.com/KDAB/GammaRay" | ||
distfiles="${homepage}/releases/download/v${version}/gammaray-${version}.tar.gz" | ||
checksum=87a1d72ad1ad6d1a0156c54a85b0976ab38c6a64136458ca7c4ee491566d25d0 | ||
|
||
LDFLAGS=" -Wl,-no-fatal-warnings" | ||
|
||
post_patch() { | ||
vsed -i CMakeLists.txt -e 's|plugins/gammaray|lib/qt5/plugins/gammaray|' | ||
} | ||
|
||
gammaray-devel_package() { | ||
short_desc+=" - development files" | ||
depends="${sourcepkg}>=${version}_${revision} ${makedepends}" | ||
pkg_install() { | ||
vmove usr/include | ||
vmove usr/lib/cmake | ||
vmove usr/lib/qt5/mkspecs | ||
cd "${DESTDIR}" | ||
# unversioned probes should go in main package | ||
for f in usr/lib/*.so; do [ -L "${f}" ] && { vmove "${f}"; }; done | ||
} | ||
} |