Don't use sudo when building AIX packages

PolyPkg uses "sudo installp -l" to list the built package by default
but we may not have sudo privileges on the build host.
This commit is contained in:
Todd C. Miller
2023-08-01 11:20:54 -06:00
parent 002e22f846
commit d404f544fc
3 changed files with 6 additions and 6 deletions

View File

@@ -11,8 +11,8 @@ This makes it possible to have all sudo I/O logs on a central server."
# Convert to 4 part version for AIX, including patch level
pp_aix_version=`echo $version|sed -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)p\([0-9]*\)$/\1.\2/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)[^0-9\.].*$/\1/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)$/\1.0/'`
# Don't allow sudo to prompt for a password
pp_aix_sudo="sudo -n"
# Don't use sudo to list the package.
pp_aix_sudo=
%endif
%if [sd]

View File

@@ -9,8 +9,8 @@
# Convert to 4 part version for AIX, including patch level
pp_aix_version=`echo $version|sed -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)p\([0-9]*\)$/\1.\2/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)[^0-9\.].*$/\1/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)$/\1.0/'`
# Don't allow sudo to prompt for a password
pp_aix_sudo="sudo -n"
# Don't use sudo to list the package.
pp_aix_sudo=
%endif
%if [sd]

View File

@@ -21,8 +21,8 @@ still allow people to get their work done."
# Convert to 4 part version for AIX, including patch level
pp_aix_version=`echo $version|sed -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)p\([0-9]*\)$/\1.\2/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)[^0-9\.].*$/\1/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)$/\1.0/'`
# Don't allow sudo to prompt for a password
pp_aix_sudo="sudo -n"
# Don't use sudo to list the package.
pp_aix_sudo=
%endif
%if [sd]