Created attachment 233810 [details] Diff patch for the tree Adds new port, vtm, which is a terminal multiplexer with UTF-8, truecolor and mouse support. It has the ability to render terminal buffers as tiling "windows" inside a terminal, and sharing these as a session. Do not confuse with sysutils/dvtm.
Thank you for your submission. I apologise it took so long to get this looked at. Make sure to set "maintainer-approval" on your patches so they get looked at. As for your new port, here are some issues I found: - MASTER_SITES=GH seems bogus. No MASTER_SITES is needed with USE_GITHUB=yes - please remove WWW: from pkg-descr and instead add a WWW variable to the Makefile. This was changed last autumn. - please update the patch to refer to the newest release if possible. Port looks good otherwise! Will proceed with a build test once I hear back from you. Make sure to set maintainer-approval on the new patch!
I want to help creating this port but i don't have much CMake knowledge to handle the lua thing in CMakeLists.txt. I will attach my patch that does what fuz@ said. Any help appreciated, thanks in advance.
===> Performing out-of-source build /bin/mkdir -p /wrkdirs/usr/ports/sysutils/vtm/work/.build CMake Warning: Ignoring extra path from command line: "/wrkdirs/usr/ports/sysutils/vtm/work/.build/FETCHCONTENT_FULLY_DISCONNECTED=BOOL:off" CMake Warning at /usr/local/share/cmake/Modules/FetchContent.cmake:2111 (message): FETCHCONTENT_FULLY_DISCONNECTED is set to true, which requires the source directory for dependency lua to already be populated. This generally means it must not be set to true the first time CMake is run in a build directory. The following source directory should already be populated, but it doesn't exist: /wrkdirs/usr/ports/sysutils/vtm/work/.build/_deps/lua-src Policy CMP0170 controls enforcement of this requirement. Call Stack (most recent call first): /usr/local/share/cmake/Modules/FetchContent.cmake:2384 (__FetchContent_Populate) CMakeLists.txt:38 (FetchContent_MakeAvailable) -- Configuring done (0.0s) CMake Error at CMakeLists.txt:41 (add_library): No SOURCES given to target: lua CMake Generate step failed. Build files cannot be regenerated correctly. *** Error code 1 Stop. make: stopped in /usr/ports/sysutils/vtm
Created attachment 258415 [details] sysutils/vtm.patch
I added "set(FETCHCONTENT_FULLY_DISCONNECTED FALSE)" to CMakeLists.txt because couldn't set it in Makefile correctly, it started to build and it's now at 97% now, I will let you know if it builds fine.
(In reply to Yusuf Yaman from comment #5) Hi Yusuf, Luckily FETCHCONTENT_FULLY_DISCONNECTED is an option we set by default. There should be no need to set it yourself. The port looks reasonable. As the submitter has not followed up, someone else would need to maintain the port for it to be accepted. Could I interest you?
(In reply to Robert Clausecker from comment #6) I see, thanks for the information. I am interested in but i don't know how should i modify the CMakeLists.txt file to handle that lua thing. I looked at other ports with "find" tool to see what they do for this situation but I couldn't find a solution.
Created attachment 258435 [details] sysutils/vtm.patch I added a patch to files directory that uses pkgconfig and makes pkgconfig to find lua module and compilation improved a bit after this. But now it's complaining about cannot find -llua. I'm trying to look at other ports but couldn't succeed yet, tried LDFLAGS but it still says -llua-${LUA_VER} not found. I test in poudriere via testport and "-i" flag. Thanks
I also was added CFLAGS to point to Lua's include dir. This is error i have. [100% 2/2] : && /usr/local/libexec/ccache/c++ -O2 -pipe -I/usr/local/include/lua54 -fstack-protector-strong -fno-strict-aliasing -std=c++20 -pthread -O2 -pipe -I/usr/local/include/lua54 -fstack-protector-strong -fno-strict-aliasing -std=c++20 -DNDEBUG -fstack-protector-strong -Xlinker --dependency-file=CMakeFiles/vtm.dir/link.d CMakeFiles/vtm.dir/src/vtm.cpp.o -o vtm -llua && : FAILED: vtm : && /usr/local/libexec/ccache/c++ -O2 -pipe -I/usr/local/include/lua54 -fstack-protector-strong -fno-strict-aliasing -std=c++20 -pthread -O2 -pipe -I/usr/local/include/lua54 -fstack-protector-strong -fno-strict-aliasing -std=c++20 -DNDEBUG -fstack-protector-strong -Xlinker --dependency-file=CMakeFiles/vtm.dir/link.d CMakeFiles/vtm.dir/src/vtm.cpp.o -o vtm -llua && : ld: error: unable to find library -llua c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/sysutils/vtm
Adding code below doesn't solve it either... +LDFLAGS+= -L${LUA_LIBDIR} -llua-${LUA_VER}
(In reply to Yusuf Yaman from comment #10) Please try to post only one comment at a time as each time you add a commit, an email is sent to all subscribers. You can write comments as long as you want, but try to put all of your stuff in one comment before hitting "save changes." That said, I can go ahead and figure this out if you commit to maintaining the port.
(In reply to Robert Clausecker from comment #11) Oh, sorry, i'll be careful. Thank you very much, yes i want to maintain this port.
Created attachment 258500 [details] sysutils/vtm.patch I fixed the lua part, this port helped me creating the patch: /usr/ports/emulators/tic-80/files/patch-CMakeLists.txt I also updated to latest distversion which released 3h ago, poudriere testport passes on 142amd64-default and i pet'd port{clippy,fmt,lint}. Thanks for your interest. As far as i can see, the port works fine in xterm, didn't work with my suckless st, though even though it's listed as tested.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=294265d4bd5108206dcd6fba0c5921e39b5a256c commit 294265d4bd5108206dcd6fba0c5921e39b5a256c Author: Yusuf Yaman <nxjoseph@protonmail.com> AuthorDate: 2025-03-08 00:19:45 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2025-03-16 10:19:28 +0000 sysutils/vtm: New port: Text-based desktop environment Text based desktop environment inside the terminal. Allows for tiling terminal buffers, detaching sessions and remote collaborative work. WWW: https://github.com/directvt/vtm PR: 263864 Reported by: Daniel Pérez <y7v81xhon@mozmail.com> sysutils/Makefile | 1 + sysutils/vtm/Makefile (new) | 27 +++++++++++++++++++++++ sysutils/vtm/distinfo (new) | 3 +++ sysutils/vtm/files/patch-CMakeLists.txt (new) | 31 +++++++++++++++++++++++++++ sysutils/vtm/pkg-descr (new) | 3 +++ 5 files changed, 65 insertions(+)
Thanks!
Thank you for your contribution. Sorry for the slow commit.