Remove FreeBSD hack for sysconf with Rust

This commit is contained in:
junderw 2025-10-05 17:06:14 +09:00
parent 711e616211
commit 4e27e9e234
No known key found for this signature in database
GPG key ID: B256185D3A971908
2 changed files with 0 additions and 29 deletions

View file

@ -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.

View file

@ -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