commit: 9c0d3e9784e757d0555156e0f76102cfa3d715cb Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Thu Sep 3 13:21:10 2020 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Thu Sep 3 13:21:24 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c0d3e97
sys-apps/kmscon: add ewarn about login.defs problem Rather than try to patch login.defs for everyone, let's just tell kmscon users how to fix their login.defs if needed. This way we do not have to deal with unintended fallout from modifying a base system package. Closes: https://bugs.gentoo.org/667106 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> sys-apps/kmscon/kmscon-8-r1.ebuild | 8 ++++++++ sys-apps/kmscon/kmscon-8_p20180906.ebuild | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/sys-apps/kmscon/kmscon-8-r1.ebuild b/sys-apps/kmscon/kmscon-8-r1.ebuild index 31ab17695d0..831393bd22a 100644 --- a/sys-apps/kmscon/kmscon-8-r1.ebuild +++ b/sys-apps/kmscon/kmscon-8-r1.ebuild @@ -135,3 +135,11 @@ src_install() { emake DESTDIR="${D}" install systemd_dounit "${S}/docs"/kmscon{,vt@}.service } + +pkg_postinst() { + grep -e "^ERASECHAR" "${EROOT}"/etc/login.defs && \ + ewarn "It is recommended that you comment out the ERASECHAR line in" && \ + ewarn " /etc/login.defs for proper backspace functionality at the" && \ + ewarn " kmscon login prompt. For details see:" && \ + ewarn "https://github.com/dvdhrm/kmscon/issues/69#issuecomment-13827797" +} diff --git a/sys-apps/kmscon/kmscon-8_p20180906.ebuild b/sys-apps/kmscon/kmscon-8_p20180906.ebuild index ad7c9809336..c24fedc3f96 100644 --- a/sys-apps/kmscon/kmscon-8_p20180906.ebuild +++ b/sys-apps/kmscon/kmscon-8_p20180906.ebuild @@ -133,3 +133,11 @@ src_install() { emake DESTDIR="${D}" install systemd_dounit "${S}/docs"/kmscon{,vt@}.service } + +pkg_postinst() { + grep -e "^ERASECHAR" "${EROOT}"/etc/login.defs && \ + ewarn "It is recommended that you comment out the ERASECHAR line in" && \ + ewarn " /etc/login.defs for proper backspace functionality at the" && \ + ewarn " kmscon login prompt. For details see:" && \ + ewarn "https://github.com/dvdhrm/kmscon/issues/69#issuecomment-13827797" +}
