Package Details: libpfm4 4.7.0-1

Git Clone URL: https://aur.archlinux.org/libpfm4.git (read-only)
Package Base: libpfm4
Description: Library to encode performance events for use by perf tool
Upstream URL: http://perfmon2.sourceforge.net/
Licenses: MIT
Conflicts: libpfm3
Submitter: None
Maintainer: bchretien
Last Packager: bchretien
Votes: 6
Popularity: 0.011213
First Submitted: 2011-11-04 09:36
Last Updated: 2016-03-31 14:41

Latest Comments

bchretien commented on 2014-04-03 17:47

@capjo: thanks! Package up-to-date ;-)

capjo commented on 2014-04-03 16:30

Version 4.5.0 is out.

I've updated the PKGBUILD file, but only testet on my x86_64 machine. It worked there. I removed the config.mk file and used sed instead to make it work on my machine. The description was also updated. I paste the new PKGBUILD simply in this commment.

# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
# Contributor: Håvard Espeland <espeland@acm.org>
pkgname=libpfm4
pkgver=4.5.0
conflicts=('libpfm3')
pkgrel=1
pkgdesc="Library to encode performance events for use by perf tool"
arch=('x86_64' 'i686')
url="http://perfmon2.sourceforge.net/"
license=('MIT')
depends=('glibc')
source=("http://downloads.sourceforge.net/project/perfmon2/libpfm4/libpfm-$pkgver.tar.gz")
md5sums=('8eda1e3741c8f3359a33ebd553243333')

build() {
cd "$srcdir/libpfm-$pkgver"
sed -i 's|PREFIX=/usr/local|PREFIX=/usr|g' config.mk
sed -i 's|LDCONFIG=ldconfig|LDCONFIG=true|g' config.mk
make
}

check () {
cd "$srcdir/libpfm-$pkgver/tests"
./validate
}

package() {
cd "$srcdir/libpfm-$pkgver"

# Install libraries
make DESTDIR="$pkgdir/" install

# Install useful example files
make DESTDIR="$pkgdir/" install_examples

# Install license
install -D -m0644 COPYING "${pkgdir}"/usr/share/licenses/libpfm4/LICENSE
}

# vim:set ts=2 sw=2 et:

bchretien commented on 2013-12-13 17:49

@capjo: thanks, it's done ;-)

capjo commented on 2013-12-12 02:31

Hi,

thanks for this package. The examples files are missing, however, and they are quite useful.

http://www.bnikolic.co.uk/blog/hpc-prof-events.html
http://web.eece.maine.edu/~vweaver/projects/perf_events/faq.html

It would be nice to install them.

You need to modify the PKGBUILD script in the following way:

package() {
cd "$srcdir/libpfm-$pkgver"
sed -i 's/$(DOCDIR)/$(DESTDIR)$(DOCDIR)/g' perf_examples/Makefile
make DESTDIR="$pkgdir/" install
make DESTDIR="$pkgdir/" install_examples
install -D -m0644 COPYING "${pkgdir}"/usr/s hare/licenses/libpfm4/LICENSE
}

The sed line is necessary because of a bug in the Makefile. I already send a patch upstream.

bchretien commented on 2013-07-18 09:06

@haavares: ok, I will update it asap.

bchretien commented on 2013-07-18 09:06

Version 4.4.0 is out ;-)

Anonymous comment on 2013-07-18 09:02

I don't use arch at the moment. Disowned, but should be easy to update for lastest version.

bchretien commented on 2013-07-18 08:49

Version 4.4.0 is out ;-)