Bug 265882 - misc/zoneinfo: Fails to install due to incorrect pkg-plist
Summary: misc/zoneinfo: Fails to install due to incorrect pkg-plist
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steven Kreuzer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 13:48 UTC by Matthew Kern
Modified: 2022-08-16 18:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kern 2022-08-16 13:48:48 UTC
Attempting to update from zoneinfo-2022.a_1 to 2022.b fails on make install with the following errors:

pkg-static: Unable to access file /usr/ports/misc/zoneinfo/work/stage/usr/share/zoneinfo/Europe/Kiev:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/zoneinfo/work/stage/usr/share/zoneinfo/UTC:No such file or directory

Europe/Kiev has been renamed to Europe/Kyiv, and so is no longer in the package. UTC is also no longer present (perhaps replaced by Etc/UTC?). These entries were never removed from pkg-plist, so the install phase fails to find them.

This likely affects any system with WITHOUT_ZONEINFO="Yes"
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2022-08-16 15:33:50 UTC
Assigning to maintainer (committer)
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-08-16 18:04:51 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6cb70ed52ab5d5cab21f1a63562ffb06cdfb9fee

commit 6cb70ed52ab5d5cab21f1a63562ffb06cdfb9fee
Author:     Steven Kreuzer <skreuzer@FreeBSD.org>
AuthorDate: 2022-08-16 17:57:48 +0000
Commit:     Steven Kreuzer <skreuzer@FreeBSD.org>
CommitDate: 2022-08-16 18:02:04 +0000

    misc/zoneinfo: Update to 2022c and fix plist

    Changes:
      * Work around awk bug in FreeBSD, macOS, etc.
      * Improve tzselect on intercontinental Zones.

    Fix pkg-plist when options BACKWARD is not enabled

    PR:             265882
    Reported by:    Matthew Kern <mkern@alconconstruction.com>

 misc/zoneinfo/Makefile  | 2 +-
 misc/zoneinfo/distinfo  | 6 +++---
 misc/zoneinfo/pkg-plist | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
Comment 3 Steven Kreuzer freebsd_committer freebsd_triage 2022-08-16 18:05:50 UTC
plist when option BACKWARD is not defined has been fixed. Thanks for bringing this to my attention