With a little side of applesauce...

Thursday, May 23, 2013

/usr/lib64/python2.6/site-packages/rhsm/certificate.py:123: DeprecationWarning: Call to deprecated function: hasNow category=DeprecationWarning)

This is fixed with the following changes to /usr/libexec/rhsmd:

        #if warning_range.hasNow():
        if warning_range.has_now():

Reference:
https://github.com/candlepin/subscription-manager/commit/5557f0bec9b582582a51d5207712c48c00d03d9d
https://bugzilla.redhat.com/show_bug.cgi?id=912707

Monday, May 20, 2013

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

I just upgraded to Mountain Lion on Friday, and have been plagued by this error:
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
The best fix that I have seen is:
sudo () { ( unset LD_LIBRARY_PATH DYLD_LIBRARY_PATH; exec command sudo $* ) }
Short and elegant. Stolen from here.