diff options
author | Brian Callahan <bcallah@openbsd.org> | 2020-01-25 19:52:28 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-26 08:48:19 +0100 |
commit | 77ed9432758fe11cb187816264b444f6318df270 (patch) | |
tree | 61094a18e49bb9aae802d3d649155848ce731760 /Ports/diffutils | |
parent | 8c1f2d713172bca788fec4e05cac5e25781a6481 (diff) | |
download | serenity-77ed9432758fe11cb187816264b444f6318df270.zip |
Ports: Add diffutils port
Diffstat (limited to 'Ports/diffutils')
-rwxr-xr-x | Ports/diffutils/package.sh | 5 | ||||
-rw-r--r-- | Ports/diffutils/patches/fix-autoconf.patch | 10 | ||||
-rw-r--r-- | Ports/diffutils/patches/fix-intprops.patch | 17 |
3 files changed, 32 insertions, 0 deletions
diff --git a/Ports/diffutils/package.sh b/Ports/diffutils/package.sh new file mode 100755 index 0000000000..cce5eee5af --- /dev/null +++ b/Ports/diffutils/package.sh @@ -0,0 +1,5 @@ +#!/bin/bash ../.port_include.sh +port=diffutils +version=3.5 +files="https://ftp.gnu.org/gnu/diffutils/diffutils-3.5.tar.xz diffutils-3.5.tar.xz" +useconfigure=true diff --git a/Ports/diffutils/patches/fix-autoconf.patch b/Ports/diffutils/patches/fix-autoconf.patch new file mode 100644 index 0000000000..3c51ece565 --- /dev/null +++ b/Ports/diffutils/patches/fix-autoconf.patch @@ -0,0 +1,10 @@ +--- diffutils-3.5/build-aux/config.sub.orig Sat Jan 25 19:30:30 2020 ++++ diffutils-3.5/build-aux/config.sub Sat Jan 25 19:30:39 2020 +@@ -1382,6 +1382,7 @@ + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ ++ | -serenity* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ diff --git a/Ports/diffutils/patches/fix-intprops.patch b/Ports/diffutils/patches/fix-intprops.patch new file mode 100644 index 0000000000..b364571e04 --- /dev/null +++ b/Ports/diffutils/patches/fix-intprops.patch @@ -0,0 +1,17 @@ +--- diffutils-3.5/lib/intprops.h.orig Sat Jan 25 19:35:59 2020 ++++ diffutils-3.5/lib/intprops.h Sat Jan 25 19:36:23 2020 +@@ -230,11 +230,11 @@ + (e.g., A and B) have the same type as MIN and MAX. Instead, they assume + that the result (e.g., A + B) has that type. */ + #if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL +-# define _GL_ADD_OVERFLOW(a, b, min, max) ++# define _GL_ADD_OVERFLOW(a, b, min, max) \ + __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0) +-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) ++# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ + __builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0) +-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) ++# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ + __builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0) + #else + # define _GL_ADD_OVERFLOW(a, b, min, max) \ |