diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-08-25 13:27:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 13:27:48 -0700 |
commit | 3e09c19e7e6cc241c59e9fa1141d2b694c7499f1 (patch) | |
tree | a9ff46650da0d53afa27b7db3c548eaa2ca08636 /libs | |
parent | 79fd505592b0042d24b6680f02302bd3f5ea765b (diff) | |
parent | 8844f433e21f580b288826f428e69dc02c6efd42 (diff) |
Merge pull request #13204 from nxhack/upm_node_v12
libupm: support node.js v12
Diffstat (limited to 'libs')
-rw-r--r-- | libs/libupm/Makefile | 2 | ||||
-rw-r--r-- | libs/libupm/patches/005-support_v12.patch | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/libs/libupm/Makefile b/libs/libupm/Makefile index 7a2b8a2d2..7d37d583e 100644 --- a/libs/libupm/Makefile +++ b/libs/libupm/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libupm PKG_VERSION:=2.0.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/intel-iot-devkit/upm/tar.gz/v$(PKG_VERSION)? diff --git a/libs/libupm/patches/005-support_v12.patch b/libs/libupm/patches/005-support_v12.patch new file mode 100644 index 000000000..c9d9c668e --- /dev/null +++ b/libs/libupm/patches/005-support_v12.patch @@ -0,0 +1,11 @@ +--- a/src/carrays_uint32_t.i ++++ b/src/carrays_uint32_t.i +@@ -24,7 +24,7 @@ + %typemap(in) uint32_t { + int ecode2 = 0 ; + if (($input)->IsInt32()) +- $1 = ($input)->Uint32Value(); ++ $1 = ($input)->Uint32Value(SWIGV8_CURRENT_CONTEXT()).FromJust(); + else + SWIG_exception_fail(SWIG_ArgError(ecode2), "failed to convert uint32"); + } |