[sudo-users] Pre-built packages, "mkpkg" and "osversion"/"osrelease" errors

Greg Earle earle at isolar.DynDNS.ORG
Mon Feb 4 17:23:24 MST 2019


Question for Todd or anyone else:

Is it possible to find out what OS the pre-made binaries on sudo.ws were 
built on?  (e.g. "linux-build.sudo.ws")

We want to use them to bring our 'sudo' versions up to date across 
multiple platforms (mainly RHEL 5.x/6.x/7.x) but we'd prefer to build 
our own using "mkpkg" if the pre-built RPMs for RHEL are built on newer 
versions of the OS than our oldest LCD version.

In looking into building our own with "mkpkg", I found a bug.  If the OS 
minor release is 10 or above (e.g. RHEL 5.10/5.11/6.10), the "osversion" 
string will be something like "rhel510-i386" and then

osrelease=`echo "$osversion" | sed -e 's/^[^0-9]*//' -e 's/-.*$//'`

down-converts that to just "510", which of course is higher than "60" so 
"mkpkg" erroneously adds in the options for RHEL 6 (i.e. LDAP and SSS 
support).

I noticed the "sudoers.so" library in the pre-built RPM did not have 
this support, so clearly it was built on RHEL 5.9 or earlier.


More information about the sudo-users mailing list