diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template index f2bc885c9f..1b9a7b3592 100644 --- a/srcpkgs/sudo/template +++ b/srcpkgs/sudo/template @@ -18,6 +18,14 @@ license="ISC, BSD, zlib" distfiles="https://www.sudo.ws/dist/sudo-${version}.tar.gz" checksum=237e18e67c2ad59ecacfa4b7707198b09fcf84914621585a9bc670dcc31a52e0 +post_configure() { + case "$XBPS_TARGET_MACHINE" in + i686-musl) find -type f -exec sed -i "{}" \ + -e "s;-fstack-protector-strong;-fno-stack-protector;g" \; + ;; + esac +} + pre_install() { find ${wrksrc} -type f -name Makefile -exec sed -i 's,$(INSTALL_OWNER),,g' {} \; }