Skip to content

Commit 2d72ba3

Browse files
Update build_aegisum_mac.sh
1 parent 82c1667 commit 2d72ba3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

build_aegisum_mac.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ fi
126126

127127
cd Aegisum
128128

129+
# --------------------------
130+
# Patch Boost filesystem API (overwrite_if_exists -> overwrite_existing)
131+
# --------------------------
132+
echo -e "${GREEN}>>> Patching Boost copy_option -> copy_options in wallet/bdb.cpp...${RESET}"
133+
BDB_CPP_FILE="wallet/bdb.cpp"
134+
if grep -q "fs::copy_file.*copy_option::overwrite_if_exists" "$BDB_CPP_FILE"; then
135+
sed -i '' 's/fs::copy_option::overwrite_if_exists/fs::copy_options::overwrite_existing/g' "$BDB_CPP_FILE"
136+
echo -e "${CYAN}✔ Patched $BDB_CPP_FILE${RESET}"
137+
else
138+
echo -e "${CYAN}✔ No patch needed for $BDB_CPP_FILE${RESET}"
139+
fi
140+
129141
# --------------------------
130142
# Confirm Protobuf environment
131143
# --------------------------
@@ -217,18 +229,6 @@ export CXXFLAGS="-std=c++14 -Wno-deprecated-builtins"
217229
export LDFLAGS="$(echo "$LDFLAGS" | sed 's|/opt/local[^ ]*||g')"
218230
export CPPFLAGS="$(echo "$CPPFLAGS" | sed 's|/opt/local[^ ]*||g')"
219231

220-
# --------------------------
221-
# Patch Boost filesystem API (overwrite_if_exists -> overwrite_existing)
222-
# --------------------------
223-
echo -e "${GREEN}>>> Patching Boost copy_option -> copy_options in wallet/bdb.cpp...${RESET}"
224-
BDB_CPP_FILE="wallet/bdb.cpp"
225-
if grep -q "fs::copy_file.*copy_option::overwrite_if_exists" "$BDB_CPP_FILE"; then
226-
sed -i '' 's/fs::copy_option::overwrite_if_exists/fs::copy_options::overwrite_existing/g' "$BDB_CPP_FILE"
227-
echo -e "${CYAN}✔ Patched $BDB_CPP_FILE${RESET}"
228-
else
229-
echo -e "${CYAN}✔ No patch needed for $BDB_CPP_FILE${RESET}"
230-
fi
231-
232232
# --------------------------
233233
# Remove unsupported Clang flags
234234
# --------------------------

0 commit comments

Comments
 (0)