From 42085e28b87bffbb55fbde8a91933fed039522d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 27 Jun 2016 06:16:02 +0200 Subject: [PATCH] opendoas: fix build by disabling HAVE_SYS_TREE_H The musl implementation of sys/tree.h results in build errors. Always use the shipped version instead. --- srcpkgs/opendoas/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/opendoas/template b/srcpkgs/opendoas/template index 6f2aa5e21d5..9113ef1f0f0 100644 --- a/srcpkgs/opendoas/template +++ b/srcpkgs/opendoas/template @@ -1,6 +1,4 @@ # Template file for 'opendoas' -broken="Duncaen" - pkgname=opendoas version=0.3.1 revision=1 @@ -26,6 +24,11 @@ pre_configure() { -e '/chown ${BINOWN}:${BINGRP}/d' \ -e '/chmod ${BINMODE}/d' } +post_configure() { + # Disable -DHAVE_SYS_TREE_H because the + # musl implementation results in build errors + sed -i config.mk -e 's/.*-DHAVE_SYS_TREE_H/#\0/' +} post_install() { vlicense LICENSE