From 526dece09265247edf75808b0d77f9cb397164e0 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 22 Sep 2018 23:50:25 -0400 Subject: [PATCH] Use system libuv. Signed-off-by: Elliott Sales de Andrade --- inst/COPYRIGHTS | 79 ------------------------------------------------- src/Makevars | 17 ++--------- 2 files changed, 3 insertions(+), 93 deletions(-) diff --git a/inst/COPYRIGHTS b/inst/COPYRIGHTS index 912533e3..ed998717 100644 --- a/inst/COPYRIGHTS +++ b/inst/COPYRIGHTS @@ -4,85 +4,6 @@ version 3. Included below is license and copyright information for externally maintained libraries used by fs. All other code in fs is copyright RStudio, Inc. -libuv is licensed for use as follows: - -==== -Copyright (c) 2015-present libuv project contributors. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -==== - -This license applies to parts of libuv originating from the -https://github.com/joyent/libuv repository: - -==== - -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. - -==== - -This license applies to all parts of libuv that are not externally -maintained libraries. - -The externally maintained libraries used by libuv are: - - - tree.h (from FreeBSD), copyright Niels Provos. Two clause BSD license. - - - inet_pton and inet_ntop implementations, contained in src/inet.c, are - copyright the Internet Systems Consortium, Inc., and licensed under the ISC - license. - - - stdint-msvc2008.h (from msinttypes), copyright Alexander Chemeris. Three - clause BSD license. - - - pthread-fixes.c, copyright Google Inc. and Sony Mobile Communications AB. - Three clause BSD license. - - - android-ifaddrs.h, android-ifaddrs.c, copyright Berkeley Software Design - Inc, Kenneth MacKay and Emergya (Cloud4all, FP7/2007-2013, grant agreement - n° 289016). Three clause BSD license. - -Additional copyrights in libuv which do not appear above: - -Copyright Fedor Indutny. All rights reserved. -Copyright (c) 2015 Saúl Ibarra Corretgé . -Copyright (c) 2013, Ben Noordhuis -Copyright StrongLoop, Inc. -Copyright (c) 2016, Kari Tristan Helgason - The files in src/bsd are from libbsd (https://cgit.freedesktop.org/libbsd) and use one of the following licenses: diff --git a/src/Makevars b/src/Makevars index c712bdc1..473d665e 100644 --- a/src/Makevars +++ b/src/Makevars @@ -2,7 +2,7 @@ UNAME := $(shell uname) LIBUV := libuv-1.44.2 -PKG_LIBS = ./$(LIBUV)/.libs/libuv.a -pthread +PKG_LIBS = $(shell pkgconf --libs libuv) SOURCES = $(wildcard *.cc unix/*.cc) OBJECTS = $(SOURCES:.cc=.o) @@ -21,24 +21,13 @@ ifeq ($(UNAME), Linux) OBJECTS += bsd/setmode.o bsd/strmode.o bsd/reallocarray.o endif -PKG_CPPFLAGS = -I./$(LIBUV)/include -I. -pthread +PKG_CPPFLAGS = $(shell pkgconf --cflags libuv) -I. all: $(SHLIB) -$(SHLIB): $(LIBUV)/.libs/libuv.a - -$(LIBUV)/Makefile: - (cd $(LIBUV) \ - && CC="$(CC)" CFLAGS="$(CFLAGS) $(CPPFLAGS) $(CPICFLAGS) $(C_VISIBILITY) -std=c99" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS)" ./configure --quiet) - -$(LIBUV)/.libs/libuv.a: $(LIBUV)/Makefile - $(MAKE) --directory=$(LIBUV) \ - HAVE_DTRACE=0 - -.PHONY: shlib-clean clean +.PHONY: clean # shlib-clean: clean clean: - $(MAKE) --directory=$(LIBUV) distclean rm -f $(OBJECTS) -- 2.25.4