Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20527 - portage/emerge : sleep should not use "0.1" format
Summary: portage/emerge : sleep should not use "0.1" format
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-06 08:17 UTC by Spider (RETIRED)
Modified: 2011-10-30 22:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2003-05-06 08:17:04 UTC
heres a snippet from my recent portage upgrade:
sleep: invalid time interval `0.1'
Try `sleep --help' for more information.
sleep: invalid time interval `0.1'
Try `sleep --help' for more information.
sleep: invalid time interval `0.1'
Try `sleep --help' for more information.
sleep: invalid time interval `0.1'
Try `sleep --help' for more information.
sleep: invalid time interval `0.1'
Try `sleep --help' for more information.


Darkmere root # locale
LANG=sv_SE
LC_CTYPE="sv_SE"
LC_NUMERIC="sv_SE"
LC_TIME="sv_SE"
LC_COLLATE="sv_SE"
LC_MONETARY="sv_SE"
LC_MESSAGES=en_GB
LC_PAPER="sv_SE"
LC_NAME="sv_SE"
LC_ADDRESS="sv_SE"
LC_TELEPHONE="sv_SE"
LC_MEASUREMENT="sv_SE"
LC_IDENTIFICATION="sv_SE"
LC_ALL=


the "," is a separator, the "." is not.


Reproducible: Always
Steps to Reproduce:
Unmask portage .38, emerge portage
Comment 1 Spider (RETIRED) gentoo-dev 2003-05-06 08:22:17 UTC
sorry, correct version is:
sys-apps/portage-2.0.48_pre5
Comment 2 Sankara Krishnamoorthy 2003-05-06 12:11:41 UTC
All my preX ebuilds including portage-2.0.48_pre5.ebuild have

  echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1

 line numbers : 169-173 in the portage-2.0.48_pre5.ebuild

since sleep inherits each computers locale to understand notations, all locales where a decimal point is NOT represented with a (.) will give an error. 

locales can be found at /usr/share/locale/local.alias

A trivial fix would be a "sleep 1" instead of a "sleep 0.1"
Comment 3 François MASSON 2003-05-16 08:47:16 UTC
I have portage-2.0.48_pre6 with French locale and still having the bug.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-08-03 12:36:39 UTC
fixed (or should we better say worked around ?)