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

Bug 222867

Summary: openrc-0.2.4-r1 doesn't update/upgrade timezone data, ebuild issue
Product: Gentoo Linux Reporter: Hopeless <hopeless>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: source /etc/conf.d/clock BEFORE moving ir

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.