tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkglint question - PLIST_VARS vs PLIST_SRC+= & PLIST_SUBST

On Fri, Mar 06, 2009 at 04:22:10PM +0000, David Brownlee wrote:
>       Is the general recommended way to conditionalise certain
>       elements in a PLIST to use PLIST_VARS rather than PLIST_SUBST
>       or PLIST_SRC+= ?

They fill different needs. The only case that pkglint might possible
warn against is the use of "" vs @comment.

As a guide line, something the like following could be included in the

(1) Is it about a single file or a small set of files? If yes, use
PLIST_VARS. For a larger number of files, PLIST_SRC can be more useful.

(2) PLIST_SUBST should be kept down to trivial substitions like platform
specific naming components or version specific pathes. They should
generally be accompanied with rules for print-PLIST.


Home | Main Index | Thread Index | Old Index