dma: unbreak musl

This commit is contained in:
jbu 2015-08-07 15:01:43 +02:00
parent 68ba5a5279
commit b3f0c5eb81
3 changed files with 35 additions and 5 deletions

View file

@ -0,0 +1,22 @@
Even if not defining __GLIBC__, musl libc has program_invocation_short_name
--- dfcompat.c 2013-06-03 16:03:15.000000000 +0200
+++ dfcompat.c 2015-08-07 14:57:37.814738238 +0200
@@ -105,8 +105,6 @@
#ifndef HAVE_GETPROGNAME
-#ifdef __GLIBC__
-
#include <errno.h>
const char *
@@ -115,8 +113,4 @@
return (program_invocation_short_name);
}
-#else /* __GLIBC__ */
-#error "no getprogname implementation available"
-#endif
-
#endif /* !HAVE_GETPROGNAME */

View file

@ -0,0 +1,12 @@
Include <sys/param.h> for roundup() declaration with musl libc
--- dns.c 2013-06-03 16:03:15.000000000 +0200
+++ dns.c 2015-08-07 14:53:01.499713464 +0200
@@ -33,6 +33,7 @@
*/
#include <sys/types.h>
+#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>

View file

@ -1,7 +1,7 @@
# Template file for 'dma'
pkgname=dma
version=0.9
revision=5
revision=6
conf_files="/etc/dma/dma.conf /etc/dma/auth.conf"
hostmakedepends="flex"
makedepends="libressl-devel"
@ -15,10 +15,6 @@ checksum=69a46b5a05b0be13ee547d675eed35010fe6c6aef10335e099de33a80983c262
provides="smtp-server-0_1 smtp-forwarder-0_1"
replaces="smtp-server>=0 smtp-forwarder>=0"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="http://build.voidlinux.eu/builders/x86_64-musl_builder/builds/3571/steps/shell_3/logs/stdio";;
esac
do_build() {
make CC=$CC LEX=flex ${makejobs}
}