From: Todd C. Miller Date: Thu, 29 Jul 2010 14:25:08 +0000 (-0400) Subject: Update to latest version X-Git-Tag: SUDO_1_8_0~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7861b4afdf4bdc64b601f9db91758c60198c7394;p=sudo Update to latest version --- diff --git a/pp b/pp index 8e1323f77..3f1b27fdd 100755 --- a/pp +++ b/pp @@ -1,8 +1,7 @@ #!/bin/sh # (c) 2010 Quest Software, Inc. All rights reserved -pp_revision="279" - - # Copyright (c) 2010 Quest Software, Inc. All rights reserved. +pp_revision="281" + # Copyright 2010 Quest Software, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -29,10 +28,10 @@ pp_revision="279" # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - # Please see for more information + # Please see for more information pp_version="1.0.0.$pp_revision" -pp_copyright="Copyright (c) 2010, Quest Software, Inc. All rights reserved." +pp_copyright="Copyright 2010, Quest Software, Inc. All rights reserved." pp_opt_debug=false pp_opt_destdir="$DESTDIR" @@ -803,7 +802,7 @@ pp_frontend_init () { version= summary="no summary" description="No description" - copyright="Copyright (c) 2010 Quest Software, Inc. All rights reserved" + copyright="Copyright 2010 Quest Software, Inc. All rights reserved." #-- if the user supplied extra arguments on the command line # then load them now. @@ -5097,7 +5096,12 @@ pp_rpm_detect_arch () { rm $pp_wrkdir/dummy.spec #-- Ask the kernel what machine architecture is in use - case "`uname -p`" in + local arch=`uname -p` + if [ "$arch" = "unknown" ]; then + arch=`uname -m` + fi + + case "$arch" in i?86) pp_rpm_arch_std=i386;; x86_64) pp_rpm_arch_std=x86_64;; ppc) pp_rpm_arch_std=ppc;; @@ -5249,20 +5253,20 @@ pp_rpm_depend () { } pp_rpm_override_requires () { - local orig_find_requires + local orig_find_requires - if test -z "$pp_rpm_depend_filter_cmd"; then - return 0 - fi + if test -z "$pp_rpm_depend_filter_cmd"; then + return 0 + fi - orig_find_requires=`rpm --eval '%{__find_requires}'` - cat << EOF > "$pp_wrkdir/filtered-find-requires" + orig_find_requires=`rpm --eval '%{__find_requires}'` + cat << EOF > "$pp_wrkdir/filtered-find-requires" $orig_find_requires \$@ | $pp_rpm_depend_filter_cmd EOF - chmod +x "$pp_wrkdir/filtered-find-requires" - echo "%define __find_requires $pp_wrkdir/filtered-find-requires" - # Might be necessary for old versions of RPM? Not for 4.4.2. - #echo "%define _use_internal_dependency_generator 0" + chmod +x "$pp_wrkdir/filtered-find-requires" + echo "%define __find_requires $pp_wrkdir/filtered-find-requires" + # Might be necessary for old versions of RPM? Not for 4.4.2. + #echo "%define _use_internal_dependency_generator 0" } pp_backend_rpm () {