Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2025 15:58:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 285307] net-im/telegram-desktop: Remove ccache bits from CMAKE_ARGS
Message-ID:  <bug-285307-7788-2aWGyRPi3D@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-285307-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-285307-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285307

--- Comment #7 from Anton Saietskii <vsasjason@gmail.com> ---
(In reply to Guido Falsi from comment #6)

I assure you -- those are _different_ issues. I speak so confidently because
that was me who requested adding lines which I now ask to remove.

The problem was with 'USES+=3Dllvm' initially -- in such form it defines
CC/CXX/CPP (see lines 141-145 of Mk/Uses/llvm.mk). As a result, despite cca=
che
being installed, telegram was invoking compiler by absolute path
('/usr/local/llvm16/bin/clang' in that case), thus effectively masking ccac=
he.
After discussing issue with fluffy@, a decision has been made to use cmake's
mechanism [0] to circumvent that and make compiler invocation look like
'/usr/local/bin/ccache /usr/local/llvm16/bin/clang ...', which has been
implemented in 1e452f6a9cbb7f13333f3db1e2599e61c7deb7b0.
After ed6ff40a4da9fbffbb5d93e6cc1f4e891a0e7c2f, we don't use llvm from port=
s,
thus don't need to wrap compiler anymore.

The root cause of a problem lies not in telegram-desktop, but in
Mk/bsd.ccache.mk and Mk/Uses/llvm.mk (especially when they're being used
together), thus actually needs to be fixed there.

[0]:
https://cmake.org/cmake/help/latest/envvar/CMAKE_LANG_COMPILER_LAUNCHER.html

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285307-7788-2aWGyRPi3D>