aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-03-07 10:43:20 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-03-07 10:43:20 +0100
commit2f31899ffbebab4de427d71d4435f52ad1143cc9 (patch)
tree45f7ddf47d49037fad405bcf8a038d2e9ffbc21a
parent4a3d7c3c03e2ce724ae7a4956d1c4434d410989c (diff)
downloadaports-2f31899ffbebab4de427d71d4435f52ad1143cc9.tar.gz
aports-2f31899ffbebab4de427d71d4435f52ad1143cc9.tar.bz2
aports-2f31899ffbebab4de427d71d4435f52ad1143cc9.tar.xz
community/sysprof: fix build on 32-bit
-rw-r--r--community/sysprof/APKBUILD6
-rw-r--r--community/sysprof/fix-32-bit-build.patch13
2 files changed, 17 insertions, 2 deletions
diff --git a/community/sysprof/APKBUILD b/community/sysprof/APKBUILD
index a5b553a8b3..28ea7b749f 100644
--- a/community/sysprof/APKBUILD
+++ b/community/sysprof/APKBUILD
@@ -12,7 +12,8 @@ makedepends="meson gtk+3.0-dev itstool glib-dev polkit-dev elogind-dev
libdazzle-dev"
options="!check" # test-model-filter fails
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang"
-source="https://download.gnome.org/sources/sysprof/${pkgver%.*}/sysprof-$pkgver.tar.xz"
+source="https://download.gnome.org/sources/sysprof/${pkgver%.*}/sysprof-$pkgver.tar.xz
+ fix-32-bit-build.patch"
build() {
meson \
@@ -35,4 +36,5 @@ package() {
DESTDIR="$pkgdir" ninja -C output install
}
-sha512sums="41f99cc3446a6624ea74fcdecd7a29a2e5e2d4086383d59a9064c4a3df5d9b8d08f4903ff4dcc85ffa9c6d42bd84dec5c03f6010fffd4415cc8fecf4dc0b23f4 sysprof-3.36.0.tar.xz"
+sha512sums="41f99cc3446a6624ea74fcdecd7a29a2e5e2d4086383d59a9064c4a3df5d9b8d08f4903ff4dcc85ffa9c6d42bd84dec5c03f6010fffd4415cc8fecf4dc0b23f4 sysprof-3.36.0.tar.xz
+c03fc64a4fdb19e4b3e21ef42e9f21a2af8ed33cdb503314fbb2d826ec6ad4b5e57078191553681be21934aca30442c7b2662facd28a499e86107d148ed96773 fix-32-bit-build.patch"
diff --git a/community/sysprof/fix-32-bit-build.patch b/community/sysprof/fix-32-bit-build.patch
new file mode 100644
index 0000000000..22b2b2fea6
--- /dev/null
+++ b/community/sysprof/fix-32-bit-build.patch
@@ -0,0 +1,13 @@
+diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c
+index 666113a..6260d4b 100644
+--- a/src/tests/allocs-by-size.c
++++ b/src/tests/allocs-by-size.c
+@@ -109,7 +109,7 @@ allocs_by_size (SysprofCaptureReader *reader)
+ {
+ const Item *item = &g_array_index (ar, Item, i);
+
+- g_print ("%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT"\n",
++ g_print ("%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT"\n",
+ item->size, item->cmp, item->count);
+ }
+ }