pkgsrc-WIP-discuss archive

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

Re: pkglint warning: XXX should not be evaluated at load time



Aleksey Cheusov wrote:
> Can anybody explain what does this pkglint warning mean
> and how to fix it?
> 
> --------------     wip/libmaa     -----------------
> WARN: Makefile:27: EXTRA_DOC_FILES should not be evaluated at load time.
> 0 errors and 1 warnings found.
> 
>      24 EXTRA_DOC_FILES=        COPYING.LIB README doc/libmaa.600dpi.ps
>      25 
>      26 post-install:
>      27 .for i in ${EXTRA_DOC_FILES}
>      28         ${INSTALL_DATA} ${WRKSRC}/${i} ${PKGDOCDIR}
>      29 .endfor

Since there is nothing wrong in this case, I have fixed pkglint to not 
print any warning when all variables that are used in the .for loop are 
user-defined. That's not perfect, but at least helps in your case.

Roland

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss



Home | Main Index | Thread Index | Old Index