Bug 252284

Summary: www/owncloud: Build fails in package phase when EXAMPLES OPTION is unset with pkg 1.16 or later
Product: Ports & Packages Reporter: John W. O'Brien <john>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: daniel, sunpoet
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
www/owncloud: Fix build without EXAMPLES john: maintainer-approval? (sunpoet)

Description John W. O'Brien 2020-12-30 14:11:22 UTC
Created attachment 221103 [details]
www/owncloud: Fix build without EXAMPLES

Synopsis
========

When the EXAMPLES option is unset, the newsyslog file is not staged and therefore cannot be packaged by the "@sample" line in pkg-plist. Prior to pkg 1.16, this was not a fatal error.


Log samples
===========

2020-12-17
pkg 1.15.10

=======================<phase: package        >============================
===>  Building package for owncloud-php74-10.5.0
pkg-static: Unable to access file /wrkdirs/usr/ports/www/owncloud/work-php74/stage/usr/local/share/examples/owncloud/newsyslog:No such file or directory
===========================================================================


2020-12-26
pkg 1.16.0

=======================<phase: package        >============================
===>  Building package for owncloud-php74-10.6.0
pkg-static: Unable to access file /wrkdirs/usr/ports/www/owncloud/work-php74/stage/usr/local/share/examples/owncloud/newsyslog:No such file or directory
pkg-static: Fail to apply keyword 'sample'
*** Error code 1

Stop.


Changelog
=========

*   Exclude newsyslog sample unless EXAMPLES
*   While here, pet portlint (7-bit ASCII clean) and bump PORTREVISION


QA
==

portlint: OK
poudriere: OK -- bulk on 12.2R amd64 with and without EXAMPLES
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2021-01-30 12:36:40 UTC
Committed. Thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-01-30 12:36:50 UTC
A commit references this bug:

Author: sunpoet
Date: Sat Jan 30 12:36:12 UTC 2021
New revision: 563396
URL: https://svnweb.freebsd.org/changeset/ports/563396

Log:
  Fix packaging when EXAMPLES disabled

  - Update pkg-descr: convert UTF-8 to ASCII

  PR:		252284
  Submitted by:	John W. O'Brien <john@saltant.com>

Changes:
  head/www/owncloud/pkg-descr
  head/www/owncloud/pkg-plist