Re: glibc-2.42 instuctions don't clearly say where to build Time Zone data
"Richard Henschel" ([email protected] via lfs-support Mailing List) <[email protected]> Fri, 28 Nov 2025 19:57:05 -0600
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
On 11/28/25 00:28, Bruce Dubbs ([email protected] via lfs-support Mailing List) wrote: > On 11/26/25 7:16 PM, "Richard" ([email protected] via > lfs-support Mailing List) wrote: >> The instructions work fine, just not clear where: >> >> Add 'cd glibc-2.42/timezone' directory or ../timezone if in the 'build' >> directory at the top. >> There is also a timezone directory in the 'build' directory where >> this won't >> work. > > As stated in Part III, page iii, General Compilation Instructions, > Second 'Important' note: > > 3. For each package: > > a. Using the tar program, extract the package to be built. > > b. Change to the directory created when the package was extracted. > > ... > > So we assume starting in the directory $LFS/sources/glibc-2.42/, or > in Chapters 7 and 8 just /sources/glibc-2.42. > > The only time we say to change directories is > > mkdir -v build > cd build > > Don't read things into the instructions that are not there. All other > commands use either relative directory locations or absolute directory > paths. > > -- Bruce > True, but you never tell the installer to "cd timezone" directory in the root of the package source. You should. I only did because I did install of libc years ago and knew there was such a directory, and got a clue when did "tar -xf ../../tzdata2025b.tar.gz" showing that I was supposed to be in a subdirectory under the source root. A newbie might not catch that. The instruction block should be: cd timezone tar -xf ../../tzdata2025b.tar.gz ZONEINFO=/usr/share/zoneinfo mkdir -pv $ZONEINFO/{posix,right} for tz in etcetera southamerica northamerica europe africa antarctica \ asia australasia backward; do zic -L /dev/null -d $ZONEINFO ${tz} zic -L /dev/null -d $ZONEINFO/posix ${tz} zic -L leapseconds -d $ZONEINFO/right ${tz} done cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO zic -d $ZONEINFO -p America/New_York unset ZONEINFO tz -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page