Commit 3c461dc8 authored by Timo Teräs's avatar Timo Teräs

main/vanessa_logger: fix musl build

parent 4e9b99b9
......@@ -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"
--- 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:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment