From 54c03a691369955cdc597f298b1c041c39b8f3cc Mon Sep 17 00:00:00 2001 From: emmett1 Date: Tue, 25 Feb 2025 00:00:14 +0800 Subject: dhcpcd: fix build when using libressl --- repos/extra/dhcpcd/abuild | 6 ++++++ 1 file changed, 6 insertions(+) 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 +} -- cgit v1.2.3