view pax-mark-vm.in @ 2689:d68ffcc9a497 default tip

PR3803: Update elliptic curve patch to handle JDK-8242151, JDK-8237219 & JDK-8177334 2020-09-14 Andrew John Hughes <gnu_andrew@member.fsf.org> PR3803: Update elliptic curve patch to handle JDK-8242151, JDK-8237219 & JDK-8177334 * NEWS: Updated. * fsg.sh.in: Update patch name. * patches/pr3803.patch: Remove curves introduced in Apache Santuario by JDK-8177334. 2020-09-03 Petra Mikova <pmikova@redhat.com> PR3803: Update elliptic curve patch to handle JDK-8242151, JDK-8237219 & JDK-8177334 * patches/pr3803.patch: Renamed from pr3788.patch. Updated to apply after JDK-8241251 & JDK-8237219.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Tue, 15 Sep 2020 16:56:28 +0100
parents 9e5bab0925d7
children
line wrap: on
line source

#!/bin/sh

JDK=${1}
FAIL_ON_ERROR=${2}

# Taken from Gentoo's pax-utils.eclass
list_paxables() {
	file "$@" 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//'
}

if test "x@PAX_COMMAND@" != "x"; then
    if @PAX_COMMAND@ -m "${JDK}"/bin/java; then
	for paxable in `list_paxables "${JDK}"/bin/* "${JDK}"/jre/bin/*`; do
		echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}"
		@PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}"
	done
    else
	if test "x${FAIL_ON_ERROR}" = "xtrue"; then
	    echo "ERROR: Could not apply PaX markings to files in ${JDK}";
	    exit -1;
	else
	    echo "WARNING: Could not apply PaX markings to files in ${JDK}";
	fi
    fi
fi