summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-03-01 04:54:57 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-03-01 04:54:57 (GMT)
commit50ba42cce4f27263d90832a83563d39a983171bd (patch)
treec458e56afa2b289d5c4c7c70c864c6238fc89b9c /plugins
parentf217236aff07e58e4b04c1eadd2f7dd12bafd174 (diff)
downloadmxe-50ba42cce4f27263d90832a83563d39a983171bd.zip
mxe-50ba42cce4f27263d90832a83563d39a983171bd.tar.gz
mxe-50ba42cce4f27263d90832a83563d39a983171bd.tar.bz2
bison flex: update and build on darwin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/native/bison-1-fixes.patch30
-rw-r--r--plugins/native/bison.mk15
l---------plugins/native/darwin/bison-1-fixes.patch1
l---------plugins/native/darwin/bison.mk1
l---------plugins/native/darwin/flex.mk1
-rw-r--r--plugins/native/flex.mk14
6 files changed, 46 insertions, 16 deletions
diff --git a/plugins/native/bison-1-fixes.patch b/plugins/native/bison-1-fixes.patch
new file mode 100644
index 0000000..e8bb66e
--- /dev/null
+++ b/plugins/native/bison-1-fixes.patch
@@ -0,0 +1,30 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore <tonyt@logyst.com>
+Date: Thu, 1 Mar 2018 15:42:14 +1100
+Subject: [PATCH 1/1] fix for crash on High Sierra due to usage of %n in
+ dynamic format strings
+
+taken from:
+https://github.com/macports/macports-ports/commit/14451f57e899ba3bd8672830944209cf0bbb87a7
+
+With format string strictness, High Sierra also enforces that %n isn't used
+in dynamic format strings, but we should just disable its use on darwin in
+general.
+
+diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c
+index 1111111..2222222 100644
+--- a/lib/vasnprintf.c
++++ b/lib/vasnprintf.c
+@@ -4858,7 +4858,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
+ #endif
+ *fbp = dp->conversion;
+ #if USE_SNPRINTF
+-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
++# if !defined(__APPLE__) && !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
+ fbp[1] = '%';
+ fbp[2] = 'n';
+ fbp[3] = '\0';
diff --git a/plugins/native/bison.mk b/plugins/native/bison.mk
index 50d2bfb..498c102 100644
--- a/plugins/native/bison.mk
+++ b/plugins/native/bison.mk
@@ -1,9 +1,9 @@
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := bison
-$(PKG)_IGNORE := 3%
-$(PKG)_VERSION := 2.7.1
-$(PKG)_CHECKSUM := b409adcbf245baadb68d2f66accf6fdca5e282cafec1b865f4b5e963ba8ea7fb
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 3.0.4
+$(PKG)_CHECKSUM := a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1
$(PKG)_SUBDIR := bison-$($(PKG)_VERSION)
$(PKG)_FILE := bison-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://ftp.gnu.org/gnu/bison/$($(PKG)_FILE)
@@ -13,6 +13,9 @@ $(PKG)_OWNER := https://github.com/tonytheodore
$(PKG)_TARGETS := $(BUILD)
$(PKG)_DEPS := flex
+# recursive variable so always use literal instead of $(PKG)
+MXE_REQS_PKGS += $(BUILD)~bison
+
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/bison/?C=M;O=D' | \
$(SED) -n 's,.*<a href="bison-\([0-9][^"]*\)\.tar.*,\1,p' | \
@@ -21,9 +24,5 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD_$(BUILD)
- mkdir '$(1).build'
- cd '$(1).build' && '$(1)/configure' \
- --prefix='$(PREFIX)/$(TARGET)'
- $(MAKE) -C '$(1).build' -j '$(JOBS)'
- $(MAKE) -C '$(1).build' -j 1 install
+ $(AUTOTOOLS_BUILD)
endef
diff --git a/plugins/native/darwin/bison-1-fixes.patch b/plugins/native/darwin/bison-1-fixes.patch
new file mode 120000
index 0000000..1928760
--- /dev/null
+++ b/plugins/native/darwin/bison-1-fixes.patch
@@ -0,0 +1 @@
+../bison-1-fixes.patch \ No newline at end of file
diff --git a/plugins/native/darwin/bison.mk b/plugins/native/darwin/bison.mk
new file mode 120000
index 0000000..ac5cc03
--- /dev/null
+++ b/plugins/native/darwin/bison.mk
@@ -0,0 +1 @@
+../bison.mk \ No newline at end of file
diff --git a/plugins/native/darwin/flex.mk b/plugins/native/darwin/flex.mk
new file mode 120000
index 0000000..4671717
--- /dev/null
+++ b/plugins/native/darwin/flex.mk
@@ -0,0 +1 @@
+../flex.mk \ No newline at end of file
diff --git a/plugins/native/flex.mk b/plugins/native/flex.mk
index e5bcbfb..9c75523 100644
--- a/plugins/native/flex.mk
+++ b/plugins/native/flex.mk
@@ -2,8 +2,8 @@
PKG := flex
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 2.5.39
-$(PKG)_CHECKSUM := add2b55f3bc38cb512b48fad7d72f43b11ef244487ff25fc00aabec1e32b617f
+$(PKG)_VERSION := 2.6.0
+$(PKG)_CHECKSUM := 24e611ef5a4703a191012f80c1027dc9d12555183ce0ecd46f3636e587e9b8e9
$(PKG)_SUBDIR := flex-$($(PKG)_VERSION)
$(PKG)_FILE := flex-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/flex/$($(PKG)_FILE)
@@ -12,6 +12,9 @@ $(PKG)_OWNER := https://github.com/tonytheodore
$(PKG)_TARGETS := $(BUILD)
$(PKG)_DEPS :=
+# recursive variable so always use literal instead of $(PKG)
+MXE_REQS_PKGS += $(BUILD)~flex
+
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://sourceforge.net/projects/flex/files/' | \
grep -i 'flex/files/' | \
@@ -20,10 +23,5 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD_$(BUILD)
- mkdir '$(1).build'
- cd '$(1).build' && '$(1)/configure' \
- --prefix='$(PREFIX)/$(TARGET)' \
- --disable-shared
- $(MAKE) -C '$(1).build' -j '$(JOBS)'
- $(MAKE) -C '$(1).build' -j 1 install
+ $(AUTOTOOLS_BUILD)
endef