Mercurial > hg > icedtea10
changeset 2517:701e191f03b9
PR1965: Avoid giving PAX_COMMAND a value if no PaX utility is available.
2014-02-21 Andrew John Hughes <gnu.andrew@member.fsf.org>
* 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@member.fsf.org> |
---|---|
date | Fri, 29 Aug 2014 19:15:38 +0100 |
parents | fdd666c34606 |
children | d47f0837adbb |
files | ChangeLog acinclude.m4 pax-mark-vm.in |
diffstat | 3 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Aug 29 19:09:40 2014 +0100 +++ b/ChangeLog Fri Aug 29 19:15:38 2014 +0100 @@ -1,3 +1,11 @@ +2014-02-21 Andrew John Hughes <gnu.andrew@member.fsf.org> + + * 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. + 2014-02-19 Andrew John Hughes <gnu.andrew@member.fsf.org> PR1965: Update PaX support to detect running PaX
--- a/acinclude.m4 Fri Aug 29 19:09:40 2014 +0100 +++ b/acinclude.m4 Fri Aug 29 19:15:38 2014 +0100 @@ -1941,10 +1941,7 @@ fi fi fi - if test -z "${PAX_COMMAND}"; then - PAX_COMMAND="not specified" - PAX_COMMAND_ARGS="not specified" - else + if test -n "${PAX_COMMAND}"; then AC_MSG_CHECKING([which options to pass to ${PAX_COMMAND}]) case "${host_cpu}" in i?86) @@ -1956,7 +1953,7 @@ esac AC_MSG_RESULT(${PAX_COMMAND_ARGS}) fi - AM_CONDITIONAL(WITH_PAX, test "x${PAX_COMMAND}" != "xnot specified") + AM_CONDITIONAL(WITH_PAX, test "x${PAX_COMMAND}" != "x") AC_SUBST(PAX_COMMAND) AC_SUBST(PAX_COMMAND_ARGS) ])
--- a/pax-mark-vm.in Fri Aug 29 19:09:40 2014 +0100 +++ b/pax-mark-vm.in Fri Aug 29 19:15:38 2014 +0100 @@ -5,7 +5,7 @@ file "$@" 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//' } -if test "@PAX_COMMAND@" != "not specified"; then +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}"