I use Gentoo and after installing there are two different xkbcomp binaries. betelgeuse@risto bin $ md5sum /usr/bin/xkbcomp 6fd5be9f76f717f2f3b54246ab5f880b /usr/bin/xkbcomp betelgeuse@risto bin $ md5sum /usr/lib/X11/xkb/xkbcomp b0208d47499b95cf46241adac20f874c /usr/lib/X11/xkb/xkbcomp In Gentoo /usr/lib/X11/xkb is under configuration file protection. This means that the user has to manually merge changes to files in that directory. There is a bug in one of the tools people use to merge these files which causes xkbcomp to become 0 size. See: http://bugs.gentoo.org/show_bug.cgi?id=87764 People have corrected this error by symlinking the binary in /usr/lib/X11/xkb to the one in /usr/bin/. I've had no problems using xkbcomp like this. I don't know what the difference between these two files is, but I suggest that the one in /usr/lib/X11/xkb would be made a symbolink link. This would make file easier for us Gentoo users and free little disk space. Even if the merge tool would work correctly with binary files, users are sometimes confused what to do with new binary files.
When built from X.Org sources, the exact same xkbcomp binary is installed to both locations - if gentoo is giving you different binaries, then it would seem to be a gentoo bug. (I'd close as NOTOURBUG, but the general point of it being confusing to install duplicate copies of the same binary stands - I don't know why that is done.)
betelgeuse@pena /mnt/checkouts/overlays/java/dev-java/japitools $ md5sum /usr/bin/xkbcomp 50db2a13f90a08e16928d7a028287e88 /usr/bin/xkbcomp betelgeuse@pena /mnt/checkouts/overlays/java/dev-java/japitools $ md5sum /usr/lib/X11/xkb/xkbcomp 50db2a13f90a08e16928d7a028287e88 /usr/lib/X11/xkb/xkbcomp Well with the version I now have installed they are the same so nothing wrong on the Gentoo side any more.
packaging issue
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.