Re: git: e7f74f03835a - main - dns/kf6-kdnssd: explicitly depend on avahi

From: Vladimir Druzenko <vvd_at_freebsd.org>
Date: Sun, 23 Mar 2025 18:38:51 UTC
Hello!
23.03.2025 12:36, Max Brazhnikov пишет:
> The branch main has been updated by makc:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=e7f74f03835af185a6aeb5d1b798fdf89421bf8b
>
> commit e7f74f03835af185a6aeb5d1b798fdf89421bf8b
> Author:     Max Brazhnikov <makc@FreeBSD.org>
> AuthorDate: 2025-03-23 09:34:36 +0000
> Commit:     Max Brazhnikov <makc@FreeBSD.org>
> CommitDate: 2025-03-23 09:34:36 +0000
>
>      dns/kf6-kdnssd: explicitly depend on avahi
>      
>      Avahi is already pulled via CUPS option in devel/qt6-base port.

This is not true - for cups avahi is an optional dependency.
And here it is better to make it optional too, but default.
dns/kf6-kdnssd builds perfectly without avahi.

> ---
>   dns/kf6-kdnssd/Makefile | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/dns/kf6-kdnssd/Makefile b/dns/kf6-kdnssd/Makefile
> index 105b6767dbd4..e22394560dd4 100644
> --- a/dns/kf6-kdnssd/Makefile
> +++ b/dns/kf6-kdnssd/Makefile
> @@ -5,6 +5,8 @@ CATEGORIES=	dns kde kde-frameworks
>   COMMENT=	Network service discovery using Zeroconf
>   MAINTAINER=	kde@FreeBSD.org
>   
> +BUILD_DEPENDS=	${LOCALBASE}/include/avahi-common/defs.h:net/avahi-app
> +
>   USES=		cmake kde:6 qt:6 tar:xz
>   USE_KDE=	ecm:build
>   USE_QT=		base tools


-- 
Best regards,
Vladimir Druzenko