Re: git: 78cbcc365c09 - main - graphics/graphviz: unbreak build with GHOSTSCRIPT enabled after dd152219f70d

From: Rene Ladan <rene_at_freebsd.org>
Date: Mon, 03 Jul 2023 16:45:33 UTC
On Mon, Jul 03, 2023 at 08:33:00AM +0000, Dima Panov wrote:
> The branch main has been updated by fluffy:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=78cbcc365c098b3e1bd17683ff24ff7202f14b62
> 
> commit 78cbcc365c098b3e1bd17683ff24ff7202f14b62
> Author:     Dima Panov <fluffy@FreeBSD.org>
> AuthorDate: 2023-07-03 08:30:28 +0000
> Commit:     Dima Panov <fluffy@FreeBSD.org>
> CommitDate: 2023-07-03 08:30:28 +0000
> 
>     graphics/graphviz: unbreak build with GHOSTSCRIPT enabled after dd152219f70d
>     
>     Global variable _GS_PORT now have cathegory defined
>     
>     Error: graphics/graphviz depends on nonexistent origin 'print/print/ghostscript9-agpl-base';
>     
>     Reported by:    poudriere fallout
>     Approved by:    portmgr blanket
> ---
>  graphics/graphviz/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
> index bf9a8bf286f5..6f7fe8668fb4 100644
> --- a/graphics/graphviz/Makefile
> +++ b/graphics/graphviz/Makefile
> @@ -112,7 +112,7 @@ GUILE_LIB_DEPENDS=	libguile-2.2.so:lang/guile2 \
>  			libgc-threaded.so:devel/boehm-gc-threaded
>  PHP_LIB_DEPENDS=	libpcre.so:devel/pcre \
>  			libargon2.so:security/libargon2
> -GHOSTSCRIPT_LIB_DEPENDS=	libgs.so:print/${_GS_PORT}
> +GHOSTSCRIPT_LIB_DEPENDS=	libgs.so:${_GS_PORT}
>  
I think we want a USES=ghostscript:lib defined in Mk/Uses/ghostscript.mk instead of this.

Regards,
René