aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-16 12:00:08 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-16 12:00:08 +0000
commit867f0e31599421486e2a0988a040e4fc9a994d5e (patch)
tree6a2e3ab25d22c042fed175e45882a88bf7d56358 /main
parentc50caecb4db6f4e12d6c24ef9837179e8066938f (diff)
downloadaports-867f0e31599421486e2a0988a040e4fc9a994d5e.tar.bz2
aports-867f0e31599421486e2a0988a040e4fc9a994d5e.tar.xz
main/irqbalance: build fix aarch64
Diffstat (limited to 'main')
-rw-r--r--main/irqbalance/APKBUILD25
-rw-r--r--main/irqbalance/aarch64-fix.patch32
2 files changed, 47 insertions, 10 deletions
diff --git a/main/irqbalance/APKBUILD b/main/irqbalance/APKBUILD
index 9c1b6b31fa..bcf8d9ad69 100644
--- a/main/irqbalance/APKBUILD
+++ b/main/irqbalance/APKBUILD
@@ -14,17 +14,19 @@ install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Irqbalance/irqbalance/archive/v$pkgver.tar.gz
irqbalance.confd
- irqbalance.initd"
+ irqbalance.initd
+ aarch64-fix.patch"
+
+builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- ./autogen.sh
- return 0
+ cd "$builddir"
+ default_prepare || return 1
+ ./autogen.sh || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -37,7 +39,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
@@ -45,10 +47,13 @@ package() {
md5sums="b15d975336080bcac4be0c1752d43cf3 irqbalance-1.1.0.tar.gz
731fa9a46bc4fa380604bfb76d96d1ed irqbalance.confd
-ab27fa1e4ab71fc6bfe92cbf3a07c2cb irqbalance.initd"
+ab27fa1e4ab71fc6bfe92cbf3a07c2cb irqbalance.initd
+b71527aa66b4b39f7567821ada9f8f37 aarch64-fix.patch"
sha256sums="91506e638b03bf27cf5da7dc250d58a753ce8a0288a20265fc7ff0266040706b irqbalance-1.1.0.tar.gz
98bb18cd977a0706c3e63a36a7dfb2aa01cd84cabb719da0ea5bf795e5d02413 irqbalance.confd
-d248c538d5d74329979e4204eafa920af2b8addeccd25b53ff51f6d689fe57f0 irqbalance.initd"
+d248c538d5d74329979e4204eafa920af2b8addeccd25b53ff51f6d689fe57f0 irqbalance.initd
+fe156881739afb76f05f1c17621f03c695fe871b9c0a27e53f1d921577e9faab aarch64-fix.patch"
sha512sums="66abf71b87e25df190417afbf9da24d826d817de3c0ebdc686e3ae56ac131b2f9586092ba67e5f9c749cb139fbf2faaa2af2ef30700955a5b347f1964f61bf6b irqbalance-1.1.0.tar.gz
90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c irqbalance.confd
-92de6d1f0dcfbc0744dd2de1c1848f6322271af245249a01c4464ea1d36289f2cb35714e6bf7e9874d633b3d02359515b6354cc7ae6ad3008884d53151d8638c irqbalance.initd"
+92de6d1f0dcfbc0744dd2de1c1848f6322271af245249a01c4464ea1d36289f2cb35714e6bf7e9874d633b3d02359515b6354cc7ae6ad3008884d53151d8638c irqbalance.initd
+dd09f349b705956d657c603d20a9a03e833af74f29cceb80282fc4f433a3904c3557500de6a5cc20450b0a7511ed89b0f1530a7dd82e507e6c5cec617e432216 aarch64-fix.patch"
diff --git a/main/irqbalance/aarch64-fix.patch b/main/irqbalance/aarch64-fix.patch
new file mode 100644
index 0000000000..3e2c2092ba
--- /dev/null
+++ b/main/irqbalance/aarch64-fix.patch
@@ -0,0 +1,32 @@
+From 127caa1767312275925eac4f972f761a90fbee2a Mon Sep 17 00:00:00 2001
+From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
+Date: Tue, 15 Dec 2015 09:09:09 +0100
+Subject: [PATCH] Fix AArch64 support
+
+Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
+---
+ procinterrupts.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/procinterrupts.c b/procinterrupts.c
+index 63101d6..b70bfc2 100644
+--- a/procinterrupts.c
++++ b/procinterrupts.c
+@@ -80,7 +80,7 @@ static int check_platform_device(char *name, struct irq_info *info)
+ rc = 0;
+ goto out;
+ } else if (!strncmp(ent->d_name, "net", strlen("net"))) {
+- info->IRQ_TYPE_LEGACY;
++ info->type = IRQ_TYPE_LEGACY;
+ info->class = IRQ_ETH;
+ rc = 0;
+ goto out;
+@@ -94,7 +94,7 @@ static int check_platform_device(char *name, struct irq_info *info)
+
+ out:
+ closedir(dirfd);
+- log(TO_ALL, LOG_DEBUG, "IRQ %s is of type %d and class %d\n", name, info->type, info->class)
++ log(TO_ALL, LOG_DEBUG, "IRQ %s is of type %d and class %d\n", name, info->type, info->class);
+ return rc;
+
+ }