summaryrefslogtreecommitdiffstats
path: root/main/vanessa_logger
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-09 07:55:59 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-09 08:23:13 +0000
commit3c461dc8d43772a48e601a39e037565920cf588f (patch)
tree02047a590f41955220e87b924dcb407574ac5fb9 /main/vanessa_logger
parent4e9b99b9aaebfa765d501164c135b64568ab4783 (diff)
downloadaports-3c461dc8d43772a48e601a39e037565920cf588f.tar.bz2
aports-3c461dc8d43772a48e601a39e037565920cf588f.tar.xz
main/vanessa_logger: fix musl build
Diffstat (limited to 'main/vanessa_logger')
-rw-r--r--main/vanessa_logger/APKBUILD16
-rw-r--r--main/vanessa_logger/fix-standard.patch21
2 files changed, 35 insertions, 2 deletions
diff --git a/main/vanessa_logger/APKBUILD b/main/vanessa_logger/APKBUILD
index 826faee9d..99c7a006b 100644
--- a/main/vanessa_logger/APKBUILD
+++ b/main/vanessa_logger/APKBUILD
@@ -11,7 +11,9 @@ depends_dev=""
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
-source="http://horms.net/projects/perdition/download/1.18/$pkgname-$pkgver.tar.bz2"
+source="http://horms.net/projects/perdition/download/1.18/$pkgname-$pkgver.tar.bz2
+ fix-standard.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
@@ -19,6 +21,11 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
return 0
}
@@ -41,4 +48,9 @@ package() {
rm "$pkgdir"/usr/lib/*.la
}
-md5sums="3b70c8b330d25fb97ef9d7f3fd71c0b0 vanessa_logger-0.0.8.tar.bz2"
+md5sums="3b70c8b330d25fb97ef9d7f3fd71c0b0 vanessa_logger-0.0.8.tar.bz2
+201bc3e8e17b7003ee8befb87dc47f81 fix-standard.patch"
+sha256sums="fcff3e0720aa6d23ae8ab9af1ed06d32e7e04e3e9d2d18a6f75cc8ebdb14ddbf vanessa_logger-0.0.8.tar.bz2
+47d23d2eb7800fa642a20658d77ee992f70ebc979713fe05bd6f5d3e05629796 fix-standard.patch"
+sha512sums="4518d1f12fe54554ac1759df30da81e2b25dd51cafe911fe33b119558e8b61cb698a1797bf7064e25d2eff82b456e3ebfe0a565247cbcab76ebe6270a0b7c7da vanessa_logger-0.0.8.tar.bz2
+0b8c52668f7789073984e3573a3c3b675b9027eea31f8185345f6baca0a5dfb22397858b342eb5069a20d07b8e7a4c9c4f4bd257bbad7cd692c39b8f606c4ac5 fix-standard.patch"
diff --git a/main/vanessa_logger/fix-standard.patch b/main/vanessa_logger/fix-standard.patch
new file mode 100644
index 000000000..8ac341101
--- /dev/null
+++ b/main/vanessa_logger/fix-standard.patch
@@ -0,0 +1,21 @@
+--- vanessa_logger-0.0.8.orig/libvanessa_logger/vanessa_logger.c
++++ vanessa_logger-0.0.8/libvanessa_logger/vanessa_logger.c
+@@ -677,8 +677,6 @@
+ {
+ int i;
+
+- extern CODE facilitynames[];
+-
+ if (facility_name == NULL) {
+ fprintf(stderr,
+ "__vanessa_logger_get_facility_byname: "
+@@ -1102,8 +1100,7 @@
+ case HOST_NOT_FOUND:
+ str = "Unknown host";
+ break;
+- case NO_ADDRESS:
+- /* case NO_DATA: */
++ case NO_DATA:
+ str = "Host has no address";
+ break;
+ case NO_RECOVERY: