summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0c00bb253dd..21861e244b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,8 +10,10 @@ arch=(i686 x86_64)
depends=(perl)
checkdepends=(python2)
license=(GPL)
-source=(http://downloads.sourceforge.net/libhugetlbfs/libhugetlbfs-$pkgver.tar.gz)
-sha1sums=('9d67423a6137a14fcd7165ba74f687aa2e4465cf')
+source=(http://downloads.sourceforge.net/libhugetlbfs/libhugetlbfs-$pkgver.tar.gz
+ gcc51-compile.patch::https://github.com/libhugetlbfs/libhugetlbfs/commit/82743f2a4d8fc099b17cac7d3b8f83ea13328916.patch)
+sha1sums=('9d67423a6137a14fcd7165ba74f687aa2e4465cf'
+ 'ea1de7ae6c7f02c73c9fa416b3240cae7f2c1b86')
_options='BUILDTYPE=NATIVEONLY'
if [ "$CARCH" = "x86_64" ]; then
@@ -24,6 +26,8 @@ prepare() {
cd libhugetlbfs-$pkgver
sed 's|/lib64/perl5/TLBC|/lib/perl5/TLBC|g;s|/lib/perl5/TLBC|/lib/perl5/vendor_perl/TLBC|g' -i Makefile
sed 's|/usr/bin/env python|/usr/bin/env python2|g' -i tests/run_tests.py
+
+ patch -p1 < ../gcc51-compile.patch
}
build() {