Package Details: bpftune-git r598.688b122-1

Git Clone URL: https://aur.archlinux.org/bpftune-git.git (read-only, click to copy)
Package Base: bpftune-git
Description: BPF/tracing tools for auto-tuning Linux
Upstream URL: https://github.com/oracle/bpftune
Licenses: GPLv2 WITH Linux-syscall-note
Conflicts: bpftune
Provides: bpftune
Submitter: KriK
Maintainer: ContronThePanda
Last Packager: ContronThePanda
Votes: 7
Popularity: 0.045602
First Submitted: 2023-07-01 08:11 (UTC)
Last Updated: 2024-12-19 23:13 (UTC)

Dependencies (9)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

j1simon commented on 2026-02-23 14:31 (UTC) (edited on 2026-02-23 14:32 (UTC) by j1simon)

Error in recent git versions:

$ pacman -Ql bpftune
....
bpftune-git /usr/
bpftune-git /usr/bpftune
....

The executable isn't in /usr/bin/. I don't know if it's an PKGBUILD error or a developer error.

knedlyk commented on 2024-11-19 16:06 (UTC)

Question to @svalo: how did you apply your patch? I tried to do it several times but every time it gives me rejects. Can you post your patch elsewhere?

svalo commented on 2024-11-18 08:42 (UTC)

Source repository has moved, the new home is https://github.com/oracle/bpftune the following patch includes also the other suggested changes

diff --git a/PKGBUILD b/PKGBUILD
index 6d68a1c..6135fcb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ conflicts=("$_pkgbase")
 #backup=()
 options=('strip')
 #install=
-source=('git+https://github.com/oracle-samples/bpftune')
+source=('git+https://github.com/oracle/bpftune')
 #noextract=()
 md5sums=('SKIP')

@@ -26,19 +26,17 @@ pkgver() {
 }

 prepare() {
-       cd "$srcdir/$_pkgbase"
-       sed -i 's/\/lib64/\/lib/' include/bpftune/libbpftune.h
-       sed -i 's/\/lib64/\/lib/g' src/Makefile
-       sed -i 's/\/sbin/\/bin/g' src/Makefile
-       sed -i 's/\/sbin/\/bin/g' src/bpftune.service
+       cd "$srcdir/$_pkgbase"
+       sed -i 's/\/sbin/\/bin/g' src/Makefile
+       sed -i 's/\/sbin/\/bin/g' src/bpftune.service
 }

 build() {
        cd "$srcdir/$_pkgbase"
-       CC=clang make
+       CC=clang make libdir=lib
 }

 package() {
        cd "$srcdir/$_pkgbase"
-       CC=clang make DESTDIR="$pkgdir" install
+       CC=clang make DESTDIR="$pkgdir" libdir=lib install
 }

ContronThePanda commented on 2024-09-23 20:55 (UTC)

Built and installed successfully with the following changes:

diff --git a/PKGBUILD b/PKGBUILD
index 6d68a1c..988872e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,18 +27,16 @@ pkgver() {

 prepare() {
        cd "$srcdir/$_pkgbase"
-       sed -i 's/\/lib64/\/lib/' include/bpftune/libbpftune.h
-       sed -i 's/\/lib64/\/lib/g' src/Makefile
        sed -i 's/\/sbin/\/bin/g' src/Makefile
        sed -i 's/\/sbin/\/bin/g' src/bpftune.service
 }

 build() {
        cd "$srcdir/$_pkgbase"
-       CC=clang make
+       CC=clang make libdir=lib
 }

 package() {
        cd "$srcdir/$_pkgbase"
-       CC=clang make DESTDIR="$pkgdir" install
+       CC=clang make DESTDIR="$pkgdir" libdir=lib install
 }

ContronThePanda commented on 2024-09-23 20:41 (UTC)

The current build issue seems to be caused by the fact that the PKGBUILD file uses a sed command to replace occurrences of /lib64 with /lib, but the current source code uses the string "lib64" without the leading slash. The current README includes an officially supported way to make this change instead (source):

$ make libdir=lib
$ sudo make install libdir=lib

The current PKGBUILD also does something similar to change sbin to bin; it doesn't look like there's an officially supported way to do that at the moment, but that could present a similar issue in the future.

StrontiumK9 commented on 2024-09-17 06:31 (UTC) (edited on 2024-09-17 06:31 (UTC) by StrontiumK9)

Fails to install with:

error: failed to commit transaction (conflicting files)
bpftune-git: /usr/lib64 exists in filesystem (owned by filesystem)

ress commented on 2023-09-25 00:21 (UTC)

This repository has been moved from https://github.com/oracle-samples to https://github.com/oracle.

glitsj16 commented on 2023-07-25 22:53 (UTC) (edited on 2023-07-25 22:53 (UTC) by glitsj16)

The dynamic linker searches in /usr/lib by default. No need for installing libbpftune.conf to /etc/ld.so.conf.d:

[ -d "${pkgdir}/etc" ] && rm -r "$pkgdir"/etc

Secondly, the package() function currently puts two exact copies into /usr/lib. Only the versioned libbpftune .so should go in there. The other one needs to be a symlink to it:

# make libbpftune.so a symlink to libbpftune.so.0.1.3

[ -f "${pkgdir}/usr/lib/libbpftune.so" ] && rm "${pkgdir}/usr/lib/libbpftune.so"

ln -fs /usr/lib/libbpftune.so.0.1.3 "$pkgdir"/usr/lib/libbpftune.so

HTH

glitsj16 commented on 2023-07-08 16:38 (UTC) (edited on 2023-07-08 16:40 (UTC) by glitsj16)

Thanks for offering this package in the AUR. Some remarks:

  • clang already pulls in llvm-libs, that can be removed from makedepends;
  • make -j1 is needed to build succesfully;
  • reported generated warnings about potential memory leaks upstream.

ptr1337 commented on 2023-07-07 17:01 (UTC)

https://github.com/CachyOS/CachyOS-PKGBUILDS/blob/master/bpftune-git/PKGBUILD

This one is (currently) working. :)