# HG changeset patch # User Andrew John Hughes # Date 1393020271 0 # Node ID f59e4269da381086a5ca5fad232ba772838e34a6 # Parent a038746706533545360f7baff26392141bbf6590 Avoid giving PAX_COMMAND a value if no PaX utility is available. 2014-02-21 Andrew John Hughes * 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. diff -r a03874670653 -r f59e4269da38 ChangeLog --- a/ChangeLog Mon Mar 17 16:42:38 2014 +0000 +++ b/ChangeLog Fri Feb 21 22:04:31 2014 +0000 @@ -1,3 +1,11 @@ +2014-02-21 Andrew John Hughes + + * 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 * patches/boot/test_gamma.patch, diff -r a03874670653 -r f59e4269da38 acinclude.m4 --- a/acinclude.m4 Mon Mar 17 16:42:38 2014 +0000 +++ b/acinclude.m4 Fri Feb 21 22:04:31 2014 +0000 @@ -2356,10 +2356,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) @@ -2371,7 +2368,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) ]) diff -r a03874670653 -r f59e4269da38 pax-mark-vm.in --- a/pax-mark-vm.in Mon Mar 17 16:42:38 2014 +0000 +++ b/pax-mark-vm.in Fri Feb 21 22:04:31 2014 +0000 @@ -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}"