diff --git a/Makefile b/Makefile index 882beb6172f8f..7cebba25dec01 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,9 @@ endif julia-deps: | $(DIRS) $(build_datarootdir)/julia/base $(build_datarootdir)/julia/test $(build_defaultpkgdir) @$(MAKE) $(QUIET_MAKE) -C $(BUILDROOT)/deps +julia-stdlib: + @$(MAKE) $(QUIET_MAKE) -C $(BUILDROOT)/stdlib + julia-base: julia-deps $(build_sysconfdir)/julia/startup.jl $(build_man1dir)/julia.1 $(build_datarootdir)/julia/julia-config.jl @$(MAKE) $(QUIET_MAKE) -C $(BUILDROOT)/base @@ -74,10 +77,10 @@ julia-ui-release julia-ui-debug : julia-ui-% : julia-src-% julia-sysimg : julia-base julia-ui-$(JULIA_BUILD_MODE) @$(MAKE) $(QUIET_MAKE) -C $(BUILDROOT) $(build_private_libdir)/sys.ji JULIA_EXECUTABLE='$(JULIA_EXECUTABLE)' -julia-sysimg-release : julia-sysimg julia-ui-release +julia-sysimg-release : julia-stdlib julia-sysimg julia-ui-release @$(MAKE) $(QUIET_MAKE) -C $(BUILDROOT) $(build_private_libdir)/sys.$(SHLIB_EXT) -julia-sysimg-debug : julia-sysimg julia-ui-debug +julia-sysimg-debug : julia-stdlib julia-sysimg julia-ui-debug @$(MAKE) $(QUIET_MAKE) -C $(BUILDROOT) $(build_private_libdir)/sys-debug.$(SHLIB_EXT) julia-debug julia-release : julia-% : julia-ui-% julia-sysimg-% julia-symlink julia-libccalltest julia-base-cache @@ -543,6 +546,7 @@ clean: | $(CLEAN_TARGETS) @-$(MAKE) -C $(BUILDROOT)/src clean @-$(MAKE) -C $(BUILDROOT)/ui clean @-$(MAKE) -C $(BUILDROOT)/test clean + @-$(MAKE) -C $(BUILDROOT)/stdlib clean-pkg -rm -f $(BUILDROOT)/julia -rm -f $(BUILDROOT)/*.tar.gz -rm -f $(build_depsbindir)/stringreplace \ diff --git a/deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/md5 b/deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/md5 new file mode 100644 index 0000000000000..c7a02baf30c7b --- /dev/null +++ b/deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/md5 @@ -0,0 +1 @@ +9363513f58fc8145d2039809182f8488 diff --git a/deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/sha512 b/deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/sha512 new file mode 100644 index 0000000000000..146ae06d07841 --- /dev/null +++ b/deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/sha512 @@ -0,0 +1 @@ +aef65dc9a82665633a1d608722187d3e05193f433c8bd31599d08e13097bf52dbb56edf7b005c632df38f65e738f40ae04f304de7309762b069ffb181627f558 diff --git a/stdlib/.gitignore b/stdlib/.gitignore new file mode 100644 index 0000000000000..d8ce799be4bb9 --- /dev/null +++ b/stdlib/.gitignore @@ -0,0 +1,2 @@ +/srccache +/Pkg diff --git a/stdlib/Makefile b/stdlib/Makefile new file mode 100644 index 0000000000000..297a51f404629 --- /dev/null +++ b/stdlib/Makefile @@ -0,0 +1,24 @@ +default: Pkg +SRCDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +JULIAHOME := $(abspath $(SRCDIR)/..) +SRCCACHE := $(abspath $(SRCDIR)/srccache) +BUILDDIR := $(SRCCACHE) + +include $(JULIAHOME)/Make.inc +include $(JULIAHOME)/deps/tools/common.mk +include $(JULIAHOME)/deps/tools/git-external.mk + +PKG := https://github.com/JuliaLang/Pkg.jl +PKG_TAR_URL = https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/$1 +$(eval $(call git-external,Pkg,PKG,,,$(BUILDDIR))) + +extract-pkg: $(BUILDDIR)/$(PKG_SRC_DIR)/source-extracted +Pkg: $(BUILDDIR)/$(PKG_SRC_DIR)/source-extracted + rm -rf $@ + cp -r $(BUILDDIR)/$(PKG_SRC_DIR) $@ +get-pkg: Pkg +clean-pkg: + -rm -rf Pkg + -rm -rf $(BUILDDIR)/$(PKG_SRC_DIR) + +.PHONY: default extract-pkg Pkg get-pkg clean-pkg diff --git a/stdlib/Pkg.version b/stdlib/Pkg.version new file mode 100644 index 0000000000000..a7733e05b8262 --- /dev/null +++ b/stdlib/Pkg.version @@ -0,0 +1,2 @@ +PKG_BRANCH = master +PKG_SHA1 = ed5908796128c6227dcddefa9ec06a47066b8b01 diff --git a/test/choosetests.jl b/test/choosetests.jl index 1ce2591aff61b..57eeb67c9df72 100644 --- a/test/choosetests.jl +++ b/test/choosetests.jl @@ -3,7 +3,7 @@ using Random, Sockets const STDLIB_DIR = joinpath(Sys.BINDIR, "..", "share", "julia", "stdlib", "v$(VERSION.major).$(VERSION.minor)") -const STDLIBS = filter!(x -> isdir(joinpath(STDLIB_DIR, x)), readdir(STDLIB_DIR)) +const STDLIBS = filter!(x -> isfile(joinpath(STDLIB_DIR, x, "src", "$(x).jl")), readdir(STDLIB_DIR)) """