Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a0af6c2

Browse files
committed
Merge remote-tracking branch 'origin/develop-8.1' into merge-develop_8.1_13.11.17
2 parents b3d1aec + e81322e commit a0af6c2

File tree

7 files changed

+40
-20
lines changed

7 files changed

+40
-20
lines changed

buildbot.mk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ dist-docs-guide:
121121
--stage guide --warn-as-error
122122

123123
ifeq ($(BUILD_EDITION),commercial)
124-
dist-server: dist-server-commercial
124+
dist-server: dist-server-indy dist-server-business
125125
endif
126126

127127
dist-server: dist-server-community
@@ -130,10 +130,14 @@ dist-server-community:
130130
$(buildtool_command) --platform mac --platform win --platform linux \
131131
--stage server --edition community --warn-as-error
132132

133-
dist-server-commercial:
133+
dist-server-indy:
134134
$(buildtool_command) --platform mac --platform win --platform linux \
135-
--stage server --edition commercial --warn-as-error
135+
--stage server --edition indy --warn-as-error
136136

137+
dist-server-business:
138+
$(buildtool_command) --platform mac --platform win --platform linux \
139+
--stage server --edition business --warn-as-error
140+
137141
ifeq ($(BUILD_EDITION),commercial)
138142
dist-tools: dist-tools-commercial
139143
distmac-disk: distmac-disk-communityplus distmac-disk-indy distmac-disk-business

builder/builder_utilities.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
script "BuilderUtilities"
22

33
constant kMergExtVersion = "2017-11-3"
4-
constant kTSNetVersion = "1.3.2"
4+
constant kTSNetVersion = "1.3.3"
55

66
local sEngineDir
77
local sWorkDir

builder/server_builder.livecodescript

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,25 @@ command serverBuilderRun pPlatform, pEdition
109109
end if
110110
end repeat
111111

112-
if pEdition is "Community" then
113-
get tEngineFolder & slash & "server-community" & tExeExtension
114-
else
115-
get tEngineFolder & slash & "server-commercial" & tExeExtension
116-
end if
117-
if there is a file it then
112+
local tServerPath, tServerZipPath
113+
switch pEdition
114+
case "Community"
115+
put tEngineFolder & slash & "server-community" & tExeExtension into tServerPath
116+
put "livecode-community-server" & tOutExeExtension into tServerZipPath
117+
break
118+
case "Indy"
119+
put tEngineFolder & slash & "server-commercial" & tExeExtension into tServerPath
120+
put "livecode-server" & tOutExeExtension into tServerZipPath
121+
break
122+
case "Business"
123+
put tEngineFolder & slash & "server-professional" & tExeExtension into tServerPath
124+
put "livecode-server" & tOutExeExtension into tServerZipPath
125+
break
126+
end switch
127+
128+
if there is a file tServerPath then
118129
builderLog "message", "Adding livecode-server engine"
119-
if pEdition is "Community" then
120-
revZipAddItemWithFile tOutputFile, "livecode-community-server" & tOutExeExtension, it
121-
else
122-
revZipAddItemWithFile tOutputFile, "livecode-server" & tOutExeExtension, it
123-
end if
130+
revZipAddItemWithFile tOutputFile, tServerZipPath, tServerPath
124131
if the result is not empty then
125132
throw the result
126133
end if
@@ -183,9 +190,5 @@ function getZipFilenameStub pVersion, pPlatform, pEdition
183190
else if pPlatform is "linux-armv6hf" then
184191
put "Linux-armv6hf" into pPlatform
185192
end if
186-
if pEdition is "Community" then
187-
return "LiveCodeCommunityServer-" & pVersion & "-" & pPlatform & ".zip"
188-
else
189-
return "LiveCodeServer-" & pVersion & "-" & pPlatform & ".zip"
190-
end if
193+
return "LiveCode" & editionTitleCase(pEdition) & "Server-" & pVersion & "-" & pPlatform & ".zip"
191194
end getZipFilenameStub

builder/tools_builder.livecodescript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo
199199
packageCompilerConfigureSource tPackager, "prebuilt", builderRepoFolder() & slash & "prebuilt"
200200
packageCompilerConfigureSource tPackager, "repo", builderRepoFolder()
201201
packageCompilerConfigureSource tPackager, "ext", builderUnpackFolder(pEdition)
202+
202203
if editionIsInPrivateRepo(tEditionType) then
203204
packageCompilerConfigureSource tPackager, "private", builderPrivateRepoFolder()
204205
end if

docs/notes/bugfix-20628.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add tsNet builds for iOS SDK 11.1

docs/notes/bugfix-20654.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix crash when trying to write to a disconnected socket

engine/src/opensslsocket.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,11 @@ MCSocket *MCS_open_socket(MCNameRef name, Boolean datagram, MCObject *o, MCNameR
763763
MCresult->sets("can't create socket");
764764
return NULL;
765765
}
766+
767+
#ifdef SO_NOSIGPIPE
768+
int set = 1;
769+
setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, (void *)&set, sizeof(int));
770+
#endif
766771

767772
// HH-2017-01-26: [[ Bug 18454 ]] Set the broadcast flagged base on property 'allowDatagramBroadcasts'
768773
if(datagram)
@@ -1078,6 +1083,11 @@ MCSocket *MCS_accept(uint2 port, MCObject *object, MCNameRef message, Boolean da
10781083
MCresult->sets("can't create socket");
10791084
return NULL;
10801085
}
1086+
1087+
#ifdef SO_NOSIGPIPE
1088+
int set = 1;
1089+
setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, (void *)&set, sizeof(int));
1090+
#endif
10811091

10821092
unsigned long val = 1;
10831093

0 commit comments

Comments
 (0)