Created attachment 144521 [details] patch to fix PORTDOCS/PORTEXAMPLES/PORTDATA @dirrm generation for globs in subdirs (PORTDOCS=dir/*) PORTDOCS/PORTEXAMPLES/PORTDATA are variables to ease installing documentation, examples, or other port data into the ${SHAREDIR} or thereabouts. The porter's handbook lists and example thus: PORTDOCS= README.* ChangeLog docs/* However, the add-plist-docs and related targets fail to create a @dirrm docs entry for the .PLIST.mktmp file. Cause is that this target necessarily expands the globs on the ${FIND} -P -d command line, thus, causing something like /usr/bin/find -P -d /usr/ports/some/port/work/stage/usr/local/share/doc/someport/docs/FILE1 to be run, which will only match the "find -type d" constraint for nested directories. In order to catch those, we need to strip trailing components that contain glob characters, to let FIND handle those. The attached patch does this. This may not work for deeply nested structures when the parents are empty, i. e. PORTDOCS=file1 glob1* deep/ly/nes/ted/glob*
assign to maintainer
ping?
This needs an exprun (how many ports would this break with pkg developer mode due to duplicate lines?) Do we really want to fix this when dirrm is going to die in a few weeks?
If I hadn't wanted to fix that I wouldn't have submitted the patch. Exp-run flag set. And who knows if "remove @dirrm" isn't just a temporary fad. I wouldn't stake anything to promise we'll just ditch @dirrm altogether.
Take for qat exp-run
Hi, QAT exp-run results at http://package23.nyi.freebsd.org/build.html?mastername=91amd64-default-PR191746&build=2014-08-26_05h22m45s It breaks 1 port with pkg developer mode (and unbreaks 0 port): + {"origin"=>"net-mgmt/netmond", "pkgname"=>"netmond-2.2b6_6", "phase"=>"package", "errortype"=>"???"} Error log: http://package23.nyi.freebsd.org/data/91amd64-default-PR191746/2014-08-26_05h22m45s/logs/errors/netmond-2.2b6_6.log
reset exp-run flag
Created attachment 146394 [details] additional patch to fix the netmond regression The additional patch here should fix the netmond regression.
Created attachment 146408 [details] revised patch to fix up netmond's @mode, too, and bump PORTREVISION revise netmond patch
approved
committed as r366361.
A commit references this bug: Author: mandree Date: Wed Aug 27 21:52:26 UTC 2014 New revision: 366361 URL: http://svnweb.freebsd.org/changeset/ports/366361 Log: Fix @dirrm auto-generation for PORTDOCS/PORTEXAMPLES/PORTDATA with globs. Fix up net-mgmt/netmond pkg-plist for @mode (regression with pkg from r347404 committed by rene@) and remove two @dirrm lines that are now excess. Exp-run completed. PR: 191746 Reviewed by: antoine Approved by: portmgr (antoine) Changes: head/Mk/bsd.port.mk head/net-mgmt/netmond/Makefile head/net-mgmt/netmond/pkg-plist
A commit references this bug: Author: antoine Date: Thu Aug 28 07:38:12 UTC 2014 New revision: 366382 URL: http://svnweb.freebsd.org/changeset/ports/366382 Log: Commit the version of the patch that was exp-runned PR: 191746 With hat: portmgr Changes: head/Mk/bsd.port.mk