Skip to content

Commit 6926d0e

Browse files
committed
fixup! [DRAFT] update libuv to v2-1.48.0
1 parent daa1e76 commit 6926d0e

File tree

10 files changed

+74
-26
lines changed

10 files changed

+74
-26
lines changed

Make.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ endif
13861386
ifeq ($(OS), WINNT)
13871387
HAVE_SSP := 1
13881388
OSLIBS += -Wl,--export-all-symbols -Wl,--version-script=$(BUILDROOT)/src/julia.expmap \
1389-
$(NO_WHOLE_ARCHIVE) -lpsapi -lkernel32 -lws2_32 -liphlpapi -lwinmm -ldbghelp -luserenv -lsecur32 -latomic -lole32 -luuid
1389+
$(NO_WHOLE_ARCHIVE) -lpsapi -lkernel32 -lws2_32 -liphlpapi -lwinmm -ldbghelp -luserenv -lsecur32 -latomic -lole32
13901390
JLDFLAGS += -Wl,--stack,8388608
13911391
ifeq ($(ARCH),i686)
13921392
JLDFLAGS += -Wl,--large-address-aware

deps/checksums/libuv

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
LibUV.v2.0.1+15.aarch64-apple-darwin.tar.gz/md5/f12ee08b8d5721bd88b651ac573c59ed
2+
LibUV.v2.0.1+15.aarch64-apple-darwin.tar.gz/sha512/b3c53e04624d9c60e664db2eaaf3add696f95c52e55db0c577547f7bf7e045ce30cffa0e38c3451f483dcdb7ddcac1b7f43b694dfadb37282773ce416af1030a
3+
LibUV.v2.0.1+15.aarch64-linux-gnu.tar.gz/md5/8cb9f4d6c6a4013fa9ed9ae120058275
4+
LibUV.v2.0.1+15.aarch64-linux-gnu.tar.gz/sha512/d4213ee47ebdcab4cc4719478608ffa461a5543a16656c2881587364c8ed1b39a2f418d5c3c6a04d7e6dd3df349f0afa72cd1df0e06db6146512356b37637024
5+
LibUV.v2.0.1+15.aarch64-linux-musl.tar.gz/md5/e23a0d7162fc3f09f0ea92d24cba3f4d
6+
LibUV.v2.0.1+15.aarch64-linux-musl.tar.gz/sha512/f4a13eee72575092ab673777a53d43ce999a7a8bf847daa0a86b39bbfd3f6c1575f105a0bb629766268921ff94f10d354a0e53d32623f6ad35fca44e7bac25f8
7+
LibUV.v2.0.1+15.armv6l-linux-gnueabihf.tar.gz/md5/70ed0616cd3737a357b7571ab648d239
8+
LibUV.v2.0.1+15.armv6l-linux-gnueabihf.tar.gz/sha512/25a4b8a90b7bb62e31c1c2bb1d7e137050de26f311daa9f77be932ab3d9a2b92c82ce82ed37cc74a2b1cd5a60bd0dc412e92d31013d36ad35af2d4f376fbc0b0
9+
LibUV.v2.0.1+15.armv6l-linux-musleabihf.tar.gz/md5/e4320c51c8904a59c105f7b63d086c79
10+
LibUV.v2.0.1+15.armv6l-linux-musleabihf.tar.gz/sha512/bbc39d800277a66298c56849c1131a6f1958a2c8b2465b59527965a1bd3f36a4c87c1d7ad4be59ec0f4ca8f94ec1804a619eb963d956b77e645e0e00effc6613
11+
LibUV.v2.0.1+15.armv7l-linux-gnueabihf.tar.gz/md5/d5436552dc177fc3fd0cf4f575cc03b4
12+
LibUV.v2.0.1+15.armv7l-linux-gnueabihf.tar.gz/sha512/8d3722290151ecf65f4e3fe3440828492a7b115810b87c8711c5592f4dea69727e516228a5a1bdac430c74b288f12de390daf0a9408274aa27cdd69efc81cfee
13+
LibUV.v2.0.1+15.armv7l-linux-musleabihf.tar.gz/md5/67e1ba03ddf2d2bdd79fef25a5976350
14+
LibUV.v2.0.1+15.armv7l-linux-musleabihf.tar.gz/sha512/535565657b5714da0db5c622b65b261a77f21f407b1166eee99f35ba3bb9c6fab4c7d1f3db70528767cef7c66c856c5101b01423be05efb9219ec4c76df0be6a
15+
LibUV.v2.0.1+15.i686-linux-gnu.tar.gz/md5/ba1432ecd75e6a43ff197d51ba76446c
16+
LibUV.v2.0.1+15.i686-linux-gnu.tar.gz/sha512/dc8940284d4ba05098037fcf4b3bada199878794ef34ad09d8992ef58e4c829b00a3fcca29c4f65b49edcab4274092232ff5d7619b3535333125043f89503cfc
17+
LibUV.v2.0.1+15.i686-linux-musl.tar.gz/md5/237080cf5d1286a3d2f35d134a285d28
18+
LibUV.v2.0.1+15.i686-linux-musl.tar.gz/sha512/834f16a16cf6b765dfd094037c8a45ccdedc2eb9e45f527c6721eb0f60f4e56dc4f9b90a2a35e3ed10da4a937d8555e97034e0a29d733cac5352061ebe286799
19+
LibUV.v2.0.1+15.i686-w64-mingw32.tar.gz/md5/8a5261a6ce4200d272b5eda4fe9ecb31
20+
LibUV.v2.0.1+15.i686-w64-mingw32.tar.gz/sha512/b372b9368a9ac92775a8d6ee39b492905dc5f58f16d7edf792e0c2ffbd4507ede79139a24fe852dfa26068d0f076a4abf3c3b868a8a057b23fdbad80999d315f
21+
LibUV.v2.0.1+15.powerpc64le-linux-gnu.tar.gz/md5/53db7b763af204477ce8f0bfae0ce15c
22+
LibUV.v2.0.1+15.powerpc64le-linux-gnu.tar.gz/sha512/bbfe2518d4dc84fe73b7d3f3bcaf5aeef0db0d284c0e205e3e3670b8ce6f3ea593a0e52d125fd9a79cd098dba0d35f151cb46469fa25dfeef62ebcc966f94d4f
23+
LibUV.v2.0.1+15.x86_64-apple-darwin.tar.gz/md5/b4699192c098564edc5589e90c47324e
24+
LibUV.v2.0.1+15.x86_64-apple-darwin.tar.gz/sha512/2505e4060712143d3213747d4276c0b99dec78579d2ab0b71c5d7edf15ae80e0178138a11470c976d97de14e44b153dcb00c08c864523d7ee0ead8e48cf15d14
25+
LibUV.v2.0.1+15.x86_64-linux-gnu.tar.gz/md5/f5515c50106a0748b9a1986c912a00f3
26+
LibUV.v2.0.1+15.x86_64-linux-gnu.tar.gz/sha512/5822396039e14a5d919f2612559a8d62a925c4319e66eb05ed20faed754318762f5653851684701cd4ddb1edf10bfe25d252c3d9cd84228e498e825ba61146b1
27+
LibUV.v2.0.1+15.x86_64-linux-musl.tar.gz/md5/1962e6f21080e874d2ca0275c5b569b2
28+
LibUV.v2.0.1+15.x86_64-linux-musl.tar.gz/sha512/4702e13633d77a6c0aeb1e7cd252471a779177e20c68485130f420cc4878c8f7de7f0f51730008ba9dc0f275875a5947629d39aff200691e26f31d42e388d53d
29+
LibUV.v2.0.1+15.x86_64-unknown-freebsd.tar.gz/md5/928a789c3cd3b4cefcc1cf13f5f179ac
30+
LibUV.v2.0.1+15.x86_64-unknown-freebsd.tar.gz/sha512/ee58667b19fdf7ec0218b4645b3f5bed2e9fc01cc29eab8473ee02aaa044f94a48eb220c6427200aaf56eacf52d0f72156712d17017cfecbc25d3c1b71a4bd2f
31+
LibUV.v2.0.1+15.x86_64-w64-mingw32.tar.gz/md5/d3b84729ee9d5a6e6a1e29357e25cced
32+
LibUV.v2.0.1+15.x86_64-w64-mingw32.tar.gz/sha512/43ca5999d8e8ff820722b1a548bd4e277e95c739c3363ed6159d080dd06842316f5370e8e4f4a886bf76010f4aed2bbf01f6091845b0e84b75f709277c561649
33+
libuv-afa1c67fa496eb49ade1e520f76fd018a1409eaa.tar.gz/md5/3863ccd5a51f85cf76679070c99be6cd
34+
libuv-afa1c67fa496eb49ade1e520f76fd018a1409eaa.tar.gz/sha512/bf4c705e05e730139b62de799331653eea2767898d654b8890ca2623db3adb9a1efcfcfab38af22e8ac44c67a9c5c018f1f7847a3703bee5f05657169a67d817

