Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions recipes/asio/asio.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DESCRIPTION = "Asio is a cross-platform C++ library for network and low-level \
I/O programming that provides developers with a consistent asynchronous \
model using a modern C++ approach."
HOMEPAGE = "http://think-async.com/Asio"
LICENSE = "BSL-1.0"
DEPENDS = "boost-dev libpthread openssl openssl-dev"

PV_ = "${@d.get('PV', True).replace('.', '-')}"
SRC_URI = "https://github.com/chriskohlhoff/asio/archive/asio-${PV_}.tar.gz"
S = "${SRCDIR}/asio-asio-${PV_}/asio"

require conf/fetch/sourceforge.conf
inherit autotools autotools-autoreconf c++
1 change: 1 addition & 0 deletions recipes/asio/asio_1.11.0.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require asio.inc
1 change: 1 addition & 0 deletions recipes/asio/asio_1.11.0.oe.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1be2489015a1e1c7b8666a5a803d984cdec4a12b asio-1-11-0.tar.gz
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
From a60a9b0dbd064cd70de9400ad47421c19d29b021 Mon Sep 17 00:00:00 2001
From: Fedor Indutny <fedor@indutny.com>
Date: Fri, 28 Mar 2014 00:09:20 +0400
Subject: [PATCH] deps: provide TXT chunk info in c-ares

Provide more information in `ares_txt_reply` to coalesce chunks from the
same record into one string.

upstream-status: unappropriate - needed for nodejs only

---
ares.h | 2 ++
ares_parse_txt_reply.c | 5 +++--
4 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/ares.h b/ares.h
index 3d0f9cf..3091064 100644
--- a/ares.h
+++ b/ares.h
@@ -520,6 +520,8 @@ struct ares_txt_reply {
struct ares_txt_reply *next;
unsigned char *txt;
size_t length; /* length excludes null termination */
+ unsigned char record_start; /* 1 - if start of new record
+ * 0 - if a chunk in the same record */
};

