dev-lang/mono: do not call paxctl directly
authorJason Zaman <perfinion@gentoo.org>
Mon, 23 Nov 2015 11:34:12 +0000 (19:34 +0800)
committerJason Zaman <perfinion@gentoo.org>
Mon, 23 Nov 2015 11:34:40 +0000 (19:34 +0800)
paxmark.sh should be used instead which follows XT/PT marks correctly

Gentoo-Bug: https://bugs.gentoo.org/532244

Package-Manager: portage-2.2.20.1

dev-lang/mono/mono-2.10.9-r2.ebuild
dev-lang/mono/mono-3.12.1.ebuild
dev-lang/mono/mono-4.0.3.20.ebuild

index 8f938146451f69642f6df3096da803bbb3232a1f..0938c29b26364451d13c97c70bdd064f1d72d284 100644 (file)
@@ -64,9 +64,10 @@ src_prepare() {
        # we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it doesn't
        # get killed in the build process when MPROTECT is enabled. #286280
        # RANDMMAP kills the build process to #347365
+       # use paxmark.sh to get PT/XT logic #532244
        if use pax_kernel ; then
                ewarn "We are disabling MPROTECT on the mono binary."
-               sed '/exec "/ i\paxctl-ng -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
+               sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
        fi
 }
 
index 14544b93cd9ef05d20685acffcec4fce8719cee1..956028228fc6d7a92a0f1a195f2a8d96be3641b0 100644 (file)
@@ -46,13 +46,14 @@ pkg_setup() {
 
 src_prepare() {
        # we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't
-       # get killed in the build proces when MPROTEC is enable. #286280
+       # get killed in the build proces when MPROTECT is enable. #286280
        # RANDMMAP kill the build proces to #347365
+       # use paxmark.sh to get PT/XT logic #532244
        if use pax_kernel ; then
                ewarn "We are disabling MPROTECT on the mono binary."
 
                # issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9
-               sed '/exec "/ i\paxctl-ng -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
+               sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
        fi
 
        # mono build system can fail otherwise
index 89fcad95a1d9dba97bb7f5dda2c1f3b0dbff212c..2675538530f07e8fd9fe5780aab184afc19ad803 100644 (file)
@@ -51,13 +51,14 @@ pkg_setup() {
 
 src_prepare() {
        # we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't
-       # get killed in the build proces when MPROTEC is enable. #286280
+       # get killed in the build proces when MPROTECT is enable. #286280
        # RANDMMAP kill the build proces to #347365
+       # use paxmark.sh to get PT/XT logic #532244
        if use pax_kernel ; then
                ewarn "We are disabling MPROTECT on the mono binary."
 
                # issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9
-               sed '/exec "/ i\paxctl-ng -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
+               sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
        fi
 
        # mono build system can fail otherwise