From bdca798207ed9decf55d113cd9cb1115b01ba78a Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sun, 15 Oct 2023 22:45:41 +0200 Subject: [PATCH] testing/gperftools: fix pkgconf warning closes #15364 --- testing/gperftools/APKBUILD | 4 +++- testing/gperftools/pkgconfig.patch | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 testing/gperftools/pkgconfig.patch diff --git a/testing/gperftools/APKBUILD b/testing/gperftools/APKBUILD index 373bceb29a2..33bb5dc9159 100644 --- a/testing/gperftools/APKBUILD +++ b/testing/gperftools/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Alex Denes 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 " diff --git a/testing/gperftools/pkgconfig.patch b/testing/gperftools/pkgconfig.patch new file mode 100644 index 00000000000..83642d9eb9d --- /dev/null +++ b/testing/gperftools/pkgconfig.patch @@ -0,0 +1,19 @@ +From: ptrcnull +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