From 021f45b632a66af1b4474c5ee50c7aa0476cd20c Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 2 Oct 2017 00:29:20 +0200 Subject: testing/ruby-ffi: new aport https://github.com/ffi/ffi Ruby FFI library --- testing/ruby-ffi/ruby-ffi.post-install | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testing/ruby-ffi/ruby-ffi.post-install (limited to 'testing/ruby-ffi/ruby-ffi.post-install') diff --git a/testing/ruby-ffi/ruby-ffi.post-install b/testing/ruby-ffi/ruby-ffi.post-install new file mode 100644 index 0000000000..17917cc4df --- /dev/null +++ b/testing/ruby-ffi/ruby-ffi.post-install @@ -0,0 +1,12 @@ +#!/bin/sh + +if grep -qw PaX /proc/$$/status 2>/dev/null; then + cat >&2 <<-EOF + !! + !! ruby-ffi does not work on kernel with PaX, unless you disable MPROTECT + !! for ruby binary. If you're aware of security implications, execute: + !! + !! apk add paxmark && paxmark -m /usr/bin/ruby + !! + EOF +fi -- cgit v1.2.3