From dc7cbdfa65fd814b3b9aa3c56257da201109e807 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 5 Apr 2019 21:17:31 +0100 Subject: gentoo resync : 05.04.2019 --- dev-util/sysprof/Manifest | 10 +-- .../sysprof/files/3.28.1-fix-nosystemd-build.patch | 51 --------------- dev-util/sysprof/files/3.30.2-elogind.patch | 35 +++++++++++ dev-util/sysprof/metadata.xml | 4 +- dev-util/sysprof/sysprof-3.26.1.ebuild | 63 ------------------- dev-util/sysprof/sysprof-3.28.1.ebuild | 73 ---------------------- dev-util/sysprof/sysprof-3.30.2-r1.ebuild | 73 ++++++++++++++++++++++ dev-util/sysprof/sysprof-3.30.2.ebuild | 71 --------------------- 8 files changed, 114 insertions(+), 266 deletions(-) delete mode 100644 dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch create mode 100644 dev-util/sysprof/files/3.30.2-elogind.patch delete mode 100644 dev-util/sysprof/sysprof-3.26.1.ebuild delete mode 100644 dev-util/sysprof/sysprof-3.28.1.ebuild create mode 100644 dev-util/sysprof/sysprof-3.30.2-r1.ebuild delete mode 100644 dev-util/sysprof/sysprof-3.30.2.ebuild (limited to 'dev-util/sysprof') diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest index b0c2f10f748d..ea1fe2b94d73 100644 --- a/dev-util/sysprof/Manifest +++ b/dev-util/sysprof/Manifest @@ -1,10 +1,6 @@ -AUX 3.28.1-fix-nosystemd-build.patch 1336 BLAKE2B f6292baad803ceca64be6a3b32793ecc4c1f99a946f247af7e79ef3ec421657230a7c473b219e9286a385c5ca25826aa192275ad1a3e1b78f2badb45a97e2c80 SHA512 d9a5c46b778835ba15c349e8458cb2dc6d950f1ad3008d0d089b5bb2235b15c4e461f9bbeb54a76085f59bf53873e671cdfcbf09c5f6f9c99251abef236b2aa1 +AUX 3.30.2-elogind.patch 1055 BLAKE2B c25d6b83d75d8155ef09d1aa5cdd8dead79a1fe796028cec79166e24ae8a579af83c396c7f4e91948a56bb2215cb180657728c35d84ee8ed09134d4ee72a17cf SHA512 6ed6fcf43238378486f430bf653cc6f209f6bd42136e14f0888b8b190a63058bfcec8777a6df0f1f454b14ef91c6075d342585a8c339a11604ffc3e712057017 DIST sysprof-3.24.1.tar.xz 595920 BLAKE2B 90582eab3fc12a0169c151ce0fad20b839841f77a31e5858f8d660f9b0f2630396bec3b239dd88baa3f6e3dd936bdd6d63a652e491a1d32f966a755f9099f160 SHA512 5d323bcb9923c511065132711963dc8856c4d837b4d7ccfae5cc5794be5ac8ad1dc42504025469199f4bfd6a6fad4d8f49b7b21cab6f0c9a954820182e75c7d0 -DIST sysprof-3.26.1.tar.xz 609076 BLAKE2B fd10ce27b224100558ff5bb9c75cfffcb76b2331d2c4056bd73a9ace1ea155e61d705240acf6fefa805fba2333f6d439369d5b1cc16e0c537ab9fed408bf6d85 SHA512 ee03360e4971cd91129bac3cc9d2cf292d29aafe1cdacd078e404ee15c3ff02bcd0c0159502605c00eb2abd3a46917cf70458ad05e48b594eeb2835ead55c34c -DIST sysprof-3.28.1.tar.xz 380720 BLAKE2B 0a3b93659e421b717230bff6e90d20b28f8abc8491fddb51bc3f106b6cd8b038254e1fd0260c6eee2c2b83d77765be43f394d49bd34c054c36d6427ef419fefa SHA512 ca75c279bcb8cb37bffdba51d5b3481c3ece104847b64c0b8cb534468c9350a96c7224bf261ef892817e53aff2cff90a2b808f5db5a9afd6230721664b83809b DIST sysprof-3.30.2.tar.xz 393420 BLAKE2B 5e86a78c231d2d2c601198e066c463d8bec95ab1ae6d0f6678e6e80305b8a6d53c604ce54d9fc2a473e4679695cef709f0e1a9514f1091719f33a58b92c896eb SHA512 70c49f7c20742aad82c8d9b1e303d06ca5fd2d27a6868872d28affea22278d381bf3eb0d181cbd1bfa490bda2878c52748ac29273e9e608452e9bf4f29fd9e2a EBUILD sysprof-3.24.1.ebuild 1762 BLAKE2B 2af5ed24c22b41c66be0e4526b8e1627f1215320444c23559e6e553125700e31df955ec542b9ee04ec9a12a0bd4a669eb23cd4fbf96de6fb8d3562cb2c258c2b SHA512 24b82366648690bd9a4a03e04dc14e88d23c177c75dcca745a816213cf018ea4a959bb733da54ae0b1cbe85706df63cfc79140744716300a457c348eeb57982b -EBUILD sysprof-3.26.1.ebuild 1764 BLAKE2B c3afd518bfb3a05f88c51a4f2f43834ddacaf6ce62701a4ec828623d3adb733a59b4d67f5952f740a72ff261e6a27464bd521fdc941cf83386d1c583c28e8453 SHA512 6c627f3dfb0f5bf32576489b6a03be94c54faf192df73be2fc39fc5bccb98e2c19a99f5d303e1b663e28d2df5348a411d40f633b259f1244e9b63857293db2e3 -EBUILD sysprof-3.28.1.ebuild 2125 BLAKE2B 3b0c90203488837b33015d2048cbd066bf7b0800f1135f04c810885c6d336ee9bab33b0e7e7730e01681a4cea77101b87865e9c85a5c51a85496d408519f80ff SHA512 02a7727f8a58712bf3fc9c91c41a0a5ddedeaa513c69ab9d5a0c5487c10d9afcaa8cbc35065b5d477378c71a919bafbebfe5fc1ce9cba1ed64e072f130c902f8 -EBUILD sysprof-3.30.2.ebuild 2078 BLAKE2B 16e63e53f4669f64be0e1d1d9e1dafbc5d04f65962a3f3e4ddd3015cb87dde0c1f53ea78cea895ccbf222926c05620fd2650149c701e0743326f5d6a88ab5777 SHA512 376ade85ba12c517d755535c16c23181dbe4b8ecb383bdf511d94074b8c09809d791a90a96bd42cadd571af6dd96e3b3005c6c0a8dea8d6d6ece05ef26bf92fd -MISC metadata.xml 729 BLAKE2B 06e0c5194be5a6241062ee78bad2d2b5d0c58643657b2626c644d9f4aa14880b97340e2c87480a3e23eb297c3c3d08bba74ad45cee4b15d248bd0bb647cc7bac SHA512 4aa6b8b04ba7f008bc5e4de81cfed88efe2714c4330ce3d02433fde3d253063f5a7e17e6384ba2213d0e6421f15875943133d670b6ba5effb739d81914b3f0de +EBUILD sysprof-3.30.2-r1.ebuild 2213 BLAKE2B 746f85bb79f993ef84c21c1e882fbc74ad2b0eced6c5b7e5a1ee1c495ae9ca49cc08ed2022638f4798bb8178ae0e6b87214993d5f7ba2b0f700c81db27e7ace5 SHA512 4ee7b8b74ba7f3a23f3020a3860e79b8078b80bc0fc4f9f995ecf760b3bbe12eed7a5bf71be82ddea97df79650e05c1187ef37203d4d3f70c2f980925280b620 +MISC metadata.xml 886 BLAKE2B 31416bfe6eb56d58ae1c1953d19cc59ee0cff0c0aa7d6c28f6b95b7b4c9038ea9a8af5025e64f29612b6b919953671eb4940ff60d6baf1c79b8d33bdfae2beff SHA512 5514125c6a2dcb55a06bc81e52bb6c94a804b0dc41ce7d7c83e9ee94f06ddcd585716c12887a6428e1afe3a9268cdc4cd0596d7a036de08f0e70ae3d6366f502 diff --git a/dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch b/dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch deleted file mode 100644 index c83a951d846a..000000000000 --- a/dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 28c28eb11ac1696ce08c9c90e8a7a7759bc5c50b Mon Sep 17 00:00:00 2001 -From: Christian Hergert -Date: Tue, 28 Aug 2018 12:22:57 -0700 -Subject: [PATCH] kernel-symbol: respect ENABLE_POLKIT setting - -This fixes the compilation when we have sysprofd fully disabled. -That is not an ideal configuration, but keeping it working -ensures that some of the code is easy copy/paste'able in the -future for some situations. ---- - lib/symbols/sp-kernel-symbol.c | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/lib/symbols/sp-kernel-symbol.c b/lib/symbols/sp-kernel-symbol.c -index 8eb8087..14e026f 100644 ---- a/lib/symbols/sp-kernel-symbol.c -+++ b/lib/symbols/sp-kernel-symbol.c -@@ -18,8 +18,13 @@ - - #define G_LOG_DOMAIN "sp-kernel-symbol" - -+#include "config.h" -+ - #include --#include -+ -+#ifdef ENABLE_POLKIT -+# include -+#endif - - #include "sp-kallsyms.h" - -@@ -87,6 +92,7 @@ type_is_ignored (guint8 type) - static gboolean - authorize_proxy (GDBusConnection *conn) - { -+#ifdef ENABLE_POLKIT - PolkitSubject *subject = NULL; - GPermission *permission = NULL; - const gchar *name; -@@ -113,6 +119,7 @@ authorize_proxy (GDBusConnection *conn) - failure: - g_clear_object (&subject); - g_clear_object (&permission); -+#endif - - return FALSE; - } --- -2.17.0 - diff --git a/dev-util/sysprof/files/3.30.2-elogind.patch b/dev-util/sysprof/files/3.30.2-elogind.patch new file mode 100644 index 000000000000..2a57fff3a9c6 --- /dev/null +++ b/dev-util/sysprof/files/3.30.2-elogind.patch @@ -0,0 +1,35 @@ +From b30057251d3f2b5860b36505fed440a6bebe0359 Mon Sep 17 00:00:00 2001 +From: Shiba +Date: Wed, 19 Dec 2018 00:37:57 +0100 +Subject: [PATCH] elogind support + +--- + daemon/meson.build | 11 ++++++++++- + 2 files changed, 11 insertions(+), 2 deletions(-) + +diff --git a/daemon/meson.build b/daemon/meson.build +index d0cf87c..c7f85d7 100644 +--- a/daemon/meson.build ++++ b/daemon/meson.build +@@ -11,8 +11,17 @@ sysprofd_sources = [ + # NOTE: This is used in data/meson.build + pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'), 'sysprof') + ++# Check for sd-bus support either by systemd or elogind ++sdbus_dep = dependency('libsystemd', version: '>=222', required: false) ++if not sdbus_dep.found() ++ sdbus_dep = dependency('libelogind', version: '>=239.3', required: false) ++ if not sdbus_dep.found() ++ error('sysprofd requires sd-bus but neither systemd nor elogind were found') ++ endif ++endif ++ + sysprofd_deps = [ +- dependency('libsystemd', version: '>=222'), ++ sdbus_dep, + dependency('glib-2.0'), + ] + +-- +2.18.1 + diff --git a/dev-util/sysprof/metadata.xml b/dev-util/sysprof/metadata.xml index 5ea946de4371..70135f654431 100644 --- a/dev-util/sysprof/metadata.xml +++ b/dev-util/sysprof/metadata.xml @@ -12,7 +12,9 @@ In fact they don't even have to be restarted. + Build the sysprofd daemon service, required to run the UI without root permissions. + Relies on sys-auth/elogind for sd-bus API. Build the sysprofd daemon service, required to run the UI without root permissions. - Relies on sys-apps/systemd running as the init system. + Relies on sys-apps/systemd for sd-bus API. diff --git a/dev-util/sysprof/sysprof-3.26.1.ebuild b/dev-util/sysprof/sysprof-3.26.1.ebuild deleted file mode 100644 index 144b2c9fcadc..000000000000 --- a/dev-util/sysprof/sysprof-3.26.1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit gnome2 linux-info systemd - -DESCRIPTION="System-wide Linux Profiler" -HOMEPAGE="http://sysprof.com/" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug gtk systemd" - -RDEPEND=" - >=dev-libs/glib-2.44:2 - gtk? ( - sys-auth/polkit - >=x11-libs/gtk+-3.22.0:3 ) - systemd? ( - sys-auth/polkit - >=sys-apps/systemd-222 ) -" -DEPEND="${RDEPEND} - app-text/yelp-tools - >=sys-devel/gettext-0.19.6 - >=sys-kernel/linux-headers-2.6.32 - dev-libs/appstream-glib - virtual/pkgconfig -" - -pkg_pretend() { - kernel_is -ge 2 6 31 && return - die "Sysprof will not work with a kernel version less than 2.6.31" -} - -src_configure() { - # introspection & vala not use in build system - # --with-sysprofd=host currently unavailable from ebuild - gnome2_src_configure \ - $(use_enable debug) \ - $(use_enable gtk) \ - --disable-introspection \ - --disable-static \ - --disable-vala \ - --with-sysprofd=$(usex systemd bundled no) \ - --with-systemdsystemunitdir=$(systemd_get_systemunitdir) -} - -pkg_postinst() { - gnome2_pkg_postinst - - elog "On many systems, especially amd64, it is typical that with a modern" - elog "toolchain -fomit-frame-pointer for gcc is the default, because" - elog "debugging is still possible thanks to gcc4/gdb location list feature." - elog "However sysprof is not able to construct call trees if frame pointers" - elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" - elog "for the libraries and applications involved in the profiling. That" - elog "means a CPU register is used for the frame pointer instead of other" - elog "purposes, which means a very minimal performance loss when there is" - elog "register pressure." -} diff --git a/dev-util/sysprof/sysprof-3.28.1.ebuild b/dev-util/sysprof/sysprof-3.28.1.ebuild deleted file mode 100644 index f6664d0b9fb6..000000000000 --- a/dev-util/sysprof/sysprof-3.28.1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit gnome.org gnome2-utils meson systemd xdg - -DESCRIPTION="System-wide Linux Profiler" -HOMEPAGE="http://sysprof.com/" - -LICENSE="GPL-3+ GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gtk systemd" - -RDEPEND=" - >=dev-libs/glib-2.44:2 - sys-auth/polkit - gtk? ( >=x11-libs/gtk+-3.22.0:3 ) - systemd? ( >=sys-apps/systemd-222 ) -" -# libxml2 required for glib-compile-resources; appstream-glib for appdata.xml translations -DEPEND="${RDEPEND} - app-text/yelp-tools - dev-libs/appstream-glib - dev-libs/libxml2:2 - >=sys-devel/gettext-0.19.6 - >=sys-kernel/linux-headers-2.6.32 - virtual/pkgconfig -" - -PATCHES=( "${FILESDIR}"/${PV}-fix-nosystemd-build.patch ) - -src_configure() { - # -Dwith_sysprofd=host currently unavailable from ebuild - local emesonargs=( - $(meson_use gtk enable_gtk) - -Dwith_sysprofd=$(usex systemd bundled none) - -Dsystemdunitdir=$(systemd_get_systemunitdir) - # -Ddebugdir - ) - meson_src_configure -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_icon_cache_update - gnome2_schemas_update - - elog "On many systems, especially amd64, it is typical that with a modern" - elog "toolchain -fomit-frame-pointer for gcc is the default, because" - elog "debugging is still possible thanks to gcc4/gdb location list feature." - elog "However sysprof is not able to construct call trees if frame pointers" - elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" - elog "for the libraries and applications involved in the profiling. That" - elog "means a CPU register is used for the frame pointer instead of other" - elog "purposes, which means a very minimal performance loss when there is" - elog "register pressure." - if ! use systemd; then - elog "" - elog "Without systemd, sysprof may not function when launched as a regular user," - elog "thus suboptimal running from root account may be necessary." - if use gtk; then - elog "Under wayland, that limits the recording usage to sysprof-cli utility." - fi - fi -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_icon_cache_update - gnome2_schemas_update -} diff --git a/dev-util/sysprof/sysprof-3.30.2-r1.ebuild b/dev-util/sysprof/sysprof-3.30.2-r1.ebuild new file mode 100644 index 000000000000..11bffd1beddd --- /dev/null +++ b/dev-util/sysprof/sysprof-3.30.2-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit gnome.org gnome2-utils meson systemd xdg + +DESCRIPTION="System-wide Linux Profiler" +HOMEPAGE="http://sysprof.com/" + +LICENSE="GPL-3+ GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="elogind gtk systemd" +REQUIRED_USE="?? ( elogind systemd )" + +RDEPEND=" + >=dev-libs/glib-2.44:2 + sys-auth/polkit + gtk? ( >=x11-libs/gtk+-3.22.0:3 ) + elogind? ( >=sys-auth/elogind-239.3 ) + systemd? ( >=sys-apps/systemd-222:0= ) +" +# libxml2 required for glib-compile-resources; appstream-glib for appdata.xml developer_name tag translation +DEPEND="${RDEPEND} + dev-libs/appstream-glib + dev-libs/libxml2:2 + dev-util/itstool + >=sys-devel/gettext-0.19.8 + >=sys-kernel/linux-headers-2.6.32 + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PV}-elogind.patch ) + +src_configure() { + # -Dwith_sysprofd=host currently unavailable from ebuild + local emesonargs=( + $(meson_use gtk enable_gtk) + -Dwith_sysprofd=$(usex systemd bundled $(usex elogind bundled none)) + -Dsystemdunitdir=$(systemd_get_systemunitdir) + # -Ddebugdir + ) + meson_src_configure +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + + elog "On many systems, especially amd64, it is typical that with a modern" + elog "toolchain -fomit-frame-pointer for gcc is the default, because" + elog "debugging is still possible thanks to gcc4/gdb location list feature." + elog "However sysprof is not able to construct call trees if frame pointers" + elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" + elog "for the libraries and applications involved in the profiling. That" + elog "means a CPU register is used for the frame pointer instead of other" + elog "purposes, which means a very minimal performance loss when there is" + elog "register pressure." + if ! use systemd && ! use elogind; then + elog "" + elog "Without systemd or elogind, sysprof may not function when launched as a" + elog "regular user, thus suboptimal running from root account may be necessary." + if use gtk; then + elog "Under wayland, that limits the recording usage to sysprof-cli utility." + fi + fi +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/dev-util/sysprof/sysprof-3.30.2.ebuild b/dev-util/sysprof/sysprof-3.30.2.ebuild deleted file mode 100644 index e3dd7be49675..000000000000 --- a/dev-util/sysprof/sysprof-3.30.2.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit gnome.org gnome2-utils meson systemd xdg - -DESCRIPTION="System-wide Linux Profiler" -HOMEPAGE="http://sysprof.com/" - -LICENSE="GPL-3+ GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gtk systemd" - -RDEPEND=" - >=dev-libs/glib-2.44:2 - sys-auth/polkit - gtk? ( >=x11-libs/gtk+-3.22.0:3 ) - systemd? ( >=sys-apps/systemd-222 ) -" -# libxml2 required for glib-compile-resources; appstream-glib for appdata.xml developer_name tag translation -DEPEND="${RDEPEND} - dev-libs/appstream-glib - dev-libs/libxml2:2 - dev-util/itstool - >=sys-devel/gettext-0.19.8 - >=sys-kernel/linux-headers-2.6.32 - virtual/pkgconfig -" - -src_configure() { - # -Dwith_sysprofd=host currently unavailable from ebuild - local emesonargs=( - $(meson_use gtk enable_gtk) - -Dwith_sysprofd=$(usex systemd bundled none) - -Dsystemdunitdir=$(systemd_get_systemunitdir) - # -Ddebugdir - ) - meson_src_configure -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_icon_cache_update - gnome2_schemas_update - - elog "On many systems, especially amd64, it is typical that with a modern" - elog "toolchain -fomit-frame-pointer for gcc is the default, because" - elog "debugging is still possible thanks to gcc4/gdb location list feature." - elog "However sysprof is not able to construct call trees if frame pointers" - elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" - elog "for the libraries and applications involved in the profiling. That" - elog "means a CPU register is used for the frame pointer instead of other" - elog "purposes, which means a very minimal performance loss when there is" - elog "register pressure." - if ! use systemd; then - elog "" - elog "Without systemd, sysprof may not function when launched as a regular user," - elog "thus suboptimal running from root account may be necessary." - if use gtk; then - elog "Under wayland, that limits the recording usage to sysprof-cli utility." - fi - fi -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_icon_cache_update - gnome2_schemas_update -} -- cgit v1.2.3