"ts -r" doesn't work

Bug #506596 reported by Rory McCann
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
moreutils (Debian)
Fix Released
Unknown
moreutils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: moreutils

ts is one of the commands in moreutils for "timestamp input". The man page says:

If the -r switch is passed, it instead converts existing timestamps in the input to relative times, such as "15m5s ago". Many common timestamp
       formats are supported. Note that the Time::Duration and Date::Parse perl modules are required for this mode to work.

However if you use the "-r" option, you get the following error message:

$ echo test | ts -r
Can't locate Time/Duration.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 1) line 3.
BEGIN failed--compilation aborted at (eval 1) line 3.

If ts depends on extra perl modules to work, then moreutils should depend on it

ProblemType: Bug
Architecture: i386
Date: Tue Jan 12 20:17:30 2010
DistroRelease: Ubuntu 9.10
Package: moreutils 0.35
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: moreutils
Uname: Linux 2.6.31-16-generic i686

Revision history for this message
Rory McCann (rorymcc) wrote :
Revision history for this message
gUI (guillaume-betous) wrote :

Hi,

This issue is still present on Ubuntu 12.04

Revision history for this message
gUI (guillaume-betous) wrote :

The needed package is libtime-duration-perl. This corrects the issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in moreutils (Ubuntu):
status: New → Confirmed
Revision history for this message
kenjo (ken-kenjo) wrote :

Can anybody just add libtime-duration-perl as a dependency for the package and close this.

that is al that is needed.

Changed in moreutils (Debian):
status: Unknown → New
Revision history for this message
Michael (mdunphy-g) wrote :

Hi, this bug is /still/ present in 16.04.3...

Changed in moreutils (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.