Skip to content

Instantly share code, notes, and snippets.

View mbroadst's full-sized avatar

Matt Broadstone mbroadst

View GitHub Profile
'use strict';
const _ = require('lodash'),
Promise = require('bluebird'),
amqp = require('.');
const config = {
address: 'amqp://192.168.1.6',
receiverLinkPrefix: 'test-queue'
}
SUMMARY = "RethinkDB is an open source distributed database system for the realtime web."
LICENSE = "AGPL-3.0"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=5e7ac215b3ae3a8526781664de7a8282"
SRC_URI = " \
https://download.rethinkdb.com/dist/rethinkdb-2.3.0.tgz \
file://0001-wrap-compiler-env-variables-in-quotes.patch \
file://0002-configure-v8-without-snapshot-for-cross-compile.patch \
file://0003-fix-v8-pkg_install-include-for-cross-compile.patch \
file://0004-remove-no-registry-flag-for-npm-install.patch \
From 4370589c5b579206e3ad9d9d82e0b424fb9a68cd Mon Sep 17 00:00:00 2001
From: Matt Broadstone <[email protected]>
Date: Mon, 11 Apr 2016 09:38:48 -0400
Subject: [PATCH 1/3] wrap compiler env variables in quotes
---
mk/support/pkg/v8.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/support/pkg/v8.sh b/mk/support/pkg/v8.sh
From ac0218f9015461b5edf4d4e1fc54d8ef032e9717 Mon Sep 17 00:00:00 2001
From: Matt Broadstone <[email protected]>
Date: Mon, 11 Apr 2016 09:40:00 -0400
Subject: [PATCH 2/4] configure v8 without snapshot for cross compile
---
mk/support/pkg/v8.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/mk/support/pkg/v8.sh b/mk/support/pkg/v8.sh
From a86617b06b6fe9409be8c78aff97acc1f16bf6e5 Mon Sep 17 00:00:00 2001
From: Matt Broadstone <[email protected]>
Date: Mon, 11 Apr 2016 09:41:00 -0400
Subject: [PATCH 3/3] fix v8 pkg_install-include for cross compile
---
mk/support/pkg/v8.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/support/pkg/v8.sh b/mk/support/pkg/v8.sh
From 859f52eb1ca37c937ed30af0ac6a1fd98fb64618 Mon Sep 17 00:00:00 2001
From: Matt Broadstone <[email protected]>
Date: Mon, 11 Apr 2016 12:08:58 -0400
Subject: [PATCH 5/5] use separate toolsets for v8 while cross compiling
---
mk/support/pkg/v8.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/mk/support/pkg/v8.sh b/mk/support/pkg/v8.sh
[Unit]
Description=RethinkDB database server for instance '%i'
[Service]
User=rethinkdb
Group=rethinkdb
ExecStart=/usr/bin/rethinkdb serve --config-file /etc/rethinkdb/instances.d/%i.conf
KillMode=process
PrivateTmp=true
d /run/rethinkdb 0755 rethinkdb rethinkdb -
From b8965640622e2b649503b67faf88b9acba23bba6 Mon Sep 17 00:00:00 2001
From: Matt Broadstone <[email protected]>
Date: Mon, 11 Apr 2016 09:43:16 -0400
Subject: [PATCH 4/4] remove no-registry flag for npm install
---
mk/support/pkg/npm-pkg.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk/support/pkg/npm-pkg.inc b/mk/support/pkg/npm-pkg.inc
static NAN_METHOD(Test) {
// do some work
DoReturn(info);
}
void DoReturn(const Nan::FunctionCallbackInfo<v8::Value> &info) {
info.GetReturnValue().Set(5555);
}