testing/gperftools: fix pkgconf warning

closes #15364
This commit is contained in:
ptrcnull 2023-10-15 22:45:41 +02:00
parent c81f9d6f5e
commit bdca798207
2 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=gperftools
pkgver=2.10.80
pkgrel=0
pkgrel=1
pkgdesc="Fast, multi-threaded malloc and nifty performance analysis tools"
url="https://github.com/gperftools/gperftools"
# everything else fails even more tests or isn't supported
@ -30,6 +30,7 @@ checkdepends="
builddir="$srcdir/gperftools-gperftools-$pkgver"
source="https://github.com/gperftools/gperftools/archive/refs/tags/gperftools-$pkgver.tar.gz
failed-tests.patch
pkgconfig.patch
"
prepare() {
@ -103,4 +104,5 @@ tcmalloc_profiler() {
sha512sums="
b30c68b8e6831c2a8d78d632862a77603a6bfb4833c9a40ba7efe43d12f58e9e203079e56510f0512ebb5bf656b1e2d7f0c2bd8f830bdf03d015c506abdb4a2d gperftools-2.10.80.tar.gz
d4f7cb16985e8e232c0f2e5794adfc06b30d42b4df860fe21954ce79a7537571a439ce3392c652372a44499bb0f3f5ad640d7b7fb1dbf60aa739b841f4723587 failed-tests.patch
bfec285aa83fb8cc1d494bcde50caee3faae8c23e1519c64c43bed05f3c3ccf5ef012bbcfac7a0f4dd41d82d6d2d4589bcb42697ff1e41e20ed548eb5b103ada pkgconfig.patch
"

View File

@ -0,0 +1,19 @@
From: ptrcnull <git@ptrcnull.me>
Date: Sun, 15 Oct 2023 22:45:06 +0200
Subject: [PATCH] fix loading .pc file with new pkgconf
see https://gitlab.alpinelinux.org/alpine/aports/-/issues/15364
diff --git a/Makefile.am b/Makefile.am
index 05465de..aff1899 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1392,7 +1392,7 @@ libtcmalloc.pc: Makefile
echo '' >> "$@".tmp
echo 'Name: $(PACKAGE)' >> "$@".tmp
echo 'Version: $(VERSION)' >> "$@".tmp
- echo 'Summary: Performance tools for C++' >> "$@".tmp
+ echo 'Description: Performance tools for C++' >> "$@".tmp
echo 'URL: https://github.com/gperftools/gperftools' >> "$@".tmp
echo 'Requires:' >> "$@".tmp
echo 'Libs: -L$${libdir} -ltcmalloc' >> "$@".tmp