{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/1260","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/1260/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/1260/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/1260/events","html_url":"https://github.com/systemd/systemd/issues/1260","id":106285978,"number":1260,"title":"localectl: add /usr/local/ to keymap search list","user":{"login":"quibo","id":13872337,"avatar_url":"https://avatars.githubusercontent.com/u/13872337?v=3","gravatar_id":"","url":"https://api.github.com/users/quibo","html_url":"https://github.com/quibo","followers_url":"https://api.github.com/users/quibo/followers","following_url":"https://api.github.com/users/quibo/following{/other_user}","gists_url":"https://api.github.com/users/quibo/gists{/gist_id}","starred_url":"https://api.github.com/users/quibo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quibo/subscriptions","organizations_url":"https://api.github.com/users/quibo/orgs","repos_url":"https://api.github.com/users/quibo/repos","events_url":"https://api.github.com/users/quibo/events{/privacy}","received_events_url":"https://api.github.com/users/quibo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/locale","name":"locale","color":"bfd4f2"},{"url":"https://api.github.com/repos/systemd/systemd/labels/RFE","name":"RFE","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T07:29:28Z","updated_at":"2016-04-18T14:45:25Z","closed_at":null,"body":"**Problem:** cannot put local keymaps in `/usr/local/...`\r\n\r\n**Description:**\r\nThe list of system directories searched for keymaps is hard-coded in `src/basic/def.h`:\r\n```c\r\n    51  #ifdef HAVE_SPLIT_USR\r\n    52  #define KBD_KEYMAP_DIRS                         \\\r\n    53          \"/usr/share/keymaps/\\0\"                 \\\r\n    54          \"/usr/share/kbd/keymaps/\\0\"             \\\r\n    55          \"/usr/lib/kbd/keymaps/\\0\"               \\\r\n    56          \"/lib/kbd/keymaps/\\0\"\r\n    57  #else\r\n    58  #define KBD_KEYMAP_DIRS                         \\\r\n    59          \"/usr/share/keymaps/\\0\"                 \\\r\n    60          \"/usr/share/kbd/keymaps/\\0\"             \\\r\n    61          \"/usr/lib/kbd/keymaps/\\0\"\r\n    62  #endif\r\n```\r\n\r\nSysadmins may need to add local keymaps, and they put them somewhere below `/usr/local/`; for example in `/usr/local/share/keymaps`.\r\n\r\nThe simpler workaround (creating a symbolic link in `/usr/share/keymaps/local -> /usr/local/share/keymaps`) does not work, since the `nftw` implementing the keymaps search skips symbolic links and does not cross mount points.\r\n\r\nThe only choice left is to copy local keymaps in `/usr/lib/...` which is not good :-)\r\n"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/211410333","html_url":"https://github.com/systemd/systemd/issues/1260#issuecomment-211410333","issue_url":"https://api.github.com/repos/systemd/systemd/issues/1260","id":211410333,"user":{"login":"poettering","id":2130732,"avatar_url":"https://avatars.githubusercontent.com/u/2130732?v=3","gravatar_id":"","url":"https://api.github.com/users/poettering","html_url":"https://github.com/poettering","followers_url":"https://api.github.com/users/poettering/followers","following_url":"https://api.github.com/users/poettering/following{/other_user}","gists_url":"https://api.github.com/users/poettering/gists{/gist_id}","starred_url":"https://api.github.com/users/poettering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poettering/subscriptions","organizations_url":"https://api.github.com/users/poettering/orgs","repos_url":"https://api.github.com/users/poettering/repos","events_url":"https://api.github.com/users/poettering/events{/privacy}","received_events_url":"https://api.github.com/users/poettering/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T14:45:25Z","updated_at":"2016-04-18T14:45:25Z","body":"I'll mark this as postponed, as long as it isn#t clear that kbd actually looks in /usr/local too."}}