Date: Saturday, April 8, 2023 @ 03:11:43
Author: felixonmars
Revision: 473202
archrelease: copy trunk to staging-x86_64
Added:
pahole/repos/staging-x86_64/
pahole/repos/staging-x86_64/PKGBUILD
(from rev 473201, pahole/trunk/PKGBUILD)
pahole/repos/staging-x86_64/python.diff
(from rev 473201, pahole/trunk/python.diff)
-------------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
python.diff | 13 +++++++++++++
2 files changed, 71 insertions(+)
Copied: pahole/repos/staging-x86_64/PKGBUILD (from rev 473201,
pahole/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2023-04-08 03:11:43 UTC (rev 473202)
@@ -0,0 +1,58 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+
+pkgname=pahole
+pkgver=1.24+r29+g02d67c5
+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)
+makedepends=(git cmake ninja)
+provides=(libdwarves{,_emit,_reorganize}.so)
+_commit=02d67c51765dfbd5893087da63744c864c7cc9e0 # master
+source=("git+https://git.kernel.org/pub/scm/devel/pahole/pahole.git#commit=$_commit"
+ "git+https://github.com/libbpf/libbpf"
+ python.diff)
+sha256sums=('SKIP'
+ 'SKIP'
+ '12f3d83bda3ec503aca910d0a4372ff8c72886a02aa512b2f37c3f1b21c690c7')
+
+pkgver() {
+ cd pahole
+ git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd pahole
+
+ # https://bugs.archlinux.org/task/70013
+ git apply -3 ../python.diff
+
+ git submodule init
+ git submodule set-url lib/bpf "$srcdir/libbpf"
+ git -c protocol.file.allow=always submodule update
+}
+
+build() {
+ cmake -S pahole -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -D__LIB=lib
+ 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 et:
Copied: pahole/repos/staging-x86_64/python.diff (from rev 473201,
pahole/trunk/python.diff)
===================================================================
--- staging-x86_64/python.diff (rev 0)
+++ staging-x86_64/python.diff 2023-04-08 03:11:43 UTC (rev 473202)
@@ -0,0 +1,13 @@
+diff --git i/CMakeLists.txt w/CMakeLists.txt
+index 1cd82ad..91a10f3 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