|
126 | 126 |
|
127 | 127 | cd Aegisum
|
128 | 128 |
|
| 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 | + |
129 | 141 | # --------------------------
|
130 | 142 | # Confirm Protobuf environment
|
131 | 143 | # --------------------------
|
@@ -217,18 +229,6 @@ export CXXFLAGS="-std=c++14 -Wno-deprecated-builtins"
|
217 | 229 | export LDFLAGS="$(echo "$LDFLAGS" | sed 's|/opt/local[^ ]*||g')"
|
218 | 230 | export CPPFLAGS="$(echo "$CPPFLAGS" | sed 's|/opt/local[^ ]*||g')"
|
219 | 231 |
|
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 |
| - |
232 | 232 | # --------------------------
|
233 | 233 | # Remove unsupported Clang flags
|
234 | 234 | # --------------------------
|
|
0 commit comments