Skip to content

Instantly share code, notes, and snippets.

@ivoronin
Created August 4, 2012 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ivoronin/3260352 to your computer and use it in GitHub Desktop.
Save ivoronin/3260352 to your computer and use it in GitHub Desktop.
systemtap pkgbuild
# Maintainer: Sebastien Binet <binet@farnsworth>
# Wu Xingbo <wuxb45@gmail.com>
pkgname=systemtap
pkgver=1.8
pkgrel=1
pkgdesc="SystemTap provides free software (GPL) infrastructure to simplify the gathering of information about the running Linux system."
url="http://sourceware.org/systemtap/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('elfutils' 'nss' 'python')
makedepends=('gcc')
optdepends=('sqlite3' 'linux-fedora')
source=(http://sourceware.org/systemtap/ftp/releases/$pkgname-$pkgver.tar.gz https://raw.github.com/gist/3260352/f2df2b42f5c3fa884e8560c54e180d1b5580ef6e/staprun.patch)
md5sums=('5b7ab0ae0efc520f0b19f9dbf11977c9' 'de9bc5fcb3326c3c154cee26ebd7adda')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < ../staprun.patch
./configure --prefix=/usr --sysconfdir=/etc || return 1
make ${MAKEFLAGS} || return 1
make DESTDIR=${startdir}/pkg install || return 1
}
diff -ru systemtap-1.8.orig/runtime/staprun/staprun.h systemtap-1.8/runtime/staprun/staprun.h
--- systemtap-1.8.orig/runtime/staprun/staprun.h 2012-06-17 20:27:54.000000000 +0400
+++ systemtap-1.8/runtime/staprun/staprun.h 2012-08-05 02:15:47.552004076 +0400
@@ -28,7 +28,6 @@
#include <sys/poll.h>
#include <pthread.h>
#include <sys/socket.h>
-#include <linux/types.h>
#include <linux/limits.h>
#include <sys/wait.h>
#include <sys/statfs.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment