Bug 216530

Summary: emulators/qemu-sbruno fails when build without docs
Product: Ports & Packages Reporter: Gerrit Beine <mail+freebsd>
Component: Individual Port(s)Assignee: Sean Bruno <sbruno>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (sbruno)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Gerrit Beine 2017-01-27 19:38:58 UTC
poudriere-devel cannot build the port when DOCS option is not set.
Snippet from the logfile:
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===>  Building package for qemu-sbruno-2.8.50.g20170123
pkg-static: Unable to access file /wrkdirs/usr/ports/emulators/qemu-sbruno/work/stage/usr/local/man/man7/qemu-ga-ref.7.gz: No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/emulators/qemu-sbruno/work/stage/usr/local/man/man7/qemu-qmp-ref.7.gz: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/qemu-sbruno

The following patch resolves this error.
These two man pages do not exist if portdocs are not build.

diff -Nur qemu-sbruno.orig/pkg-plist qemu-sbruno/pkg-plist
--- qemu-sbruno.orig/pkg-plist  2017-01-27 20:32:59.000000000 +0100
+++ qemu-sbruno/pkg-plist       2017-01-27 20:23:54.000000000 +0100
@@ -48,8 +48,8 @@
 %%SOFTMMU%%@sample etc/qemu-ifdown.sample
 %%SOFTMMU%%man/man1/qemu.1.gz
 %%SOFTMMU%%man/man1/qemu-img.1.gz
-%%SOFTMMU%%man/man7/qemu-ga-ref.7.gz
-%%SOFTMMU%%man/man7/qemu-qmp-ref.7.gz
+%%PORTDOCS%%%%SOFTMMU%%man/man7/qemu-ga-ref.7.gz
+%%PORTDOCS%%%%SOFTMMU%%man/man7/qemu-qmp-ref.7.gz
 %%SOFTMMU%%man/man8/qemu-ga.8.gz
 %%SOFTMMU%%man/man8/qemu-nbd.8.gz
 %%SOFTMMU%%%%DATADIR%%/QEMU,cgthree.bin
Comment 1 Gerrit Beine 2017-05-26 07:41:42 UTC
Hi there,
after every change on this port, poudriere fails building it if it's build without docs.
Is there any reason to not apply this patch?
So long...

Gerrit
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2017-06-13 15:22:50 UTC
(In reply to Gerrit Beine from comment #1)
Oh, no.  There's no reason to not commit this.  Let me do an update and rebuild.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-06-13 17:45:30 UTC
A commit references this bug:

Author: sbruno
Date: Tue Jun 13 17:45:02 UTC 2017
New revision: 443528
URL: https://svnweb.freebsd.org/changeset/ports/443528

Log:
  Update to support NODOCS build

  PR:		216530
  Submitted by:	Gerrit Bernie <mail+freebsd@gerritbeine.de>

Changes:
  head/emulators/qemu-sbruno/Makefile
  head/emulators/qemu-sbruno/pkg-plist