diff options
-rwxr-xr-x | Ports/byacc/package.sh | 5 | ||||
-rw-r--r-- | Ports/byacc/patches/fix-autoconf.patch | 10 | ||||
-rw-r--r-- | Ports/byacc/patches/fix-main.patch | 11 |
3 files changed, 26 insertions, 0 deletions
diff --git a/Ports/byacc/package.sh b/Ports/byacc/package.sh new file mode 100755 index 0000000000..86cedfa383 --- /dev/null +++ b/Ports/byacc/package.sh @@ -0,0 +1,5 @@ +#!/bin/bash ../.port_include.sh +port=byacc +version=20191125 +files="https://invisible-mirror.net/archives/byacc/byacc-20191125.tgz byacc-20191125.tgz" +useconfigure=true diff --git a/Ports/byacc/patches/fix-autoconf.patch b/Ports/byacc/patches/fix-autoconf.patch new file mode 100644 index 0000000000..c9a00a47b8 --- /dev/null +++ b/Ports/byacc/patches/fix-autoconf.patch @@ -0,0 +1,10 @@ +--- byacc-20191125/config.sub.orig Thu Jan 23 16:57:22 2020 ++++ byacc-20191125/config.sub Thu Jan 23 16:57:33 2020 +@@ -1339,6 +1339,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* | esix* | aix* | cnk* | sunos | sunos[34]*\ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | kopensolaris* | plan9* \ diff --git a/Ports/byacc/patches/fix-main.patch b/Ports/byacc/patches/fix-main.patch new file mode 100644 index 0000000000..1c67bf79ed --- /dev/null +++ b/Ports/byacc/patches/fix-main.patch @@ -0,0 +1,11 @@ +--- byacc-20191125/main.c.orig Thu Jan 23 16:59:19 2020 ++++ byacc-20191125/main.c Thu Jan 23 16:59:29 2020 +@@ -7,6 +7,8 @@ + #include <stdlib.h> /* for _exit() */ + #endif + ++#include <getopt.h> ++ + #include "defs.h" + + #ifdef HAVE_MKSTEMP |