Red Hat Bugzilla – Bug 855367
Could the augeas lenses be packaged separately from any binaries
Last modified: 2013-04-30 19:42:23 EDT
Description of problem:
The lenses in augeas a currently in the augeas-libs rpm. This rpm contains a few binary objects. I would very much like to update the lenses on some of my systems, but don't want to create problems by changing out binaries or by overwriteing the files that rpm expects to find (resulting in rpm verify being upset). With the lenses just being text files rebuilding a number of binaries seems like extra effort for little gain.
The lenses are moving somewhat quickly in the augeas source tree, fixing bugs and addressing issues. There is no way a stable distribution like RHEL should try and keep up with the speed of these changes. However, I would like to on my system. It would be nice if the lense files themselves were packaged separately so that I could make my own rpm containing the updated lenses without having to rebuild the entire application.
In particular I wish to update my local lenses for krb5.conf, /etc/hosts.[allow|deny], sshd_config, and logrotate.
The augeas-libs package could depend on augeas-lenses which would keep any changes in user expirence minimized while giving me an elegant way of making changes that I can back out simply (yum downgrade augeas-lenses).
Version-Release number of selected component (if applicable):augeas-0.9.0-4.el6
How reproducible: always
Steps to Reproduce:
1. find a bug in a augeas lense
2. find a fix in the augeas source tree
3. wish for a clean way to update the lense locally
break rpm verify or rebuild augeas myself
a way to just update the lense
By default, augeas looks for lenses in /usr/share/augeas/lenses and /usr/share/augeas/lenses/dist (in that order) The latter is for the lenses that ship with Augeas; you can put your lenses into the former directory to override lenses that come with the augeas RPM.
You can also add more directories to the load path for lenses (which are searched before the two default directories) by setting the environment variable AUGEAS_LENS_LIB