Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222867 - openrc-0.2.4-r1 doesn't update/upgrade timezone data, ebuild issue
Summary: openrc-0.2.4-r1 doesn't update/upgrade timezone data, ebuild issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-19 23:12 UTC by Hopeless
Modified: 2008-05-31 07:04 UTC (History)
0 users

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


Attachments
source /etc/conf.d/clock BEFORE moving ir (openrc-0.2.4-r1.ebuild,8.75 KB, text/plain)
2008-05-19 23:17 UTC, Hopeless
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hopeless 2008-05-19 23:12:18 UTC
In openrc-0.2.4-r1.ebuild, there is the following;

        # /etc/conf.d/clock moved to /etc/conf.d/hwclock
        local clock
        use kernel_FreeBSD && clock="adjkerntz" || clock="hwclock"
        if [[ -e ${ROOT}/etc/conf.d/clock ]] ; then
                mv "${ROOT}"/etc/conf.d/clock "${ROOT}"/etc/conf.d/${clock}
        fi

followed a little later by;

        # upgrade timezone file
        if [[ -e ${ROOT}/etc/conf.d/clock && ! -e ${ROOT}/etc/timezone ]] ; then
                (
                source "${ROOT}"/etc/conf.d/clock
                [[ -n ${TIMEZONE} ]] && echo "${TIMEZONE}" > "${ROOT}"/etc/timezone
                )
        fi

The second part is never executed, because ${ROOT}/etc/conf.d/clock has already been moved by the first...



Reproducible: Always
Comment 1 Hopeless 2008-05-19 23:17:13 UTC
Created attachment 153701 [details]
source /etc/conf.d/clock BEFORE moving ir

Updated ebuild, simply moving the section which creates /etc/timezone before the section which moves /etc/conf.d/clock
Comment 2 SpanKY gentoo-dev 2008-05-31 07:03:03 UTC
Comment on attachment 153701 [details]
source /etc/conf.d/clock BEFORE moving ir

do not post complete files ... it makes it a pain for developers to review.  post diffs.