deps/checksums/libuv-654853c2a70e03acf1ff9dcac09c498a257d292a.tar.gz/md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/checksums/libuv-654853c2a70e03acf1ff9dcac09c498a257d292a.tar.gz/sha512

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/libuv.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
## LIBUV ##
2-
override USE_BINARYBUILDER_LIBUV=0
32
ifneq ($(USE_BINARYBUILDER_LIBUV),1)
43
LIBUV_GIT_URL:=https://github.com/JuliaLang/libuv.git
54
LIBUV_TAR_URL=https://api.github.com/repos/JuliaLang/libuv/tarball/$1

deps/libuv.version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ LIBUV_JLL_NAME := LibUV
33

44
## source build
55
LIBUV_VER := 2
6-
LIBUV_BRANCH=julia-uv2-1.48.0-dev
7-
LIBUV_SHA1=654853c2a70e03acf1ff9dcac09c498a257d292a
6+
LIBUV_BRANCH=julia-uv2-1.48.0
7+
LIBUV_SHA1=afa1c67fa496eb49ade1e520f76fd018a1409eaa

src/jl_uv.c

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,24 @@ static void walk_print_cb(uv_handle_t *h, void *arg)
3939
const char *type = uv_handle_type_name(h->type);
4040
if (!type)
4141
type = "<unknown>";
42+
size_t resource_id; // fits an int or pid_t on Unix, HANDLE or PID on Windows
4243
uv_os_fd_t fd;
4344
if (h->type == UV_PROCESS)
44-
fd = uv_process_get_pid((uv_process_t*)h);
45-
else if (uv_fileno(h, &fd))
46-
fd = (uv_os_fd_t)-1;
45+
resource_id = (size_t)uv_process_get_pid((uv_process_t*)h);
46+
else if (uv_fileno(h, &fd) == 0)
47+
resource_id = (size_t)fd;
48+
else
49+
resource_id = -1;
4750
const char *pad = " "; // 16 spaces
48-
int npad = fd == -1 ? 0 : snprintf(NULL, 0, "%zd", (size_t)fd);
51+
int npad = resource_id == -1 ? 0 : snprintf(NULL, 0, "%zd", resource_id);
4952
if (npad < 0)
5053
npad = 0;
5154
npad += strlen(type);
5255
pad += npad < strlen(pad) ? npad : strlen(pad);
53-
if (fd == -1)
56+
if (resource_id == -1)
5457
jl_safe_printf(" %s %s%p->%p\n", type, pad, (void*)h, (void*)h->data);
5558
else
56-
jl_safe_printf(" %s[%zd] %s%p->%p\n", type, (size_t)fd, pad, (void*)h, (void*)h->data);
59+
jl_safe_printf(" %s[%zd] %s%p->%p\n", type, resource_id, pad, (void*)h, (void*)h->data);
5760
}
5861

