Date: Tue, 24 Nov 2020 09:51:11 +0100 From: Rainer Hurling <rhurlin@gwdg.de> To: <freebsd-ports@FreeBSD.org> Subject: Portlint complains about %%FOO%% in PLIST_FILES Message-ID: <50337e9b-ab50-6877-a5a6-213006f2195e@gwdg.de>
next in thread | raw e-mail | index | archive | help
Yesterday I committed net/hblock [r556099] after changing the patch to PLIST_FILES (instead of pkg-plist with only two files) against the suggestion of the submitter.The line in question is: PLIST_FILES=bin/${PORTNAME} %%MANPAGES%%man/man1/hblock.1.gz I made this change because it allows the port to build and install correctly in all combinations of OPTIONS. With the use of %%MANPAGES%%% in PLIST_FILES one can selectively enable and disable the building of manpages. The maintainer of net/hblock informs me about a problem with using %%MANPAGES%% in PLIST_FILES. I don't know why I did not notice the message from 'portlint -AC' before: FATAL: PLIST_FILES: files cannot contain %%FOO%% variables. Use make variables and logic instead Is it possibly correct to use %%MANPAGES%% in PLIST_FILES and only portlint can't handle it? Is there an alternative to switching back to pkg-plist file? Thanks in advance for clarification and maybe a suggestion for correct usage. Regards, Rainer Hurling
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50337e9b-ab50-6877-a5a6-213006f2195e>