Barry Kauler wrote:
> glibc 2.17 it seems no longer has timezone data in it -- it is in
> earlier versions, I don't know what version it got dropped.
>
> It means that a distro must be built with the 'tzdata' package also.
>
> But there is a clash, starting at stage 1, compiling tzdata:
>
> !> Found shared files with other packages:
> !> usr/sbin/zdump: glibc tzdata
> !> usr/sbin/zic: glibc tzdata
>
> My quick hack to keep going was to Move file
> build/*/var/adm/flists/glibc to somewhere else, temporary replaced
> with an empty file 'glibc', restore afterward.
>
> However, what we really need, in tzdata.conf, detect if glibc package
> chosen, then do not install those two files.
I thought of solving it this way in tzdata.conf:
# BK 131130 these files clash with glibc: usr/sbin/zdump, zic ...
flistfix1_func() {
if grep 'usr/sbin/zdump' $root/var/adm/flists/glibc;then
mv -f $root/var/adm/flists/glibc $root/var/adm/
touch $root/var/adm/flists/glibc
fi
}
hook_add postinstall 1 "flistfix1_func"
hook_add postinstall 5 "flistfix1_func"
flistfix2_func() {
#if grep 'usr/sbin/zdump' $root/var/adm/flists/glibc;then
if [ -f $root/var/adm/glibc ];then
sed -i -e '/usr\/sbin\/zdump/d' -e '/usr\/sbin\/zic/d'
$root/var/adm/flists/tzdata
mv -f $root/var/adm/glibc $root/var/adm/flists/
fi
}
hook_add finish 1 "flistfix2_func"
hook_add finish 5 "flistfix2_func"
...but that is very awkward code. There must be a much more elegant
way of fixing the clash.
I am not familiar enough with T2 to understand that more elegant way.
Can anyone suggest some simple code, to go into either glibc.conf or
tzdata.conf.
Basically, the utilities 'zdump' and 'zic' in both packages are
equivalent, so can be dropped from either, so as to avoid the clash.
Regards,
Barry Kauler
On 11/29/13, Barry Kauler <[email protected]> wrote:
> glibc 2.17 it seems no longer has timezone data in it -- it is in
> earlier versions, I don't know what version it got dropped.
>
> It means that a distro must be built with the 'tzdata' package also.
>
> But there is a clash, starting at stage 1, compiling tzdata:
>
> !> Found shared files with other packages:
> !> usr/sbin/zdump: glibc tzdata
> !> usr/sbin/zic: glibc tzdata
>
> My quick hack to keep going was to Move file
> build/*/var/adm/flists/glibc to somewhere else, temporary replaced
> with an empty file 'glibc', restore afterward.
>
> However, what we really need, in tzdata.conf, detect if glibc package
> chosen, then do not install those two files.
>
> Regards,
> Barry Kauler
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2