From 6fbb88b1315a31fc91af87edc1bfd02e6b27da33 Mon Sep 17 00:00:00 2001 From: David P Date: Mon, 25 Jun 2018 19:06:24 -0400 Subject: linux-libre-pck: add sed expresion to fix tuxonice warnings Signed-off-by: David P --- libre/linux-libre-pck/PKGBUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libre/linux-libre-pck/PKGBUILD b/libre/linux-libre-pck/PKGBUILD index 1fc572877..c6210bffc 100644 --- a/libre/linux-libre-pck/PKGBUILD +++ b/libre/linux-libre-pck/PKGBUILD @@ -121,7 +121,14 @@ prepare() { # add PCK patch patch -p1 -i ../patch-${_pkgver}-${_pckpatchver}.patch - + + if [ "${CARCH}" = "x86_64" ]; then + # workaround to fix tuxonice_builtin.c warnings being treated as errors + sed -i \ + 's|sys_open|ksys_open|;s|sys_ioctl|ksys_ioctl|;s|sys_read|ksys_read|;s|sys_close|ksys_close|' \ + kernel/power/tuxonice_builtin.c + fi + if [ "${CARCH}" = "armv7h" ]; then # RCN patch (CM3 firmware deblobbed and AUFS/WireGuard removed) # Note: For stability reasons, AUFS has been removed in the RCN patch. -- cgit v1.2.3