1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

Update lang/erlang-wx to 19.2.2 and fix build with clang 4.0[1].

PR:		216615 [1]
Submitted by:	Jan Beich
This commit is contained in:
Jimmy Olgeni 2017-02-01 21:49:18 +00:00
parent 2bb8815670
commit cc542aebc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433113
3 changed files with 25 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= erlang
PORTVERSION= 19.2.1
PORTVERSION= 19.2.2
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/:erlangorg \
http://erlang.stacken.kth.se/download/:erlangorg \
@ -14,7 +14,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PATCH_SITES= http://olgeni.olgeni.com/~olgeni/distfiles/ \
LOCAL/olgeni
PATCHFILES= patch-otp-19.2.1
PATCHFILES= patch-otp-19.2.1 patch-otp-19.2.2
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Erlang bindings for wxWindows

View File

@ -1,7 +1,9 @@
TIMESTAMP = 1484655871
TIMESTAMP = 1485949081
SHA256 (erlang/otp_src_19.2.tar.gz) = a016b3ef5dac1e532972617b2715ef187ecb616f7cd7ddcfe0f1d502f5d24870
SIZE (erlang/otp_src_19.2.tar.gz) = 68395949
SHA256 (erlang/otp_doc_html_19.2.tar.gz) = c373c8c1a9fe7433825088684932f3ded76f53d5b8a4d3d2a364263f1f783043
SIZE (erlang/otp_doc_html_19.2.tar.gz) = 34761971
SHA256 (erlang/patch-otp-19.2.1) = 5fe07da09c914e1145c3e15e2f459fdb7cceedec0213a289ad238dada9645d2c
SIZE (erlang/patch-otp-19.2.1) = 9287
SHA256 (erlang/patch-otp-19.2.2) = a64cac32675fe57cb749461eba9458bbc4d7abddf58996c897e2528a41f2e33c
SIZE (erlang/patch-otp-19.2.2) = 9412

View File

@ -0,0 +1,20 @@
--- lib/wx/c_src/wxe_impl.cpp.orig 2017-01-30 23:13:25 UTC
+++ lib/wx/c_src/wxe_impl.cpp
@@ -666,7 +666,7 @@ void * WxeApp::getPtr(char * bp, wxeMemE
throw wxe_badarg(index);
}
void * temp = memenv->ref2ptr[index];
- if((index < memenv->next) && ((index == 0) || (temp > NULL)))
+ if((index < memenv->next) && ((index == 0) || (temp != NULL)))
return temp;
else {
throw wxe_badarg(index);
@@ -678,7 +678,7 @@ void WxeApp::registerPid(char * bp, ErlD
if(!memenv)
throw wxe_badarg(index);
void * temp = memenv->ref2ptr[index];
- if((index < memenv->next) && ((index == 0) || (temp > NULL))) {
+ if((index < memenv->next) && ((index == 0) || (temp != NULL))) {
ptrMap::iterator it;
it = ptr2ref.find(temp);
if(it != ptr2ref.end()) {