struct ares_naptr_reply {
diff --git a/ares_parse_txt_reply.c b/ares_parse_txt_reply.c
index 981db4c..dabf73c 100644
--- a/ares_parse_txt_reply.c
+++ b/ares_parse_txt_reply.c
@@ -133,8 +133,6 @@ ares_parse_txt_reply (const unsigned char *abuf, int alen,
break;
}

- ++strptr;
-
/* Allocate storage for this TXT answer appending it to the list */
txt_curr = ares_malloc_data(ARES_DATATYPE_TXT_REPLY);
if (!txt_curr)
@@ -152,6 +150,7 @@ ares_parse_txt_reply (const unsigned char *abuf, int alen,
}
txt_last = txt_curr;

+ txt_curr->record_start = strptr == aptr;
txt_curr->length = substr_len;
txt_curr->txt = malloc (substr_len + 1/* Including null byte */);
if (txt_curr->txt == NULL)
@@ -159,6 +158,8 @@ ares_parse_txt_reply (const unsigned char *abuf, int alen,
status = ARES_ENOMEM;
break;
}
+
+ ++strptr;
memcpy ((char *) txt_curr->txt, strptr, substr_len);

/* Make sure we NULL-terminate */

--
2.6.1

15 changes: 15 additions & 0 deletions recipes/c-ares/c-ares.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
DESCRIPTION = "c-ares is a C library for asynchronous DNS requests (including name resolves)"
LICENSE = "MIT"
RECIPE_TYPES = "machine sdk native"

inherit c autotools library

SRC_URI = "http://c-ares.haxx.se/download/c-ares-${PV}.tar.gz"
SRC_URI += "file://0001-deps-provide-TXT-chunk-info-in-c-ares.patch "

LIBRARY_NAME="libcares"
LIBRARY_VERSION = "2"
DEPENDS_${PN} = "libc"
RDEPENDS_${PN} = "libc"

BUILD_CFLAGS = "${BUILD_CFLAGS_OPT}"
1 change: 1 addition & 0 deletions recipes/c-ares/c-ares_1.10.0.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require ${PN}.inc
1 change: 1 addition & 0 deletions recipes/c-ares/c-ares_1.10.0.oe.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e44e6575d5af99cb3a38461486e1ee8b49810eb5 c-ares-1.10.0.tar.gz
30 changes: 30 additions & 0 deletions recipes/gperftools/gperftools.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
DESCRIPTION = "Fast, multi-threaded malloc() and nifty performance analysis tools"
HOMEPAGE = "http://code.google.com/p/gperftools/"
LICENSE = "BSD"
DEPENDS = "libunwind libpthread"

inherit autotools c++ auto-package-libs
AUTO_PACKAGE_LIBS = "profiler tcmalloc tcmalloc_minimal tcmalloc_debug tcmalloc_minimal_debug tcmalloc_and_profiler"
AUTO_PACKAGE_LIBS_DEPENDS = "libc libgcc-s libm libstdc++"
AUTO_PACKAGE_LIBS_RDEPENDS = "libc libgcc-s libm libstdc++"
LIBRARY_VERSION = "4"
LIBRARY_VERSION_${PN}-libprofiler = "0"

DEPENDS_${PN} = "libc libgcc-s libm libpthread libstdc++"
RDEPENDS_${PN} = "libc libgcc-s libm libpthread libstdc++"


DEPENDS_${PN}-libtcmalloc += "libpthread"
RDEPENDS_${PN}-libtcmalloc += "libpthread"

DEPENDS_${PN}-libtcmalloc-minimal += "libpthread"
RDEPENDS_${PN}-libtcmalloc-minimal += "libpthread"

DEPENDS_${PN}-libtcmalloc-debug += "libpthread"
RDEPENDS_${PN}-libtcmalloc-debug += "libpthread"

DEPENDS_${PN}-libtcmalloc-minimal-debug += "libpthread"
RDEPENDS_${PN}-libtcmalloc-minimal-debug += "libpthread"

DEPENDS_${PN}-libtcmalloc-and-profiler += "libpthread"
RDEPENDS_${PN}-libtcmalloc-and-profiler += "libpthread"
3 changes: 3 additions & 0 deletions recipes/gperftools/gperftools_2.4.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require gperftools.inc

SRC_URI = "http://pkgs.fedoraproject.org/lookaside/pkgs/gperftools/gperftools-2.4.tar.gz/2171cea3bbe053036fb5d5d25176a160/gperftools-2.4.tar.gz"
1 change: 1 addition & 0 deletions recipes/gperftools/gperftools_2.4.oe.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
13b904d0d1f220e43e4495f3403ee280c6da26ea gperftools-2.4.tar.gz
22 changes: 22 additions & 0 deletions recipes/gyp/gyp_git.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DESCRIPTION = "GYP can Generate Your Projects."
LICENSE = "BSD-3"
RECIPE_TYPES = "native"
DEPENDS = "native:setuptools"

SRC_REV = "commit=25ed9ac4ac2a4d2a08909225fbb6d56e89ad38a6"
SRC_URI = "git://chromium.googlesource.com/external/gyp;protocol=https;${SRC_REV}"
S = "${SRCDIR}/gyp"
FILES_${PN} += "/lib/python"

PYTHON_PATH = "${BUILD_SYSROOT}/lib/python:${D}${libdir}/python"

do_compile() {
export PYTHONPATH=${PYTHON_PATH}
python setup.py build
}

do_install() {
install -d ${D}${libdir}/python
export PYTHONPATH=${PYTHON_PATH}
python setup.py install --home ${D}
}
11 changes: 11 additions & 0 deletions recipes/libsnappy/libsnappy.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DESCRIPTION = "nappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression."
LICENSE = "BSD-3"

inherit c++ autotools library

SRC_URI = "https://github.com/google/snappy/releases/download/${PV}/snappy-${PV}.tar.gz"
S = "${SRCDIR}/snappy-${PV}"

LIBRARY_VERSION = "1"
DEPENDS_${PN} = "libc libgcc-s libm libstdc++"
RDEPENDS_${PN} = "libc libgcc-s libm libstdc++"
1 change: 1 addition & 0 deletions recipes/libsnappy/libsnappy_1.1.3.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require libsnappy.inc
1 change: 1 addition & 0 deletions recipes/libsnappy/libsnappy_1.1.3.oe.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
63f7a3d2c865a6a39aca9bc5d3412a8b2d607bb4 snappy-1.1.3.tar.gz
13 changes: 13 additions & 0 deletions recipes/libstemmer/libstemmer.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DESCRIPTION = ""
LICENSE = ""

inherit make c

SRC_URI = "http://snowball.tartarus.org/dist/libstemmer_c.tgz"
S = "${SRCDIR}/libstemmer_c/"
FILES_${PN} += "${libdir}"

do_install() {
install -d ${D}/${libdir}
install -m 0644 ${S}/libstemmer.o ${D}/${libdir}/libstemmer.so
}
1 change: 1 addition & 0 deletions recipes/libstemmer/libstemmer.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require libstemmer.inc
1 change: 1 addition & 0 deletions recipes/libstemmer/libstemmer.oe.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ac6bb16e829e9f3a58f62c27047c26784975aa1 libstemmer_c.tgz
24 changes: 24 additions & 0 deletions recipes/libuv/libuv.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
DESCRIPTION = "libuv is a multi-platform support library with a focus on asynchronous I/O."
LICENSE = "MIT BSD Artistic-2.0"
RECIPE_TYPES = "machine sdk native"

inherit c autotools library

SRC_URI = "http://dist.libuv.org/dist/v${PV}/libuv-v${PV}.tar.gz"
S = "${SRCDIR}/${PN}-v${PV}"

LIBRARY_VERSION = "11"
DEPENDS_HOST_OS = "libdl librt"
DEPENDS_HOST_OS:HOST_LIBC_mingw = ""
DEPENDS = "${DEPENDS_HOST_OS}"
DEPENDS_${PN} = "libc ${DEPENDS_HOST_OS}"
RDEPENDS_${PN} = "libc ${DEPENDS_HOST_OS}"

EXPORT_LIBTOOLIZE = ""
EXPORT_LIBTOOLIZE:native = "export _lt_pkgdatadir=${BUILD_SYSROOT}/share/libtool"

do_configure[prefuncs] += "do_configure_autogen"
do_configure_autogen() {
${EXPORT_LIBTOOLIZE}
sh autogen.sh
}
1 change: 1 addition & 0 deletions recipes/libuv/libuv_1.6.1.oe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require ${PN}.inc
1 change: 1 addition & 0 deletions recipes/libuv/libuv_1.6.1.oe.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6f3949f1136203d1de8de74fe157eead44821b82 libuv-v1.6.1.tar.gz
43 changes: 43 additions & 0 deletions recipes/libv8/files/0001-avoid-thin-static-archives.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
From 94261b84415ba0de27c4d3a8686e2edf74a01ce9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <mnhu@prevas.dk>
Date: Mon, 31 Aug 2015 13:32:16 +0200
Subject: [PATCH] avoid thin static archives

GYP builds thin archives by default on platforms that support it (the
GNU toolchain on Linux does, don't think OS X does.) disable
it by setting standalone_static_library: 1 in the v8.gyp file
---
tools/gyp/v8.gyp | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp
index 242ddf0..b43486f 100644
--- a/tools/gyp/v8.gyp
+++ b/tools/gyp/v8.gyp
@@ -107,6 +107,7 @@
{
'target_name': 'v8_snapshot',
'type': 'static_library',
+ 'standalone_static_library': 1,
'conditions': [
['want_separate_host_toolset==1', {
'toolsets': ['host', 'target'],
@@ -179,6 +180,7 @@
{
'target_name': 'v8_nosnapshot.<(v8_target_arch)',
'type': 'static_library',
+ 'standalone_static_library': 1,
'dependencies': [
'v8_base.<(v8_target_arch)',
],
@@ -236,6 +238,7 @@
{
'target_name': 'v8_base.<(v8_target_arch)',
'type': 'static_library',
+ 'standalone_static_library': 1,
'variables': {
'optimize': 'max',
},
--
2.5.1

33 changes: 33 additions & 0 deletions recipes/libv8/files/0001-remove-uci-and-libc-deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 64a85f689901b212616623a588f02871f2be7714 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <mnhu@prevas.dk>
Date: Tue, 21 Jul 2015 17:55:56 +0200
Subject: [PATCH] remove uci and libc++ deps

---
Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 7f161c6..b759bfa 100644
--- a/Makefile
+++ b/Makefile
@@ -247,14 +247,13 @@ ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \
NACL_ARCHES = nacl_ia32 nacl_x64

# List of files that trigger Makefile regeneration:
-GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \
+GYPFILES = \
build/shim_headers.gypi build/features.gypi build/standalone.gypi \
build/toolchain.gypi build/all.gyp build/mac/asan.gyp \
test/cctest/cctest.gyp \
test/unittests/unittests.gyp tools/gyp/v8.gyp \
tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \
- buildtools/third_party/libc++abi/libc++abi.gyp \
- buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \
+ samples/samples.gyp \
src/third_party/vtune/v8vtune.gyp src/d8.gyp

# If vtunejit=on, the v8vtune.gyp will be appended.
--
2.4.6

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 4886b953f559099768c612c2990288340f8c4289 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <mnhu@prevas.dk>
Date: Wed, 22 Jul 2015 11:45:02 +0200
Subject: [PATCH] test if target compiler supports -m32

---
build/toolchain.gypi | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/build/toolchain.gypi b/build/toolchain.gypi
index 4dbf42b..75ad9ff 100644
--- a/build/toolchain.gypi
+++ b/build/toolchain.gypi
@@ -922,8 +922,15 @@
['_toolset=="target"', {
'conditions': [
['target_cxx_is_biarch==1 and nacl_target_arch!="nacl_x64"', {
- 'cflags': [ '-m32' ],
- 'ldflags': [ '-m32' ],
+ # Pass -m32 to the compiler iff it understands the flag.
+ 'variables': {
+ 'm32flag': '<!(' +
+ '(echo | $(echo ${CXX:-$(which g++)}) -m32 -E - ' +
+ ' > /dev/null 2>&1) ' +
+ '&& echo -n "-m32" || true)',
+ },
+ 'cflags': [ '<(m32flag)' ],
+ 'ldflags': [ '<(m32flag)' ],
}],
],
'xcode_settings': {
--
2.4.6

Loading