diff options
Diffstat (limited to 'dev-util/memprof')
-rw-r--r-- | dev-util/memprof/Manifest | 2 | ||||
-rw-r--r-- | dev-util/memprof/files/memprof-0.6.2-gcc14-build-fix.patch | 23 | ||||
-rw-r--r-- | dev-util/memprof/memprof-0.6.2-r2.ebuild | 41 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-util/memprof/Manifest b/dev-util/memprof/Manifest index ec14159015d0..ba2f00d47c07 100644 --- a/dev-util/memprof/Manifest +++ b/dev-util/memprof/Manifest @@ -1,5 +1,7 @@ AUX memprof-0.6.2-binutils.patch 216 BLAKE2B a2b0b9a8445e7015d7475bc2158d0fa175ef551d6c856220d1f5e6ed9b18cd0e729569fac3fb5300ce168e158a679772e02abc15a7f52c5702f3ebd5a5704b42 SHA512 554281705f92c3e398a1d10bc810d75f3074fe5c0a9879410ce574487e30e4c47b19795b3812efdcfc088451951bf9d4e4a68a21624139bcfdb5c458308a0ad9 AUX memprof-0.6.2-desktop.patch 758 BLAKE2B d600c34b5a7cef6536a5dbb4a5feb75b2344a8d3b3288b9aff2578251f586a7251eaa5b8e4be0a16687432055ef4e9ffbd25bd31c2f1d10e4d776b4173e6c34d SHA512 60d5e12b16d30272dab56cd1cab3ac4b5cd1f9ff6f099285a8eb699dd1196c54e9605f162e3ce2745a478cf2c00f989a0685b39b961ac7f6b86dee06d39744cc +AUX memprof-0.6.2-gcc14-build-fix.patch 733 BLAKE2B ce0f96cf7611afb25370a4cc7fcde53e6cf10b2010eeabf87ac49549a85068681f3f976af6ad18bff95d698f680b8d79476b50bac2e16aa2acabddd7d3e14661 SHA512 a05cadf69fee3f6e5e9bcfe875e5f323a3d60222a587bd33c2b73376a8164a2b27960305d06e16309187f3be76945de478e6942ff15070687f4393470a05967a DIST memprof-0.6.2.tar.gz 534543 BLAKE2B bc4b98d13ac2a789540006c69b185c95ab9a8c059250e53d89e3baed8d80cffc506ab27e081fbab914390d77c4e67371f2632363a90e3a8d804799b00b5bb208 SHA512 cecfeb88f10f11fc4df106367871487453ddd9cb502ef96a6f120ee8889cfa96e8463f260c853abb351c7864e68904cf6e833864d561f9e7b09a785f4c315ca7 EBUILD memprof-0.6.2-r1.ebuild 815 BLAKE2B f34a215f49bc613e6e8760b8dfc4ed9ae3158458ffd639ca3a0a0ec00663fe7cb32049f48212ce0a8d7cf33c930510e21e127eb9a5908fea3df816a1bc1b5dd2 SHA512 24bc293ebe172e9151cff8a78f82cced938b3f1b0a9f7e677ab6cb5835721b6ee5625680b863b7f230fba592bc1eb2230f401e72c5e74f377be4b6284c69be52 +EBUILD memprof-0.6.2-r2.ebuild 794 BLAKE2B dc2ff339ce4bcad203918cd1500a4e5fa32d476b41a10a07c5046aaf1d497cdca125bdf31f3ca9cae6e2466a5e73dde199bd2fbe52208f17660f9cb85e9a8677 SHA512 ce4baae45f2c611ac26057670078424428846f62e70e65977e04891b9dda3ce635949d0017a7a3c9a44931fcd14ad6342edd0bc3d4f8fcfee5fa01267a2fc7ce MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/dev-util/memprof/files/memprof-0.6.2-gcc14-build-fix.patch b/dev-util/memprof/files/memprof-0.6.2-gcc14-build-fix.patch new file mode 100644 index 000000000000..7264c3ea386e --- /dev/null +++ b/dev-util/memprof/files/memprof-0.6.2-gcc14-build-fix.patch @@ -0,0 +1,23 @@ +Bug: https://bugs.gentoo.org/923021 +--- a/src/process.c ++++ b/src/process.c +@@ -526,7 +526,7 @@ input_func (GIOChannel *source, + gpointer data) + { + MIInfo info; +- guint count; ++ gsize count; + MPProcess *input_process = data; + MPProcess *process = NULL; + +--- a/src/profile.c ++++ b/src/profile.c +@@ -31,7 +31,7 @@ block_create_stack_list (Block *block, MPProcess *process, GHashTable *skip_hash + + for (element = block->stack; element != NULL; element = element->parent) + { +- const char *symbol = process_locate_symbol (process, (guint)element->address); ++ const char *symbol = process_locate_symbol (process, (gsize)element->address); + + if (symbol && g_hash_table_lookup (skip_hash, symbol)) + continue; diff --git a/dev-util/memprof/memprof-0.6.2-r2.ebuild b/dev-util/memprof/memprof-0.6.2-r2.ebuild new file mode 100644 index 000000000000..cd832965100c --- /dev/null +++ b/dev-util/memprof/memprof-0.6.2-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Profiling and leak detection tool" +HOMEPAGE="https://www.secretlabs.de/projects/memprof/" +SRC_URI="https://www.secretlabs.de/projects/memprof/releases/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/libglade-2 + >=x11-libs/gtk+-2.6:2 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + nls? ( + dev-util/intltool + sys-devel/gettext + )" + +PATCHES=( + "${FILESDIR}"/${P}-binutils.patch + "${FILESDIR}"/${P}-desktop.patch + "${FILESDIR}"/${P}-gcc14-build-fix.patch +) + +src_configure() { + econf $(use_enable nls) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |