sysprof: update to 45.2.

This commit is contained in:
oreo639 2024-02-06 08:22:12 -08:00 committed by oreo639
parent b6110c258e
commit fb45fce2f7
5 changed files with 50 additions and 13 deletions

View File

@ -3052,8 +3052,7 @@ libgutenprint.so.9 gutenprint-5.3.3_1
libunbound.so.8 libunbound-1.13.1_2
libmirage.so.11 libmirage-3.1.0_1
libwkhtmltox.so.0 libwkhtmltopdf-0.12.5_1
libsysprof-4.so sysprof-3.37.90_1
libsysprof-ui-5.so sysprof-3.46.0_1
libsysprof-6.so.6 libsysprof-45.1_1
libvala-0.56.so.0 libvala-0.56.0_1
libvaladoc-0.56.so.0 libvaladoc-0.56.0_1
libvalaccodegen.so libvala-0.44.0_1

1
srcpkgs/libsysprof Symbolic link
View File

@ -0,0 +1 @@
sysprof

1
srcpkgs/sysprof-cli Symbolic link
View File

@ -0,0 +1 @@
sysprof

View File

@ -0,0 +1,13 @@
Fix build for gcc 14 and musl
diff -rup src/libsysprof/sysprof-elf-loader.c.orig src/libsysprof/sysprof-elf-loader.c
--- a/src/libsysprof/sysprof-elf-loader.c
+++ b/src/libsysprof/sysprof-elf-loader.c
@@ -22,6 +22,7 @@
#include <fcntl.h>
#include <sys/stat.h>
+#include <unistd.h>
#include "sysprof-elf-private.h"
#include "sysprof-elf-loader-private.h"

View File

@ -1,25 +1,47 @@
# Template file for 'sysprof'
pkgname=sysprof
version=3.46.0
revision=2
version=45.2
revision=1
build_style=meson
configure_args="-Dgtk=true -Dsystemdunitdir=/usr/lib/systemd"
configure_args="-Dgtk=true -Dsystemdunitdir=/usr/lib/systemd -Db_lto=false"
hostmakedepends="gettext pkg-config itstool glib-devel desktop-file-utils
gtk-update-icon-cache"
makedepends="gtk4-devel libdazzle-devel polkit-devel glib-devel elogind-devel
json-glib-devel libunwind-devel libadwaita-devel"
polkit-devel gtk4-update-icon-cache"
makedepends="gtk4-devel libadwaita-devel libdex-devel
json-glib-devel libpanel-devel polkit-devel libunwind-devel"
depends="sysprof-cli"
short_desc="System-wide profiler for Linux"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/sysprof"
changelog="https://gitlab.gnome.org/GNOME/sysprof/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/sysprof/${version%.*}/sysprof-${version}.tar.xz"
checksum=3e430d578150a8dd0b075b17d2fcc1ba704d42880262f0cc651f33e493be4071
checksum=29e0dc15eac46da09146f9c9f11cbd05f230403f9a01e9164eeb0907c4420c8d
# for ITS rules
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" polkit-devel"
fi
sysprof-cli_package() {
# turbostat is necessary for recording power usage
# but it is only avaliable on x86
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
depends="turbostat"
esac
short_desc+=" - command line utilities"
pkg_install() {
vmove "usr/bin/sysprof-*"
vmove usr/libexec
vmove usr/share/dbus-1/system-services/org.gnome.Sysprof3.service
vmove usr/share/dbus-1/system.d/org.gnome.Sysprof3.conf
vmove usr/share/polkit-1/actions/org.gnome.sysprof3.policy
vmove usr/lib/systemd/sysprof3.service
}
}
libsysprof_package() {
short_desc+=" - runtime libraries and plugins"
pkg_install() {
vmove "usr/lib/libsysprof-6.so.*"
vmove "usr/lib/libsysprof-*-6.so"
}
}
sysprof-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libglib-devel
@ -28,6 +50,7 @@ sysprof-devel_package() {
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/libsysprof-6.so
vmove "usr/lib/*.a"
}
}