5962
static void wait_empty_func(uv_timer_t *t)
@@ -1129,31 +1132,39 @@ static inline int ishexchar(char c)
11291132

11301133
JL_DLLEXPORT int jl_ispty(uv_pipe_t *pipe)
11311134
{
1132-
if (pipe->type != UV_NAMED_PIPE) return 0;
1135+
char namebuf[0];
11331136
size_t len = 0;
1134-
if (uv_pipe_getpeername(pipe, NULL, &len) != UV_ENOBUFS) return 0;
1137+
if (pipe->type != UV_NAMED_PIPE)
1138+
return 0;
1139+
if (uv_pipe_getpeername(pipe, namebuf, &len) != UV_ENOBUFS)
1140+
return 0;
11351141
char *name = (char*)alloca(len + 1);
1136-
if (uv_pipe_getpeername(pipe, name, &len)) return 0;
1142+
if (uv_pipe_getpeername(pipe, name, &len))
1143+
return 0;
11371144
name[len] = '\0';
11381145
// return true if name matches regex:
11391146
// ^\\\\?\\pipe\\(msys|cygwin)-[0-9a-z]{16}-[pt]ty[1-9][0-9]*-
11401147
//jl_printf(JL_STDERR,"pipe_name: %s\n", name);
11411148
int n = 0;
1142-
if (!strncmp(name,"\\\\?\\pipe\\msys-",14))
1149+
if (!strncmp(name, "\\\\?\\pipe\\msys-", 14))
11431150
n = 14;
1144-
else if (!strncmp(name,"\\\\?\\pipe\\cygwin-",16))
1151+
else if (!strncmp(name, "\\\\?\\pipe\\cygwin-", 16))
11451152
n = 16;
11461153
else
11471154
return 0;
11481155
//jl_printf(JL_STDERR,"prefix pass\n");
11491156
name += n;
11501157
for (int n = 0; n < 16; n++)
1151-
if (!ishexchar(*name++)) return 0;
1158+
if (!ishexchar(*name++))
1159+
return 0;
11521160
//jl_printf(JL_STDERR,"hex pass\n");
1153-
if ((*name++)!='-') return 0;
1154-
if (*name != 'p' && *name != 't') return 0;
1161+
if ((*name++)!='-')
1162+
return 0;
1163+
if (*name != 'p' && *name != 't')
1164+
return 0;
11551165
name++;
1156-
if (*name++ != 't' || *name++ != 'y') return 0;
1166+
if (*name++ != 't' || *name++ != 'y')
1167+
return 0;
11571168
//jl_printf(JL_STDERR,"tty pass\n");
11581169
return 1;
11591170
}

