Bug 221977

Summary: [cad/kicad] failed to package if WITH_DEBUG=yes
Product: Ports & Packages Reporter: Michael Zhilin <mizhka>
Component: Individual Port(s)Assignee: Thierry Thomas <thierry>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (thierry)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Michael Zhilin freebsd_committer freebsd_triage 2017-09-01 11:42:33 UTC
Hi,

Today I've tried to build cad/kicad (fresh tree, 12-CURRENT) with WITH_DEBUG=yes. It's failed due to error:

===>  Building package for kicad-4.0.7,2
pkg-static: Unable to access file /usr/ports/cad/kicad/work/stage/usr/local/share/doc/kicad/development/stable-debug-policy.md:No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/cad/kicad
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/kicad

In pkg-plist this file is corresponding to:

%%PORTDOCS%%%%DOCSDIR%%/development/stable-%%CMAKE_BUILD_TYPE%%-policy.md

But actual tree is:

# ls /usr/ports/cad/kicad/work/stage/usr/local/share/doc/kicad/development/

coding-style-policy.md   
compiling.md             
Doxyfile                 
road-map.md              
stable-release-policy.md

i.e. actual file name is stable-release-policy.md. I suppose it's issue of make-plist ;) and can be fixed by replace of macros by "release" in this line. But I doubt...
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2017-09-05 20:07:14 UTC
Fixed, thanks for the report!
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-09-05 20:07:25 UTC
A commit references this bug:

Author: thierry
Date: Tue Sep  5 20:07:12 UTC 2017
New revision: 449312
URL: https://svnweb.freebsd.org/changeset/ports/449312

Log:
  Fix plist with WITH_DEBUG=yes
  (I suspect that makeplist is too smart...)

  PR:		221977
  Submitted by:	mizhka (at) gmail.com

Changes:
  head/cad/kicad/pkg-plist