Bug 270007

Summary: lang/zig: build failure without DOCS
Product: Ports & Packages Reporter: Mark Felder <feld>
Component: Individual Port(s)Assignee: Dave Cottlehuber <dch>
Status: Closed FIXED    
Severity: Affects Only Me CC: dch, dougs, jcfyecrayz, pat
Priority: --- Flags: bugzilla: maintainer-feedback? (dch)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
[patch] fix plist for DOCS=off jcfyecrayz: maintainer-approval? (dch)

Description Mark Felder freebsd_committer freebsd_triage 2023-03-07 15:08:52 UTC
====> Running Q/A tests (stage-qa)
Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%DOCSDIR%%/langref.html
Error: Missing: %%DOCSDIR%%/std/data.js
Error: Missing: %%DOCSDIR%%/std/index.html
Error: Missing: %%DOCSDIR%%/std/main.js
===> Error: Plist issues found.
*** Error code 1
Comment 1 dougs@dawnsign.com 2023-09-06 21:34:59 UTC
info: cp /usr/ports/lang/zig/work/zig-0.10.1/zig-cache/o/bbb7fcfc0b0bf9caf376961fa29b0f1b/zig /usr/ports/lang/zig/work/stage/usr/local/bin/zig 
info: # installed
====> Compressing man pages (compress-man)
===>  Installing for zig-0.10.1_2
===>  Checking if zig is already installed
actual-package-depends: dependency on /usr/lib/liblzma.so not registered (normal if it belongs to base)
pkg-static: DEBUG: -/

===>   Registering installation for zig-0.10.1_2 as automatic
pkg-static: Unable to access file /usr/ports/lang/zig/work/stage/usr/local/share/doc/zig/langref.html:No such file or directory
pkg-static: Unable to access file /usr/ports/lang/zig/work/stage/usr/local/share/doc/zig/std/data.js:No such file or directory
pkg-static: Unable to access file /usr/ports/lang/zig/work/stage/usr/local/share/doc/zig/std/index.html:No such file or directory
pkg-static: Unable to access file /usr/ports/lang/zig/work/stage/usr/local/share/doc/zig/std/main.js:No such file or directory
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/lang/zig
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/zig
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/ncdu2
Comment 2 John Hein 2023-09-11 04:55:25 UTC
Created attachment 244766 [details]
[patch] fix plist for DOCS=off

The attached patch should fix the plist for DOCS=off.

Bump PORTREVISION at committer's discretion.  It will not affect default packages as DOCS are enabled by default.  And anyone building with DOCS=off will have been failing without this patch (as seen in this bug report).
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-01-04 23:26:16 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4b6d52cef58715e80c3e846f5997eceaa40fb4bc

commit 4b6d52cef58715e80c3e846f5997eceaa40fb4bc
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2024-01-04 23:25:10 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2024-01-04 23:25:10 +0000

    lang/zig: pet port after 0.11.0 update

    - fix optional DOCS build for PR270007
    - fix pkg-plist sorting
    - clean up work dirs to help docs build
    - remove stale cmake flags

    PR:             270007

 lang/zig/Makefile                   |    9 +-
 lang/zig/files/patch-CMakeLists.txt |    2 +-
 lang/zig/pkg-plist                  | 1566 +++++++++++++++++------------------
 3 files changed, 790 insertions(+), 787 deletions(-)