From 008ed157f02a304d3b2b4ff4ad8693d9faea5806 Mon Sep 17 00:00:00 2001 From: waddlesplash Date: Sun, 16 Dec 2018 12:53:24 -0500 Subject: [PATCH] diffutils: Build with posix_error_mapper. Should fix https://dev.haiku-os.org/ticket/5431. --- sys-apps/diffutils/diffutils-3.6.recipe | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys-apps/diffutils/diffutils-3.6.recipe b/sys-apps/diffutils/diffutils-3.6.recipe index 1c38610c8..62e10e81c 100644 --- a/sys-apps/diffutils/diffutils-3.6.recipe +++ b/sys-apps/diffutils/diffutils-3.6.recipe @@ -16,7 +16,7 @@ You can use the sdiff command to merge two files interactively." HOMEPAGE="https://www.gnu.org/software/diffutils/" COPYRIGHT="1992-2016 Free Software Foundation, Inc." LICENSE="GNU GPL v3" -REVISION="1" +REVISION="2" SOURCE_URI="http://ftpmirror.gnu.org/diffutils/diffutils-$portVersion.tar.xz" CHECKSUM_SHA256="d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6" PATCHES="diffutils-$portVersion.patchset" @@ -52,6 +52,10 @@ defineDebugInfoPackage diffutils \ BUILD() { + export CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS" + export CXXFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS" + export LDFLAGS="-lposix_error_mapper" + runConfigure ./configure \ --disable-gcc-warnings make $jobArgs