Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 501578

Summary: sys-process/time - mdate-sh hangs if $TIME_STYLE is set to long_iso
Product: Gentoo Linux Reporter: Khayyam <cselkirk>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=133489
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to set TIME_STYLE in mdate-sh
sys-process/time-1.7-r2.ebuild

Description Khayyam 2014-02-17 12:33:27 UTC
Created attachment 370630 [details, diff]
patch to set TIME_STYLE in mdate-sh

If TIME_STYLE is set (in my case to 'iso-long') the emerge of sys-process/time will hang when attempting to run '$(SHELL) ./mdate-sh time.texi' this is because the mdate.sh script expects to output a string (ie 'january'), but in the case of 'iso-long' it will output a numerical value and not the expected string. With the string not forthcoming the mdate-sh process hangs indefinitely and the emerge never completes.

To test the above:

export TIME_STYLE="iso-long" ; emerge sys-process/time

Attatched is a bumped ebuild and patch which sets TIME_STYLE to 'locale' and so corrects the issue.
Comment 1 Khayyam 2014-02-17 12:34:21 UTC
Created attachment 370632 [details]
sys-process/time-1.7-r2.ebuild
Comment 2 Khayyam 2014-02-17 13:02:23 UTC
(In reply to Khayyam from comment #0)
 
> To test the above:
> 
> export TIME_STYLE="iso-long" ; emerge sys-process/time

sorry, correction:

export TIME_STYLE="long-iso" ; emerge sys-process/time
Comment 3 SpanKY gentoo-dev 2014-02-18 03:57:53 UTC
should be fixed in autotools.eclass:
http://sources.gentoo.org/eclass/autotools.eclass?r1=1.159&r2=1.160
Comment 4 Khayyam 2014-02-18 12:50:19 UTC
(In reply to SpanKY from comment #3)
> should be fixed in autotools.eclass:

Indeed, that seems to have fixed it. Thanks.