diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-20 21:26:34 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-20 21:26:34 -0500 |
commit | 565ef6a25d7534ee88b566dd4e201b52cb8b9922 (patch) | |
tree | af8e6616e7c0c6085cbb4f61897869e5bc6a0bb0 /system/libuv | |
parent | a29099bf872d480dafbdb2232afddb7d1b3b50cd (diff) | |
download | packages-565ef6a25d7534ee88b566dd4e201b52cb8b9922.tar.gz packages-565ef6a25d7534ee88b566dd4e201b52cb8b9922.tar.bz2 packages-565ef6a25d7534ee88b566dd4e201b52cb8b9922.tar.xz packages-565ef6a25d7534ee88b566dd4e201b52cb8b9922.zip |
system/libuv: pull in for CMake
Diffstat (limited to 'system/libuv')
-rw-r--r-- | system/libuv/APKBUILD | 50 | ||||
-rw-r--r-- | system/libuv/disable-setuid-test.patch | 46 |
2 files changed, 96 insertions, 0 deletions
diff --git a/system/libuv/APKBUILD b/system/libuv/APKBUILD new file mode 100644 index 000000000..3ccba6e53 --- /dev/null +++ b/system/libuv/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Jose-Luis Rivas <ghostbar@riseup.net> +# Conttributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=libuv +pkgver=1.19.1 +pkgrel=0 +pkgdesc="Cross-platform asychronous I/O" +url="http://libuv.org" +arch="all" +license="MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC" +makedepends="automake autoconf libtool linux-headers" +subpackages="$pkgname-dev" +source="https://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz + disable-setuid-test.patch + " +builddir="$srcdir/$pkgname-v$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + sh autogen.sh +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + install -Dm644 LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +sha512sums="516b17afe5ea12f5c53abe68ea5fac9853f20c89fff754c054c041bb9d88a55e5a691842e509348617444f6080311c963707dd272c91c7ff7baf2c4d516b2d7f libuv-v1.19.1.tar.gz +478d25c8905cd393b9ced0f1b16e70794a7ef20fb9eb212fd74e50beca3f5a33a6a5267616abecf470426ed3d00efec51df468745ff43c0de05c0ad8234f1eb3 disable-setuid-test.patch" diff --git a/system/libuv/disable-setuid-test.patch b/system/libuv/disable-setuid-test.patch new file mode 100644 index 000000000..3c6e01611 --- /dev/null +++ b/system/libuv/disable-setuid-test.patch @@ -0,0 +1,46 @@ +diff --git a/test/test-list.h b/test/test-list.h +index 3a1e82a..dd25e69 100644 +--- a/test/test-list.h ++++ b/test/test-list.h +@@ -240,8 +240,10 @@ TEST_DECLARE (spawn_detached) + TEST_DECLARE (spawn_and_kill_with_std) + TEST_DECLARE (spawn_and_ping) + TEST_DECLARE (spawn_preserve_env) ++#if 0 + TEST_DECLARE (spawn_setuid_fails) + TEST_DECLARE (spawn_setgid_fails) ++#endif + TEST_DECLARE (spawn_stdout_to_file) + TEST_DECLARE (spawn_stdout_and_stderr_to_file) + TEST_DECLARE (spawn_stdout_and_stderr_to_file2) +@@ -351,7 +353,9 @@ TEST_DECLARE (win32_signum_number) + TEST_DECLARE (emfile) + TEST_DECLARE (close_fd) + TEST_DECLARE (spawn_fs_open) ++#if 0 + TEST_DECLARE (spawn_setuid_setgid) ++#endif + TEST_DECLARE (we_get_signal) + TEST_DECLARE (we_get_signals) + TEST_DECLARE (signal_multiple_loops) +@@ -669,8 +673,10 @@ TASK_LIST_START + TEST_ENTRY (spawn_and_kill_with_std) + TEST_ENTRY (spawn_and_ping) + TEST_ENTRY (spawn_preserve_env) ++#if 0 + TEST_ENTRY (spawn_setuid_fails) + TEST_ENTRY (spawn_setgid_fails) ++#endif + TEST_ENTRY (spawn_stdout_to_file) + TEST_ENTRY (spawn_stdout_and_stderr_to_file) + TEST_ENTRY (spawn_stdout_and_stderr_to_file2) +@@ -701,7 +707,9 @@ TASK_LIST_START + TEST_ENTRY (emfile) + TEST_ENTRY (close_fd) + TEST_ENTRY (spawn_fs_open) ++#if 0 + TEST_ENTRY (spawn_setuid_setgid) ++#endif + TEST_ENTRY (we_get_signal) + TEST_ENTRY (we_get_signals) + TEST_ENTRY (signal_multiple_loops) |