aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-02-25 00:00:14 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-02-25 00:00:14 +0800
commit54c03a691369955cdc597f298b1c041c39b8f3cc (patch)
tree66d13c458323ab4b83283182273000fc69f33381
parente987a3548719cb56e545ddcd6a988cdebd0ce692 (diff)
downloadalicelinux-54c03a691369955cdc597f298b1c041c39b8f3cc.tar.gz
alicelinux-54c03a691369955cdc597f298b1c041c39b8f3cc.zip
dhcpcd: fix build when using libressl
-rw-r--r--repos/extra/dhcpcd/abuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/repos/extra/dhcpcd/abuild b/repos/extra/dhcpcd/abuild
index d4efdaf1..e66f4578 100644
--- a/repos/extra/dhcpcd/abuild
+++ b/repos/extra/dhcpcd/abuild
@@ -6,3 +6,9 @@ source="https://github.com/NetworkConfiguration/$name/releases/download/v$versio
sv="run"
build_opt="--without-udev"
+prebuild() {
+ # fix when using libressl
+ if [ -f $SPM_PKGDB/libressl ]; then
+ sed -i 's/RAND_priv_bytes/RAND_pseudo_bytes/g' compat/arc4random.c
+ fi
+}