Skip to content

Commit

Permalink
New package: gammaray-2.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
toluschr committed Jun 26, 2020
1 parent ec00ae5 commit 4d1f3ee
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ libfsimage.so.1.0 xen-libs-4.10.0_1
libxenstat.so.0 xen-libs-4.10.0_1
libfam.so.0 gamin-0.1.10_1
libgamin-1.so.0 gamin-0.1.10_1
libgammaray_core-qt5_15-x86_64.so.2.11.1 gammaray-2.11.1_1
libgammaray_common-qt5_15-x86_64.so.2.11.1 gammaray-2.11.1_1
libKF5SyntaxHighlighting.so.5 syntax-highlighting-5.29.0_1
libKF5Libkleo.so.5 libkleo-17.12.3_1
libKF5GrantleeTheme.so.5 grantleetheme-17.12.3_1
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/gammaray-devel
4 changes: 4 additions & 0 deletions srcpkgs/gammaray/INSTALL.msg
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
12 changes: 12 additions & 0 deletions srcpkgs/gammaray/patches/fix-qt5.15.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- 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)
31 changes: 31 additions & 0 deletions srcpkgs/gammaray/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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"
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="https://github.com/KDAB/GammaRay/releases/download/v${version}/${pkgname}-${version}.tar.gz"
checksum=87a1d72ad1ad6d1a0156c54a85b0976ab38c6a64136458ca7c4ee491566d25d0

LDFLAGS+="-Wl,-no-fatal-warnings"

pre_build() {
sed -e 's|plugins/gammaray|lib/qt5/plugins/gammaray|' -i CMakeLists.txt
}

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}"
for f in usr/lib/*.so; do [ -L "${f}" ] && vmove "${f}"; done
}
}

0 comments on commit 4d1f3ee

Please sign in to comment.