Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169338 - net-mail/email ebuild should check/etc/conf.d/clock instead of /etc/rc.conf
Summary: net-mail/email ebuild should check/etc/conf.d/clock instead of /etc/rc.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Andrej Kacian (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-04 18:08 UTC by Gerben Vos
Modified: 2007-03-04 21:30 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 Gerben Vos 2007-03-04 18:08:39 UTC
The ebuild for net-mail/email-2.5.1, as well as earlier versions, checks /etc/rc.conf for the setting of CLOCK. There are two problems with that:

1) The CLOCK setting is actually located in /etc/conf.d/clock, and not at all in /etc/rc.conf (maybe it used to be there??? anyway, it is wrong now).

2) It is not quite clear to me what the connection is between the setting of the hardware clock and the time zone used by a mail sending utility. These seem to be different concepts to me. A USE flag would be more appropriate. (In fact, it might be an idea if the upstream developer made this a user instead of a compile-time setting.)

Reproducible: Always

Steps to Reproduce:
1. Put CLOCK=UTC in /etc/conf.d/clock .
2. Build net-mail/email.
3. 
Actual Results:  
The --with-utc flag is not passed to configure (the message "Using UTC timestamps (from /etc/rc.conf)" does not appear between unpacking and compiling).

Expected Results:  
The --with-utc flag is passed to configure (the message "Using UTC timestamps (from /etc/rc.conf)" appears between unpacking and compiling).
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2007-03-04 18:53:40 UTC
You're right - CLOCK setting used to be in /etc/rc.conf, but it was moved. I forgot to update email ebuilds.

Fixed in 2.5.0 and 2.5.1, thanks.

As for your questions, CLOCK setting is used for system time, not hardware clock. I agree with you that it should be made user setting. I suggest you contact upstream maintainer by e-mail if you feel strongly about it - he usually responds quickly and seems to be an OK guy.
Comment 2 Gerben Vos 2007-03-04 21:30:50 UTC
Thanks for the fast response. You rock! :-)

I don't agree with you on the second point though, but I'll contact the upstream maintainer as suggested for the even better fix.