14.03.2026 19:37, Stuart Henderson пишет:
> On 2026/03/06 17:44, Klemens Nanni wrote:
>> CVSROOT:     /cvs
>> Module name: ports
>> Changes by:  [email protected]    2026/03/06 17:44:34
>>
>> Modified files:
>>      net/tdlib      : Makefile.inc distinfo 
>>      net/tdlib/patches: patch-CMakeLists_txt 
>>
>> Log message:
>> update to tdlib 1.8.62
>>
> 
> this no longer handles -DPHP_FOUND=OFF;> 
> CMake Warning:
>   Manually-specified variables were not used by the project:
> [...]
>     CMAKE_OBJC_COMPILER_AR
>     CMAKE_OBJC_COMPILER_RANLIB
>     PHP_FOUND
> [...]
> FAILED: td/generate/CMakeFiles/tl_generate_common 
> /pobj/tdlib-1.8.62/build-i386/td/generate/CMakeFiles/tl_generate_common 
> cd 
> /pobj/tdlib-1.8.62/td-e597838871547131ef92332fca601f5effba4e8a/td/generate/auto
>  && /pobj/tdlib-1.8.62/build-i386/td/generate/generate_common && 
> /usr/local/bin/php ../DoxygenTlDocumentationGenerator.php ../scheme/td_api.tl 
> td/telegram/td_api.h

So it found the php binary during configure, ...

> Write file td/telegram/telegram_api_0.cpp
> Write file td/telegram/telegram_api_1.cpp
> Write file td/telegram/telegram_api_2.cpp
> [...]
> Write file td/telegram/td_api.h
> Write file td/telegram/td_api.hpp
> /bin/sh: /usr/local/bin/php: not found

... but during build it is gone.

> ninja: build stopped: subcommand failed.
> 
> still building, but I think this is what we want instead.
> ok if build works?
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/tdlib/tdlib/Makefile,v
> diff -u -p -r1.3 Makefile
> --- Makefile  2 Sep 2025 16:56:17 -0000       1.3
> +++ Makefile  14 Mar 2026 16:36:27 -0000
> @@ -5,6 +5,6 @@ SHARED_LIBS =         tdjson  0.1
>  WANTLIB =            ${COMPILER_LIBCXX} crypto m ssl z
>  
>  CONFIGURE_ARGS +=    -DCCACHE_FOUND=OFF \
> -                     -DPHP_FOUND=OFF
> +                     -DTD_ENABLE_DOTNET=OFF

TD_ENABLE_DOTNET is a default-OFF option (*_FOUND are variables)
and PHP still gets picked up:

        # pkg_add php%8.3
        $ make configure
        $ (cd `make show=WRKBUILD`; grep -r 'found.*php')
        CMakeFiles/CMakeConfigureLog.yaml:    found: "/usr/local/bin/php"

OK kn for the diff below, which should build fine with PHP junked
after configure and before build.

Thanks!

diff --git net/tdlib/tdlib/Makefile net/tdlib/tdlib/Makefile
index e9811436dd8..9df02581db5 100644
--- net/tdlib/tdlib/Makefile
+++ net/tdlib/tdlib/Makefile
@@ -5,6 +5,6 @@ SHARED_LIBS =           tdjson  0.1
 WANTLIB =              ${COMPILER_LIBCXX} crypto m ssl z
 
 CONFIGURE_ARGS +=      -DCCACHE_FOUND=OFF \
-                       -DPHP_FOUND=OFF
+                       -DPHP_EXECUTABLE=OFF
 
 .include <bsd.port.mk>

Reply via email to