Mercurial > hg > icedtea6-hg
view pax-mark-vm.in @ 3259:7f502d06457c
PR3130: Avoid giving PAX_COMMAND a value if no PaX utility is available
2016-08-14 Andrew John Hughes <gnu.andrew@redhat.com>
PR3130: Avoid giving PAX_COMMAND a value if
no PaX utility is available
* NEWS: Updated.
2014-02-21 Andrew John Hughes <gnu.andrew@member.fsf.org>
PR3130: Avoid giving PAX_COMMAND a value if
no PaX utility is available
* acinclude.m4:
(IT_WITH_PAX): Leave PAX_COMMAND with the empty
string rather than "not specified" to avoid build
failures.
* pax-mark-vm.in: Update PAX_COMMAND check.
author | Andrew John Hughes <gnu.andrew@redhat.com> |
---|---|
date | Mon, 15 Aug 2016 06:16:39 +0100 |
parents | f6a0a42bf443 |
children | bb2bbb3b08d9 |
line wrap: on
line source
#!/bin/sh # 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 for paxable in `list_paxables "${1}"/bin/* "${1}"/jre/bin/*`; do echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}" @PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}" done fi