Pre-built packages, "mkpkg" and "osversion"/"osrelease" errors

"Greg Earle" <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
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.
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.