summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2015-07-12 21:15:43 -0700
committerAnatol Pomozov2015-07-13 06:49:01 -0700
commit4d54caaf4f6418fbde08737aa9416920a425dc09 (patch)
tree160fd05d87343851f0121c0ed536b0f85bcf3f08
parent78df05084178aaba8931873d0ed81cef07bf1d1f (diff)
downloadaur-4d54caaf4f6418fbde08737aa9416920a425dc09.tar.gz
Fix compilation issue https://github.com/libhugetlbfs/libhugetlbfs/issues/2
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 38da6c9d540..03cbc9ee58e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,7 +9,9 @@ pkgbase = libhugetlbfs
checkdepends = python2
depends = perl
source = http://downloads.sourceforge.net/libhugetlbfs/libhugetlbfs-2.19.tar.gz
+ source = gcc51-compile.patch::https://github.com/libhugetlbfs/libhugetlbfs/commit/82743f2a4d8fc099b17cac7d3b8f83ea13328916.patch
sha1sums = 9d67423a6137a14fcd7165ba74f687aa2e4465cf
+ sha1sums = ea1de7ae6c7f02c73c9fa416b3240cae7f2c1b86
pkgname = libhugetlbfs
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() {