patch: restore version 2.7.5 for x86_gcc2 non hybrid. See #3200

This commit is contained in:
fbrosson
2018-10-08 15:51:42 +00:00
parent d8b74a5c63
commit 99bfcd79f0
2 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
SUMMARY="Utility to apply diffs to files"
DESCRIPTION="Patch takes a patch file containing a difference listing produced \
by the diff program and applies those differences to one or more original \
files, producing patched versions."
HOMEPAGE="https://savannah.gnu.org/projects/patch/"
COPYRIGHT="2012-2015 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="https://ftpmirror.gnu.org/patch/patch-$portVersion.tar.gz
https://ftp.gnu.org/gnu/patch/patch-$portVersion.tar.gz"
CHECKSUM_SHA256="7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f"
PATCHES="patch-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
PROVIDES="
patch = $portVersion
cmd:patch = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:make
"
TEST_REQUIRES="
cmd:diff
cmd:git
"
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
rm "$libDir"/charset.alias
}
TEST()
{
make check
}

View File

@@ -0,0 +1,23 @@
From d3c585d16030c1bd44183499ffa4660ae7e69ec1 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 16 Feb 2015 17:22:43 +0000
Subject: fstatat is in sys/stat.h
diff --git a/lib/symlinkat.c b/lib/symlinkat.c
index ce10d94..814b19a 100644
--- a/lib/symlinkat.c
+++ b/lib/symlinkat.c
@@ -18,6 +18,9 @@
#include <config.h>
+#ifdef __HAIKU__
+#include <sys/stat.h>
+#endif
#include <unistd.h>
#include <errno.h>
--
1.8.3.4