diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-25 00:00:14 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-25 00:00:14 +0800 |
| commit | 54c03a691369955cdc597f298b1c041c39b8f3cc (patch) | |
| tree | 66d13c458323ab4b83283182273000fc69f33381 | |
| parent | e987a3548719cb56e545ddcd6a988cdebd0ce692 (diff) | |
| download | alicelinux-54c03a691369955cdc597f298b1c041c39b8f3cc.tar.gz alicelinux-54c03a691369955cdc597f298b1c041c39b8f3cc.zip | |
dhcpcd: fix build when using libressl
| -rw-r--r-- | repos/extra/dhcpcd/abuild | 6 |
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 +} |