summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2020-09-03 08:21:10 -0500
committerBen Kohler <bkohler@gentoo.org>2020-09-03 08:21:24 -0500
commit9c0d3e9784e757d0555156e0f76102cfa3d715cb (patch)
tree822e9ddca22d7258aea53b2478086900eba07e26
parentsys-kernel/gentoo-sources: Linux patch 4.19.143 (diff)
downloadgentoo-9c0d3e9784e757d0555156e0f76102cfa3d715cb.tar.gz
gentoo-9c0d3e9784e757d0555156e0f76102cfa3d715cb.tar.bz2
gentoo-9c0d3e9784e757d0555156e0f76102cfa3d715cb.zip
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@gentoo.org>
-rw-r--r--sys-apps/kmscon/kmscon-8-r1.ebuild8
-rw-r--r--sys-apps/kmscon/kmscon-8_p20180906.ebuild8
2 files changed, 16 insertions, 0 deletions
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"
+}