Opened 9 years ago

Closed 9 years ago

#3496 closed task (fixed)

/etc/localtime is no longer created by default

Reported by: Chris Staub Owned by: lfs-book@…
Priority: normal Milestone: 7.5
Component: Book Version: SVN
Severity: normal Keywords:


The Glibc instructions have the "--remove-destination" switch on the command to cp the appropriate timezone file to /etc/localtime, but that file is not created by the Glibc installation anymore, so that switch is not needed.

Attachments (1)

localtime.patch (1.3 KB ) - added by Chris Staub 9 years ago.

Download all attachments as: .zip

Change History (6)

by Chris Staub, 9 years ago

Attachment: localtime.patch added

comment:1 by Bryan Kadzban, 9 years ago

What about when compiling glibc a second time (same version, ICA-style)? The file will be there from the first install. What if something else creates a symlink? (You don't want to overwrite the target of the symlink...)

comment:2 by bdubbs@…, 9 years ago

Bryan, I think this is a slippery slope. We really don't recommend rebuilding glibc outside of the LFS chroot environment. Inside Chapter 6, we know what we've got and there the switch is not needed. Adding commands for what someone might do later seems to be beyond the scope of LFS.

You might have a point for some other package, but glibc is special.

comment:3 by Bryan Kadzban, 9 years ago

Yeah, I can see your point. Hmm.

I guess I'm just being nostalgic -- this particular use of --remove-destination is where I first learned it existed, and I use it all the time at work (where the build system produces binaries with mode 0555 by default, so if you build something and then copy it to a stable location outside the build tree, then upgrading requires either --remove-destination or remembering to change the mode). And we don't use it anywhere else in the book.

But either way I guess.

comment:4 by bdubbs@…, 9 years ago

Fixed at revision 10467.

comment:5 by bdubbs@…, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.