public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/vlock/files/, app-misc/vlock/
@ 2020-06-22 10:09 Patrice Clement
  0 siblings, 0 replies; only message in thread
From: Patrice Clement @ 2020-06-22 10:09 UTC (permalink / raw
  To: gentoo-commits

commit:     7c9c4bb93ca357ee64c8e040cc9f079ed3261e16
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 22 10:08:40 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Jun 22 10:09:37 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9c4bb9

app-misc/vlock: patch vlock shell script.

replace echo with printf.

Closes: https://bugs.gentoo.org/637598
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 app-misc/vlock/files/vlock-2.2.3-echo-printf.patch | 11 +++++++++++
 app-misc/vlock/vlock-2.2.3-r1.ebuild               |  4 ++++
 2 files changed, 15 insertions(+)

diff --git a/app-misc/vlock/files/vlock-2.2.3-echo-printf.patch b/app-misc/vlock/files/vlock-2.2.3-echo-printf.patch
new file mode 100644
index 00000000000..fd3653fb282
--- /dev/null
+++ b/app-misc/vlock/files/vlock-2.2.3-echo-printf.patch
@@ -0,0 +1,11 @@
+--- a/vlock       2020-06-22 10:03:48.700469805 -0000
++++ b/vlock       2020-06-22 10:03:57.880385148 -0000
+@@ -17,7 +17,7 @@
+ set -e
+ 
+ # Magic characters to clear the terminal.
+-CLEAR_SCREEN="`echo -e '\033[H\033[J'`"
++CLEAR_SCREEN="`printf '\033[H\033[J'`"
+ 
+ # Enter message that is common to different the messages.
+ VLOCK_ENTER_PROMPT="Please press [ENTER] to unlock."

diff --git a/app-misc/vlock/vlock-2.2.3-r1.ebuild b/app-misc/vlock/vlock-2.2.3-r1.ebuild
index b6c8a2c4b17..6bac4b08b79 100644
--- a/app-misc/vlock/vlock-2.2.3-r1.ebuild
+++ b/app-misc/vlock/vlock-2.2.3-r1.ebuild
@@ -54,5 +54,9 @@ src_configure() {
 
 src_install() {
 	default
+
+	# See bug #637598.
+	epatch "${FILESDIR}/${P}-echo-printf.patch"
+
 	use pam && pamd_mimic_system vlock auth
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-22 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-22 10:09 [gentoo-commits] repo/gentoo:master commit in: app-misc/vlock/files/, app-misc/vlock/ Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox