Re: what to do about "FATAL: PLIST_FILES: files cannot contain %%FOO%% variables. Use make variables and logic instead"

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Tue, 08 Oct 2024 15:16:49 UTC
Van: Piotr Smyrak <ps.ports@smyrak.com>
Datum: dinsdag, 8 oktober 2024 14:48
Aan: ports@freebsd.org
Onderwerp: Re: what to do about "FATAL: PLIST_FILES: files cannot contain %%FOO%% variables. Use make variables and logic instead"
> 
> On Tue, 8 Oct 2024 14:34:23 +0200 (CEST)
> Ronald Klop <ronald-lists@klop.ws> wrote:
> 
> > I was looking for a change to devel/jna and after running portlint it
> > says:
> >
> > FATAL: PLIST_FILES: files cannot contain %%FOO%% variables.  Use make
> > variables and logic instead
> >
> > The lines in the Makefile this is about are:
> > PLIST_FILES=    %%JAVAJARDIR%%/jna-platform.jar \
> >                 %%JAVAJARDIR%%/jna.jar
> >
> > What would be the proper solution for this?
> 
> See x11-fonts/iansui Makefile for an example.
> 
> HTH,
> -- 
>  Piotr Smyrak
>  
> 
> 
> 


Ok, I took a look. Does it mean just replacing %%JAVAJARDIR%% with ${JAVAJARDIR}?

Rebuild the package now in poudriere and that seems to work fine.

Regards,
Ronald.