Bug 281332

Summary: tzsetup creates broken symlink after 5e16809c953f (main) and fc43a1b6842a (stable/14)
Product: Base System Reporter: Herbert J. Skuhra <herbert>
Component: miscAssignee: Ed Maste <emaste>
Status: New ---    
Severity: Affects Only Me CC: jrm, pat
Priority: --- Keywords: regression
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Herbert J. Skuhra 2024-09-07 08:17:20 UTC
tzsetup creates a broken symlink when using with -C option (e.g make installworld DESTDIR=$X). e.g:

# jexec -l 1 date
Sat Sep  7 10:13:19 CEST 2024
# ls -l /jails/mail/etc/localtime
lrwxr-xr-x  1 root wheel 33 Sep  7 10:13 /jails/mail/etc/localtime -> /usr/share/zoneinfo/Europe/Berlin
# tzsetup -C /jails/mail -r
# ls -l /jails/mail/etc/localtime
lrwxr-xr-x  1 root wheel 45 Sep  7 10:14 /jails/mail/etc/localtime -> /jails/mail//usr/share/zoneinfo/Europe/Berlin
# jexec -l 1 date
Sat Sep  7 08:14:45 UTC 2024

Details here:

https://lists.freebsd.org/archives/freebsd-current/2024-September/006355.html
https://lists.freebsd.org/archives/dev-commits-src-all/2024-August/044194.html
Comment 1 Joseph Mingrone freebsd_committer freebsd_triage 2024-09-20 14:59:07 UTC
There is some context at https://reviews.freebsd.org/D37005.