mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
www-client/links: replace echo for printf.
Courtesy of Lars Wendler <polynomial-c@gentoo.org>. Closes: https://bugs.gentoo.org/667304 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"echo -n" is not POSIX compliant but printf is.
|
||||
See "man 1p echo" section "APPLICATION USAGE" or visit
|
||||
https://www.in-ulm.de/%7Emascheck/various/echo+printf/
|
||||
|
||||
--- a/intl/synclang.orig 2020-06-03 19:13:38.082539276 -0000
|
||||
+++ b/intl/synclang 2020-06-03 19:13:59.122352023 -0000
|
||||
@@ -6,7 +6,7 @@
|
||||
if [ -n "$languages" ]; then
|
||||
for i in $languages; do
|
||||
if [ "$i" != english ]; then
|
||||
- echo -n $i" " 1>&2
|
||||
+ printf '%s ' "$i" 1>&2
|
||||
awk -f synclang.awk <$i.lng | sed 's/␍//g' >_sync.tmp
|
||||
mv $i.lng ../intl-bak/$i.lng.bak
|
||||
mv _sync.tmp $i.lng
|
||||
--- a/intl/gen-intl.orig 2020-06-03 19:14:37.258679373 -0000
|
||||
+++ b/intl/gen-intl 2020-06-03 19:14:47.651920249 -0000
|
||||
@@ -10,7 +10,7 @@
|
||||
n=0
|
||||
echo '/* Automatically generated by gen-intl */'
|
||||
for i in $languages; do
|
||||
- echo -n $i" " 1>&2
|
||||
+ printf '%s ' "$i" 1>&2
|
||||
if test `cat $i.lng|wc -l` != `cat english.lng|wc -l`; then
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
@@ -83,6 +83,8 @@ REQUIRED_USE="!livecd? ( fbcon? ( gpm ) )
|
||||
|
||||
DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
|
||||
|
||||
PATCHES=( "${FILESDIR}/swap-echo-for-printf.patch" )
|
||||
|
||||
src_prepare() {
|
||||
use X && xdg_environment_reset
|
||||
|
||||
|
||||
Reference in New Issue
Block a user