-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
214 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include("../common.jl") | ||
|
||
name, version, sources, script, platforms, products, dependencies = configure(v"1.4.2") | ||
|
||
# Build the tarballs. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"7", lock_microarchitecture=false) | ||
|
40 changes: 40 additions & 0 deletions
40
L/libjulia/libjulia@1.4/bundled/patches/0001-flisp-system.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 30c32040d81ba909242b6e5786772efa94e8120f Mon Sep 17 00:00:00 2001 | ||
From: Valentin Churavy <v.churavy@gmail.com> | ||
Date: Wed, 23 Sep 2020 16:48:49 -0400 | ||
Subject: [PATCH] Allow flips to be built against system UTF8PROC | ||
|
||
--- | ||
src/flisp/Makefile | 12 ++++++++++-- | ||
1 file changed, 10 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/flisp/Makefile b/src/flisp/Makefile | ||
index 2158e2a5b2..42c4e11ed4 100644 | ||
--- a/src/flisp/Makefile | ||
+++ b/src/flisp/Makefile | ||
@@ -32,13 +32,21 @@ OBJS := $(SRCS:%.c=$(BUILDDIR)/%.o) | ||
DOBJS := $(SRCS:%.c=$(BUILDDIR)/%.dbg.obj) | ||
LLT_release := $(LLT_BUILDDIR)/libsupport.a | ||
LLT_debug := $(LLT_BUILDDIR)/libsupport-debug.a | ||
-LIBFILES_release := $(LLT_release) $(LIBUV) $(LIBUTF8PROC) | ||
-LIBFILES_debug := $(LLT_debug) $(LIBUV) $(LIBUTF8PROC) | ||
+LIBFILES_release := $(LLT_release) $(LIBUV) | ||
+LIBFILES_debug := $(LLT_debug) $(LIBUV) | ||
LIBS := | ||
ifneq ($(OS),WINNT) | ||
LIBS += -lpthread | ||
endif | ||
|
||
+ifeq ($(USE_SYSTEM_UTF8PROC),0) | ||
+LIBFILES_release += $(LIBUTF8PROC) | ||
+LIBFILES_debug += $(LIBUTF8PROC) | ||
+else | ||
+LIBS += $(LIBUTF8PROC) | ||
+endif | ||
+ | ||
+ | ||
FLAGS := -I$(LLTSRCDIR) $(JCFLAGS) $(HFILEDIRS:%=-I%) \ | ||
-I$(LIBUV_INC) -I$(UTF8PROC_INC) -I$(build_includedir) $(LIBDIRS:%=-L%) \ | ||
-DLIBRARY_EXPORTS -DUTF8PROC_EXPORTS | ||
-- | ||
2.28.0 | ||
|
25 changes: 25 additions & 0 deletions
25
L/libjulia/libjulia@1.4/bundled/patches/0002-libuv-system.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 85eb6fe1d4dc2d98974c5d3e78b735e887b7b439 Mon Sep 17 00:00:00 2001 | ||
From: Valentin Churavy <v.churavy@gmail.com> | ||
Date: Wed, 23 Sep 2020 16:59:34 -0400 | ||
Subject: [PATCH] Use universal LIBUV_INC instead of build_includedir | ||
|
||
--- | ||
base/Makefile | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/base/Makefile b/base/Makefile | ||
index efcf835de7..13bb3ee53d 100644 | ||
--- a/base/Makefile | ||
+++ b/base/Makefile | ||
@@ -42,7 +42,7 @@ $(BUILDDIR)/errno_h.jl: | ||
$(BUILDDIR)/file_constants.jl: $(SRCDIR)/../src/file_constants.h | ||
@$(call PRINT_PERL, $(CPP_STDOUT) -DJULIA $< | perl -nle 'print "$$1 0o$$2" if /^(\s*const\s+[A-z_]+\s+=)\s+(0[0-9]*)\s*$$/; print "$$1" if /^\s*(const\s+[A-z_]+\s+=\s+([1-9]|0x)[0-9A-z]*)\s*$$/' > $@) | ||
|
||
-$(BUILDDIR)/uv_constants.jl: $(SRCDIR)/../src/uv_constants.h $(build_includedir)/uv/errno.h | ||
+$(BUILDDIR)/uv_constants.jl: $(SRCDIR)/../src/uv_constants.h $(LIBUV_INC)/uv/errno.h | ||
@$(call PRINT_PERL, $(CPP_STDOUT) "-I$(LIBUV_INC)" -DJULIA $< | tail -n 16 > $@) | ||
|
||
$(BUILDDIR)/build_h.jl.phony: | ||
-- | ||
2.28.0 | ||
|
31 changes: 31 additions & 0 deletions
31
L/libjulia/libjulia@1.4/bundled/patches/0003-flisp.boot.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 242ff9a084fe790ac589c55045efc1d5c5f95f4b Mon Sep 17 00:00:00 2001 | ||
From: Valentin Churavy <v.churavy@gmail.com> | ||
Date: Wed, 23 Sep 2020 18:28:01 -0400 | ||
Subject: [PATCH] stage flisp.boot into host | ||
|
||
--- | ||
src/flisp/Makefile | 6 +++++- | ||
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/flisp/Makefile b/src/flisp/Makefile | ||
index 42c4e11ed4..50566a0258 100644 | ||
--- a/src/flisp/Makefile | ||
+++ b/src/flisp/Makefile | ||
@@ -115,9 +115,13 @@ $(BUILDDIR)/host/Makefile: | ||
@echo 'BUILDING_HOST_TOOLS=1' >> $@ | ||
@echo 'include $(SRCDIR)/Makefile' >> $@ | ||
|
||
-$(BUILDDIR)/host/$(EXENAME): $(BUILDDIR)/host/Makefile | ||
+$(BUILDDIR)/host/$(EXENAME): $(BUILDDIR)/host/Makefile | ${BUILDDIR}/host/flisp.boot | ||
make -C $(BUILDDIR)/host $(EXENAME) | ||
|
||
+ | ||
+$(BUILDDIR)/host/flisp.boot: $(SRCDIR)/flisp.boot | $(BUILDDIR)/host/Makefile | ||
+ cp $< $@ | ||
+ | ||
ifneq ($(BUILDDIR),.) | ||
ifneq ($(BUILDDIR),$(SRCDIR)) | ||
$(BUILDDIR)/flisp.boot: $(SRCDIR)/flisp.boot | $(BUILDDIR) | ||
-- | ||
2.28.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From f0dd7818f04ea3d68d534f460b69a6c3b4afbfd2 Mon Sep 17 00:00:00 2001 | ||
From: Julian Samaroo <jpsamaroo@jpsamaroo.me> | ||
Date: Mon, 18 May 2020 20:58:07 -0500 | ||
Subject: [PATCH] Make processor_arm.cpp compile on musl (#34777) | ||
|
||
--- | ||
src/processor_arm.cpp | 14 ++++++++++---- | ||
1 file changed, 10 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/src/processor_arm.cpp b/src/processor_arm.cpp | ||
index 7b5fe0003bb5..96ca1789f593 100644 | ||
--- a/src/processor_arm.cpp | ||
+++ b/src/processor_arm.cpp | ||
@@ -10,10 +10,16 @@ | ||
#include <fstream> | ||
#include <algorithm> | ||
|
||
-#if defined(_CPU_AARCH64_) || __GLIBC_PREREQ(2, 16) | ||
+// This nesting is required to allow compilation on musl | ||
+#define USE_DYN_GETAUXVAL | ||
+#if defined(_CPU_AARCH64_) | ||
+# undef USE_DYN_GETAUXVAL | ||
# include <sys/auxv.h> | ||
-#else | ||
-# define DYN_GETAUXVAL | ||
+#elif defined(__GLIBC_PREREQ) | ||
+# if __GLIBC_PREREQ(2, 16) | ||
+# undef USE_DYN_GETAUXVAL | ||
+# include <sys/auxv.h> | ||
+# endif | ||
#endif | ||
|
||
namespace ARM { | ||
@@ -498,7 +504,7 @@ static constexpr size_t ncpu_names = sizeof(cpus) / sizeof(cpus[0]); | ||
# define AT_HWCAP2 26 | ||
#endif | ||
|
||
-#if defined(DYN_GETAUXVAL) | ||
+#if defined(USE_DYN_GETAUXVAL) | ||
static unsigned long getauxval_procfs(unsigned long type) | ||
{ | ||
int fd = open("/proc/self/auxv", O_RDONLY); |
27 changes: 27 additions & 0 deletions
27
L/libjulia/libjulia@1.4/bundled/patches/0005-BUILD_EXE-for-flisp.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 956cf8fa2f07f43ffb0a91bd23741e83838f9e7a Mon Sep 17 00:00:00 2001 | ||
From: Valentin Churavy <v.churavy@gmail.com> | ||
Date: Thu, 24 Sep 2020 09:41:49 -0400 | ||
Subject: [PATCH] use BUILD_EXE for flisp | ||
|
||
--- | ||
src/Makefile | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/Makefile b/src/Makefile | ||
index 578677b3e1..2852b0ac86 100644 | ||
--- a/src/Makefile | ||
+++ b/src/Makefile | ||
@@ -139,8 +139,8 @@ FLISPDIR := $(BUILDDIR)/flisp/host | ||
else | ||
FLISPDIR := $(BUILDDIR)/flisp | ||
endif | ||
-FLISP_EXECUTABLE_debug := $(FLISPDIR)/flisp-debug$(EXE) | ||
-FLISP_EXECUTABLE_release := $(FLISPDIR)/flisp$(EXE) | ||
+FLISP_EXECUTABLE_debug := $(FLISPDIR)/flisp-debug$(BUILD_EXE) | ||
+FLISP_EXECUTABLE_release := $(FLISPDIR)/flisp$(BUILD_EXE) | ||
ifeq ($(OS),WINNT) | ||
FLISP_EXECUTABLE := $(FLISP_EXECUTABLE_release) | ||
else | ||
-- | ||
2.28.0 | ||
|