stdlib/FileWatching/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ test2_12992()
161161
#######################################################################
162162
# This section tests file watchers. #
163163
#######################################################################
164-
F_GETPATH = Sys.islinux() || Sys.iswindows() || Sys.isapple() # platforms where F_GETPATH is available
164+
F_GETPATH = Sys.islinux() || Sys.iswindows() || Sys.isapple() || Sys.isfreebsd() # platforms where F_GETPATH is available
165165
F_PATH = F_GETPATH ? "afile.txt" : ""
166166
dir = mktempdir()
167167
file = joinpath(dir, "afile.txt")

stdlib/LibUV_jll/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LibUV_jll"
22
uuid = "183b4373-6708-53ba-ad28-60e28bb38547"
3-
version = "2.0.1+14"
3+
version = "2.0.1+15"
44

55
[deps]
66
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

stdlib/REPL/src/precompile.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ module Precompile
44
# Can't use this during incremental: `@eval Module() begin``
55

66
import ..REPL
7+
# Prepare this staging area with all the loaded packages available
8+
for (_pkgid, _mod) in Base.loaded_modules
9+
if !(_pkgid.name in ("Main", "Core", "Base", "REPL"))
10+
eval(:(const $(Symbol(_mod)) = $_mod))
11+
end
12+
end
713

8-
# Ugly hack for our cache file to not have a dependency edge on FakePTYs.
14+
# Ugly hack for our cache file to not have a dependency edge on the FakePTYs file.
915
Base._track_dependencies[] = false
1016
try
1117
Base.include(@__MODULE__, joinpath(Sys.BINDIR, "..", "share", "julia", "test", "testhelpers", "FakePTYs.jl"))
@@ -172,10 +178,10 @@ generate_precompile_statements() = try
172178
end
173179
close(precompile_copy)
174180
wait(buffer_reader)
175-
close(statements_step)
176181
return :ok
177182
end
178183
!PARALLEL_PRECOMPILATION && wait(step)
184+
bind(statements_step, step)
179185

180186
# Make statements unique
181187
statements = Set{String}()
@@ -205,7 +211,7 @@ generate_precompile_statements() = try
205211
end
206212
end
207213

208-
fetch(step) == :ok || throw("Collecting precompiles failed.")
214+
fetch(step) == :ok || throw("Collecting precompiles failed: $(c.excp)")
209215
return nothing
210216
finally
211217
GC.gc(true); GC.gc(false); # reduce memory footprint

0 commit comments

Comments
 (0)