Bug 221977 - [cad/kicad] failed to package if WITH_DEBUG=yes
Summary: [cad/kicad] failed to package if WITH_DEBUG=yes
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: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-01 11:42 UTC by Michael Zhilin
Modified: 2017-09-05 20:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (thierry)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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