Date: Monday, April 4, 2022 @ 19:58:44 Author: dvzrv Revision: 1181387
archrelease: copy trunk to community-staging-x86_64 Added: trace-cmd/repos/community-staging-x86_64/ trace-cmd/repos/community-staging-x86_64/PKGBUILD (from rev 1181386, trace-cmd/trunk/PKGBUILD) trace-cmd/repos/community-staging-x86_64/trace-cmd-2.9-make_install.patch (from rev 1181386, trace-cmd/trunk/trace-cmd-2.9-make_install.patch) trace-cmd/repos/community-staging-x86_64/trace-cmd-2.9.3-python3.patch (from rev 1181386, trace-cmd/trunk/trace-cmd-2.9.3-python3.patch) ----------------------------------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++ trace-cmd-2.9-make_install.patch | 12 ++++++++ trace-cmd-2.9.3-python3.patch | 9 ++++++ 3 files changed, 72 insertions(+) Copied: trace-cmd/repos/community-staging-x86_64/PKGBUILD (from rev 1181386, trace-cmd/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-04-04 19:58:44 UTC (rev 1181387) @@ -0,0 +1,51 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +pkgname=trace-cmd +pkgver=3.0.3 +pkgrel=1 +pkgdesc="Interact with Ftrace Linux kernel internal tracer" +arch=(x86_64) +url="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git" +license=(GPL2 LGPL2.1) +depends=(glibc) +makedepends=(asciidoc audit bash-completion cunit libtraceevent libtracefs python swig xmlto zstd) +optdepends=('python: for Python plugins') +provides=(libtracecmd.so) +options=(debug) +source=( + https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-v$pkgver.tar.gz + $pkgname-2.9-make_install.patch + $pkgname-2.9.3-python3.patch +) +sha512sums=('896a5b2d230eb0ee19e27bb71e485acd163a3225062015a0dae5b4b55eb48d8d1cdc034f7881751523384f13e20adfd8b7bc0a53392fff8029bf1403445cc785' + 'c9321b2b885d88557a057d7064690274799ab1d67a8babb78b1c54c4d81546fdea7313286cfd5fb9efbbcf87cf8394dcb17202ac88434a351aa652e7109e1db6' + 'a1834b382cbee920697d08c7eb7292c4a5ea606e4f32459a60e0b236ad057536c987f3e162c9c99affa46396248e98c8f4ecd21031141f0221dbadf0bd33737d') +b2sums=('4c45b290d5d8ecb79d60886c24e6dbf4b43ff73792ca14fd30f0dd1ea91aa1fcd61551616ef0b89cd301d4c6c2b20fad1272b2e04ed374c59e2c8f3a9f022683' + '8a644be295417b1fd5fb807285a7176ef0ceb737352bbb4c7a88441f9b955a90befe974d890a58f2b8fb6de8a68a1b3c5d207f057c4b08db79caf6e97fa66f50' + 'dac368fc62d99eba6d36f2c7d81475c28211dfe5d1d59ca5e468daff31d36710637943dc822fb266784feb5355ca0bfb525819bb96095c8e0c0fa91f32558877') + +prepare() { + cd $pkgname-v$pkgver + patch -Np1 -i ../$pkgname-2.9-make_install.patch + patch -Np1 -i ../$pkgname-2.9.3-python3.patch +} + +build() { + export PYTHON_VERS=python3 + make prefix=/usr libdir_relative=lib all libs -C $pkgname-v$pkgver + make prefix=/usr doc -C $pkgname-v$pkgver + make test -C $pkgname-v$pkgver +} + +check() { + ./$pkgname-v$pkgver/utest/trace-utest +} + +package() { + depends+=(libaudit.so libtraceevent.so libtracefs.so libzstd.so) + + make prefix=/usr libdir_relative=lib DESTDIR="$pkgdir" BASH_COMPLETE_DIR="$(pkgconf --variable=completionsdir bash-completion)" install_cmd install_libs -C $pkgname-v$pkgver + # NOTE: for unknown reasons upstream does not use DESTDIR here... + make prefix="$pkgdir/usr" install_doc -C $pkgname-v$pkgver + install -vDm 644 $pkgname-v$pkgver/tracecmd/$pkgname.bash "$pkgdir/usr/share/bash/bash-completion/completions/$pkgname" +} Copied: trace-cmd/repos/community-staging-x86_64/trace-cmd-2.9-make_install.patch (from rev 1181386, trace-cmd/trunk/trace-cmd-2.9-make_install.patch) =================================================================== --- community-staging-x86_64/trace-cmd-2.9-make_install.patch (rev 0) +++ community-staging-x86_64/trace-cmd-2.9-make_install.patch 2022-04-04 19:58:44 UTC (rev 1181387) @@ -0,0 +1,12 @@ +diff -ruN a/Makefile b/Makefile +--- a/Makefile 2020-07-17 17:14:20.000000000 +0200 ++++ b/Makefile 2020-07-18 10:37:32.898885286 +0200 +@@ -398,7 +398,7 @@ + install_bash_completion: force + $(Q)$(call do_install_data,$(src)/tracecmd/trace-cmd.bash,$(BASH_COMPLETE_DIR)) + +-install_cmd: all_cmd install_plugins install_python install_bash_completion ++install_cmd: all_cmd install_plugins install_python + $(Q)$(call do_install,$(obj)/tracecmd/trace-cmd,$(bindir_SQ)) + + install: install_cmd Copied: trace-cmd/repos/community-staging-x86_64/trace-cmd-2.9.3-python3.patch (from rev 1181386, trace-cmd/trunk/trace-cmd-2.9.3-python3.patch) =================================================================== --- community-staging-x86_64/trace-cmd-2.9.3-python3.patch (rev 0) +++ community-staging-x86_64/trace-cmd-2.9.3-python3.patch 2022-04-04 19:58:44 UTC (rev 1181387) @@ -0,0 +1,9 @@ +diff -ruN a/python/event-viewer.py b/python/event-viewer.py +--- a/python/event-viewer.py 2021-05-14 16:20:12.000000000 +0200 ++++ b/python/event-viewer.py 2021-05-14 21:43:38.019590304 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python2 ++#!/usr/bin/env python3 + + import getopt + from gobject import *