Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501578 - sys-process/time - mdate-sh hangs if $TIME_STYLE is set to long_iso
Summary: sys-process/time - mdate-sh hangs if $TIME_STYLE is set to long_iso
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-02-17 12:33 UTC by Khayyam
Modified: 2014-02-18 12:50 UTC (History)
0 users

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


Attachments
patch to set TIME_STYLE in mdate-sh (mdate-sh.patch,300 bytes, patch)
2014-02-17 12:33 UTC, Khayyam
Details | Diff
sys-process/time-1.7-r2.ebuild (time-1.7-r2.ebuild,715 bytes, text/plain)
2014-02-17 12:34 UTC, Khayyam
Details

Note You need to log in before you can comment on or make changes to this bug.
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.