summaryrefslogtreecommitdiffstats
path: root/testing/ipmiutil
diff options
context:
space:
mode:
authorPaul Kilar <pkilar@gmail.com>2014-07-14 11:14:11 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-15 14:09:09 +0000
commit86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8 (patch)
treec962d9f8506d8b894623764361cf100f0a050693 /testing/ipmiutil
parentd7c803a354733ebb716fe90dc06ceaeaddb203a6 (diff)
downloadaports-86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8.tar.bz2
aports-86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8.tar.xz
testing/ipmiutil: patch to compile with musl
Diffstat (limited to 'testing/ipmiutil')
-rw-r--r--testing/ipmiutil/APKBUILD14
-rw-r--r--testing/ipmiutil/fixups.patch33
2 files changed, 42 insertions, 5 deletions
diff --git a/testing/ipmiutil/APKBUILD b/testing/ipmiutil/APKBUILD
index 3dfd8bc87..31e6e1dec 100644
--- a/testing/ipmiutil/APKBUILD
+++ b/testing/ipmiutil/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=ipmiutil
pkgver=2.9.2
-pkgrel=0
+pkgrel=1
pkgdesc="IPMI Management Utilities"
url="http://ipmiutil.sourceforge.net/"
arch="all"
@@ -12,7 +12,8 @@ depends_dev="openssl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
-source="http://switch.dl.sourceforge.net/project/ipmiutil/ipmiutil-$pkgver.tar.gz"
+source="http://switch.dl.sourceforge.net/project/ipmiutil/ipmiutil-$pkgver.tar.gz
+fixups.patch"
_builddir="$srcdir"/ipmiutil-$pkgver
prepare() {
@@ -46,6 +47,9 @@ package() {
rm -f "$pkgdir"/usr/lib/*.la
}
-md5sums="17637b9b5569e5646806d86f595ba596 ipmiutil-2.9.2.tar.gz"
-sha256sums="c32687d233390364a91d16920dcd7df80c06365ade9e51d74b2af5c5d1acead8 ipmiutil-2.9.2.tar.gz"
-sha512sums="8c7643042232792ba51cf0546e756f409e055433940fc54907de07eb39de504128fa4613f8253997ea145c17d6e38a8888cf6b98b8e45c7130f383ad18798264 ipmiutil-2.9.2.tar.gz"
+md5sums="17637b9b5569e5646806d86f595ba596 ipmiutil-2.9.2.tar.gz
+2759e748ae36b0dfa4a283e7c0f948e4 fixups.patch"
+sha256sums="c32687d233390364a91d16920dcd7df80c06365ade9e51d74b2af5c5d1acead8 ipmiutil-2.9.2.tar.gz
+87b9165ca06254256a35bf7666d60479ded78747a44b91adbbec5257b57254de fixups.patch"
+sha512sums="8c7643042232792ba51cf0546e756f409e055433940fc54907de07eb39de504128fa4613f8253997ea145c17d6e38a8888cf6b98b8e45c7130f383ad18798264 ipmiutil-2.9.2.tar.gz
+3b7dd14ab2db875419b7110f56d40c1032e1c105ef3b2dd5ceec1efe206dbff66a967ac4b781dc4f1e36e24bdf832408a173e3de3082ae7b8649680f57f85f2f fixups.patch"
diff --git a/testing/ipmiutil/fixups.patch b/testing/ipmiutil/fixups.patch
new file mode 100644
index 000000000..dea7adae0
--- /dev/null
+++ b/testing/ipmiutil/fixups.patch
@@ -0,0 +1,33 @@
+--- a/util/imb_api.h
++++ b/util/imb_api.h
+@@ -49,8 +49,8 @@
+ /* DOS defines wchar_t in stdlib.h */
+ #else
+ // defined(LINUX) | defined(SOLARIS)
+-#ifndef _WCHAR_T
+-#define _WCHAR_T
++#ifndef __DEFINED_wchar_t
++#define __DEFINED_wchar_t
+ typedef long wchar_t;
+ #endif
+ #endif
+--- a/util/mem_if.c
++++ b/util/mem_if.c
+@@ -65,6 +65,7 @@
+ #include <sys/param.h>
+ #include <sys/mman.h>
+ #include <sys/ioctl.h>
++#include <linux/param.h>
+ #endif
+ #if defined(SOLARIS) || defined(BSD)
+ #define EXEC_PAGESIZE 4096
+--- a/util/ipmimv.c
++++ b/util/ipmimv.c
+@@ -62,6 +62,7 @@
+ #include <time.h>
+ #include <errno.h>
+ #include <sys/ioctl.h>
++#include <sys/select.h>
+ #if defined(MACOS)
+ #include <sys/time.h>
+ #else