mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Remove FreeBSD hack for sysconf with Rust
This commit is contained in:
parent
711e616211
commit
4e27e9e234
2 changed files with 0 additions and 29 deletions
|
|
@ -1,12 +0,0 @@
|
|||
--- a/src/raw.rs 2020-10-22 05:59:43.747207000 +0000
|
||||
+++ b/src/raw2.rs 2020-10-22 06:00:04.016688000 +0000
|
||||
@@ -82,9 +82,6 @@
|
||||
Sc2CharTerm = sc!(_SC_2_CHAR_TERM),
|
||||
Sc2CVersion = 96, // TODO(joshlf): Switch to a libc constant once it's added
|
||||
Sc2Upe = sc!(_SC_2_UPE),
|
||||
- ScXbs5Ilp32Off32 = sc!(_SC_XBS5_ILP32_OFF32),
|
||||
- ScXbs5Ilp32Offbig = sc!(_SC_XBS5_ILP32_OFFBIG),
|
||||
- ScXbs5LpbigOffbig = sc!(_SC_XBS5_LPBIG_OFFBIG),
|
||||
}
|
||||
|
||||
/// Query the system's configuration.
|
||||
|
|
@ -1368,23 +1368,6 @@ if [ "${BITCOIN_ELECTRS_INSTALL}" = ON ];then
|
|||
;;
|
||||
esac
|
||||
|
||||
echo "[*] Building Bitcoin Electrs release binary"
|
||||
osSudo "${BITCOIN_USER}" sh -c "cd ${BITCOIN_ELECTRS_HOME} && cargo run --release --bin electrs -- --version" || true
|
||||
|
||||
case $OS in
|
||||
FreeBSD*)
|
||||
echo "[*] Patching Bitcoin Electrs code for FreeBSD"
|
||||
SYSCONF_DIR=$(find "${BITCOIN_HOME}/.cargo/registry/src" -type d -name "sysconf-0.3.4" | head -n 1)
|
||||
if [ -n "$SYSCONF_DIR" ]; then
|
||||
osSudo "${BITCOIN_USER}" sh -c "cd \"$SYSCONF_DIR\" && patch -p1 < \"${MEMPOOL_HOME}/${MEMPOOL_REPO_NAME}/production/freebsd/sysconf.patch\""
|
||||
else
|
||||
echo "Warning: Could not find sysconf-0.3.4 directory"
|
||||
fi
|
||||
;;
|
||||
Debian)
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "[*] Building Bitcoin Electrs release binary"
|
||||
osSudo "${BITCOIN_USER}" sh -c "cd ${BITCOIN_ELECTRS_HOME} && cargo run --release --bin electrs -- --version"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue