From 5505ba01adff0a7c12abb17ffecc077a2cbec6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 5 Apr 2017 21:08:31 +0200 Subject: [PATCH] sudo: work around a i686-musl bug --- srcpkgs/sudo/template | 8 ++++++++ 1 file changed, 8 insertions(+) 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' {} \; }