Date: Saturday, April 29, 2023 @ 04:27:46
Author: heftig
Revision: 475373
archrelease: copy trunk to testing-x86_64
Added:
pahole/repos/testing-x86_64/
pahole/repos/testing-x86_64/PKGBUILD
(from rev 475372, pahole/trunk/PKGBUILD)
pahole/repos/testing-x86_64/keys/
pahole/repos/testing-x86_64/python.diff
(from rev 475372, pahole/trunk/python.diff)
-------------+
PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
python.diff | 13 ++++++++++++
2 files changed, 75 insertions(+)
Copied: pahole/repos/testing-x86_64/PKGBUILD (from rev 475372,
pahole/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2023-04-29 04:27:46 UTC (rev 475373)
@@ -0,0 +1,62 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+
+pkgname=pahole
+pkgver=1.25
+pkgrel=2
+epoch=1
+pkgdesc="Pahole and other DWARF utils"
+url="https://git.kernel.org/pub/scm/devel/pahole/pahole.git"
+arch=(x86_64)
+license=(GPL2)
+depends=(
+ libelf
+ python-matplotlib
+)
+makedepends=(
+ cmake
+ ninja
+)
+provides=(libdwarves{,_emit,_reorganize}.so)
+_commit=02d67c51765dfbd5893087da63744c864c7cc9e0 # master
+source=(
+ https://fedorapeople.org/~acme/dwarves/dwarves-$pkgver.tar.{xz,sign}
+ python.diff
+)
+b2sums=('1926fa1fa123fc3ad0f7f063406260b1e1e2611c563fedebee4c837e491164571fdb40408421c0c4ea2fd24e89c54a7a1ea669313b6dd6d7dcfa4934e2c1336e'
+ 'SKIP'
+
'e88fcda77c0a6aaea0d83949cabbaaaf24f6a4b2324a14e459efc202b210c31b58f7a90c75c34ffd08911514b3b6db4be4423e3f8e0fb50b6d914da5be002319')
+validpgpkeys=(
+ 2DBF5BAA46FB4DED338A335BD65016F35352AA40 # Arnaldo Carvalho de Melo
<[email protected]>
+)
+
+prepare() {
+ cd dwarves-$pkgver
+
+ # https://bugs.archlinux.org/task/70013
+ patch -Np1 -i ../python.diff
+}
+
+build() {
+ local cmake_options=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_BUILD_TYPE=None
+ -D__LIB=lib
+ )
+
+ cmake -S dwarves-$pkgver -B build -G Ninja "${cmake_options[@]}"
+ cmake --build build
+}
+
+check() {
+ cd build
+ ctest --output-on-failure --stop-on-failure -j$(nproc)
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+
+ python -m compileall -d / "$pkgdir"
+ python -O -m compileall -d / "$pkgdir"
+}
+
+# vim:set sw=2 sts=-1 et:
Copied: pahole/repos/testing-x86_64/python.diff (from rev 475372,
pahole/trunk/python.diff)
===================================================================
--- testing-x86_64/python.diff (rev 0)
+++ testing-x86_64/python.diff 2023-04-29 04:27:46 UTC (rev 475373)
@@ -0,0 +1,13 @@
+diff --git i/CMakeLists.txt w/CMakeLists.txt
+index 98642e1..b4295fd 100644
+--- i/CMakeLists.txt
++++ w/CMakeLists.txt
+@@ -188,7 +188,7 @@ install(FILES dwarves.h dwarves_emit.h dwarves_reorganize.h
+ install(FILES man-pages/pahole.1 DESTINATION
${CMAKE_INSTALL_PREFIX}/share/man/man1/)
+ if(Python3_FOUND)
+ install(PROGRAMS ostra/ostra-cg DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+- install(FILES ostra/python/ostra.py DESTINATION
${CMAKE_INSTALL_PREFIX}/share/dwarves/runtime/python)
++ install(FILES ostra/python/ostra.py DESTINATION ${Python3_SITELIB})
+ endif()
+ install(PROGRAMS btfdiff fullcircle DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+ install(FILES lib/Makefile lib/ctracer_relay.c lib/ctracer_relay.h
lib/linux.blacklist.cu