Re: git: 50119a0b4317 - main - net-im/telegram-desktop: Cleanup and set new maintainer

From: Alexey Dokuchaev <danfe_at_freebsd.org>
Date: Thu, 18 Nov 2021 01:59:08 UTC
On Wed, Nov 17, 2021 at 05:08:01PM +0000, Olivier Cochard wrote:
> commit 50119a0b431718d00a22f424a550239246021ff9
> 
>   net-im/telegram-desktop: Cleanup and set new maintainer
>   
>   Reported by:    glebius

Sorry, I don't understand, what exactly was "reported" here?  This
looks more like a patch submission committed without maintainer
approval.

> -CMAKE_OFF=	DESKTOP_APP_USE_PACKAGED_RLOTTIE DESKTOP_APP_USE_PACKAGED_VARIANT \
> -		DESKTOP_APP_USE_GLIBC_WRAPS TDESKTOP_USE_PACKAGED_TGVOIP \
> -		DESKTOP_APP_USE_PACKAGED_FONTS
> +CMAKE_OFF=	DESKTOP_APP_USE_PACKAGED_FONTS

These vars being dropped from CMAKE_OFF should've been explained.

> +INSTALLS_ICONS=	yes
> +

Please see the latest CHANGES entry 20211010.

> -.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} <= 100
> -post-patch:
> -	@${REINPLACE_CMD} -e '/-fstack-clash-protection/d' ${WRKSRC}/cmake/options_linux.cmake
> +.if ${COMPILER_VERSION} < 120
> +LLVM_VER=	12
> +BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
> +CC=		${LOCALBASE}/bin/clang${LLVM_VER}
> +CXX=		${LOCALBASE}/bin/clang++${LLVM_VER}

Pulling in non-default LLVM port is hardly a "cleanup" and also deserves
a proper explanation; so does removing those patches.

./danfe