public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/et] epel10: Update to 7.1.1
@ 2026-11-11 10:04 Michel Lind
  0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-11-11 10:04 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/et
            Branch : epel10
            Commit : a52185b0c39100f0754bdfe4d3f85c4f8af13500
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-11-10T22:49:16+00:00
            Stats  : +495/-71 in 7 file(s)
            URL    : https://src.fedoraproject.org/rpms/et/c/a52185b0c39100f0754bdfe4d3f85c4f8af13500?branch=epel10

            Log:
            Update to 7.1.1

- et client short options now match OpenSSH (-c -t -p -l -x -f -N -v -e);
  the previous meanings remain available as long options
- Build with telemetry disabled; it sent errors to Sentry and logs to
  Datadog by default
- Package etctl, et1 and the bash/zsh completions
- Declare bundled libraries from the upstream submodule pins, fail the
  build on newly bundled ones, and update License accordingly
- Fix the build with -Wall -Werror and an unterminated sun_path
  (upstream PRs #920 and #921)
- Let the FD_SETSIZE poller test raise the open file limit, which is 1024
  on Koji builders (upstream PR #922)
- BuildRequire procps-ng for the htm end-to-end tests

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Michel Lind <salimma@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index b04c3f9..bc1b749 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /et-v*.*.*.tar.gz
 /et-*.tar.xz
 /EternalTerminal-6.2.11.tar.gz
+/EternalTerminal-7.1.1.tar.gz

diff --git a/et-pr920-gcc-wall-warnings.patch b/et-pr920-gcc-wall-warnings.patch
new file mode 100644
index 0000000..9f1e701
--- /dev/null
+++ b/et-pr920-gcc-wall-warnings.patch
@@ -0,0 +1,181 @@
+From 1d6e0cb0d4b480ae68fdc76eec59a26a9de74bf0 Mon Sep 17 00:00:00 2001
+From: Michel Lind <salimma@fedoraproject.org>
+Date: Tue, 10 Nov 2026 18:52:06 +0000
+Subject: [PATCH] fix: build cleanly with -Wall
+
+Distribution builds add -Wall to CXXFLAGS (Fedora's default flags do),
+and ET_WARNINGS_AS_ERRORS then turns these warnings into errors:
+
+- -Wreorder: initialize the ServerConnection and SessionEndTerminal
+  (test) members in declaration order
+- -Wsign-compare: use size_t for loop indices compared with size(), and
+  for the ~user name length in ssh_path_expand_tilde()
+- -Wunused-variable: drop unused locals in ParseConfigFile.hpp and
+  TerminalServerTest.cpp
+- -Wunused-function: define the TelemetryStorageTest helpers only when
+  telemetry is compiled in, since every use is under #ifndef NO_TELEMETRY
+
+No functional change.
+
+Assisted-by: Claude Code:claude-opus-5-5
+---
+ src/base/ServerConnection.cpp                 | 4 ++--
+ src/base/SubprocessUtilsUnix.cpp              | 4 ++--
+ src/terminal/ParseConfigFile.hpp              | 5 +----
+ test/integration_tests/TerminalServerTest.cpp | 5 ++---
+ test/integration_tests/TerminalTest.cpp       | 4 ++--
+ test/unit_tests/TelemetryStorageTest.cpp      | 2 ++
+ test/unit_tests/UserTerminalHandlerTest.cpp   | 2 +-
+ 7 files changed, 12 insertions(+), 14 deletions(-)
+
+diff --git a/src/base/ServerConnection.cpp b/src/base/ServerConnection.cpp
+index 1cbe5e273..802b857c0 100644
+--- a/src/base/ServerConnection.cpp
++++ b/src/base/ServerConnection.cpp
+@@ -5,8 +5,8 @@ ServerConnection::ServerConnection(
+     const SocketEndpoint& _serverEndpoint)
+     : socketHandler(_socketHandler),
+       serverEndpoint(_serverEndpoint),
+-      startTime_(time(NULL)),
+-      clientHandlerThreadPool(new ThreadPool(8)) {
++      clientHandlerThreadPool(new ThreadPool(8)),
++      startTime_(time(NULL)) {
+   socketHandler->listen(serverEndpoint);
+ }
+ 
+diff --git a/src/base/SubprocessUtilsUnix.cpp b/src/base/SubprocessUtilsUnix.cpp
+index feb93eb40..d10525122 100644
+--- a/src/base/SubprocessUtilsUnix.cpp
++++ b/src/base/SubprocessUtilsUnix.cpp
+@@ -47,14 +47,14 @@ string SubprocessUtils::SubprocessToStringInteractive(
+ 
+     char** argsArray = new char*[args.size() + 2];
+     argsArray[0] = strdup(command.c_str());
+-    for (int a = 0; a < args.size(); a++) {
++    for (size_t a = 0; a < args.size(); a++) {
+       argsArray[a + 1] = strdup(args[a].c_str());
+     }
+     argsArray[args.size() + 1] = NULL;
+     execvp(command.c_str(), argsArray);
+ 
+     LOG(INFO) << "execvp error";
+-    for (int a = 0; a <= args.size(); a++) {
++    for (size_t a = 0; a <= args.size(); a++) {
+       free(argsArray[a]);
+     }
+     delete[] argsArray;
+diff --git a/src/terminal/ParseConfigFile.hpp b/src/terminal/ParseConfigFile.hpp
+index 2f5b869ed..bf980a5fd 100644
+--- a/src/terminal/ParseConfigFile.hpp
++++ b/src/terminal/ParseConfigFile.hpp
+@@ -519,7 +519,7 @@ inline char* ssh_path_expand_tilde(const char* d) {
+     STFATAL << "~user/path format not supported on windows";
+ #else
+     struct passwd* pw;
+-    int s = p - d;
++    size_t s = p - d;
+     char u[128];
+ 
+     if (s >= sizeof(u)) {
+@@ -1632,7 +1632,6 @@ static int ssh_config_get_yesno(char** str, int notfound) {
+ static void local_parse_file(const char* targethost, struct Options* options,
+                              const char* filename, int* parsing, int seen[]) {
+   string line;
+-  int len = 0;
+   std::string fileDir = fs::path(filename).parent_path().string();
+   if (fileDir.empty()) fileDir = ".";
+ 
+@@ -2013,8 +2012,6 @@ inline int parse_ssh_config_file(const char* targethost,
+                                  struct Options* options, string filename,
+                                  int* seen_inout = nullptr) {
+   string line;
+-  int len = 0;
+-  int read = 0;
+   unsigned int count = 0;
+   int parsing;
+   int local_seen[SOC_END - SOC_UNSUPPORTED] = {0};
+diff --git a/test/integration_tests/TerminalServerTest.cpp b/test/integration_tests/TerminalServerTest.cpp
+index d4c1100d3..b06988937 100644
+--- a/test/integration_tests/TerminalServerTest.cpp
++++ b/test/integration_tests/TerminalServerTest.cpp
+@@ -90,7 +90,6 @@ class ServerTestFakeSshSetupHandler : public FakeSshSetupHandler {
+           thread([userTerminalHandler]() { userTerminalHandler->run(); }));
+       auto tokens = split(jumphost, ':');
+       string jhost = tokens[0];
+-      int jport = stoi(tokens[1]);
+ 
+       // Create a socket handler for the jumphost to connect to the destination
+       shared_ptr<PipeSocketHandler> jumphostClientSocketHandler(
+@@ -460,12 +459,12 @@ TEST_CASE_METHOD(ServerEndToEndTestFixture, "ServerDataTransferTest",
+ 
+   // Test sending smaller amount of data
+   string s = "test_data_transfer";
+-  for (int a = 0; a < s.size(); a++) {
++  for (size_t a = 0; a < s.size(); a++) {
+     fakeConsole->simulateKeystrokes(string(1, s[a]));
+   }
+ 
+   string resultConcat;
+-  for (int a = 0; a < s.size(); a++) {
++  for (size_t a = 0; a < s.size(); a++) {
+     string result = fakeUserTerminal->getKeystrokes(1);
+     resultConcat = resultConcat.append(result);
+   }
+diff --git a/test/integration_tests/TerminalTest.cpp b/test/integration_tests/TerminalTest.cpp
+index 7e02f7012..e369a4570 100644
+--- a/test/integration_tests/TerminalTest.cpp
++++ b/test/integration_tests/TerminalTest.cpp
+@@ -1206,7 +1206,7 @@ void simultaneousTerminalConnectionTest(
+ 
+   const string s("test");
+   thread typeKeysThread([s, fakeConsole]() {
+-    for (int a = 0; a < s.size(); a++) {
++    for (size_t a = 0; a < s.size(); a++) {
+       VLOG(1) << "Writing packet " << a;
+       fakeConsole->simulateKeystrokes(string(1, s[a]));
+     }
+@@ -1214,7 +1214,7 @@ void simultaneousTerminalConnectionTest(
+ 
+   string resultConcat;
+   string result;
+-  for (int a = 0; a < s.size(); a++) {
++  for (size_t a = 0; a < s.size(); a++) {
+     result = fakeUserTerminal->getKeystrokes(1);
+     resultConcat = resultConcat.append(result);
+     LOG(INFO) << "ON MESSAGE " << a;
+diff --git a/test/unit_tests/TelemetryStorageTest.cpp b/test/unit_tests/TelemetryStorageTest.cpp
+index f4fc7657f..199f18f29 100644
+--- a/test/unit_tests/TelemetryStorageTest.cpp
++++ b/test/unit_tests/TelemetryStorageTest.cpp
+@@ -79,6 +79,7 @@ class TelemetrySandbox {
+   map<string, optional<string>> saved;
+ };
+ 
++#ifndef NO_TELEMETRY
+ mode_t modeOf(const string& path) {
+   struct stat st;
+   if (lstat(path.c_str(), &st) != 0) throw std::runtime_error("lstat failed");
+@@ -99,6 +100,7 @@ string readFixture(const string& path) {
+   std::ifstream in(path);
+   return string(std::istreambuf_iterator<char>(in), {});
+ }
++#endif
+ }  // namespace
+ 
+ TEST_CASE("Telemetry creates private configuration and preserves its id",
+diff --git a/test/unit_tests/UserTerminalHandlerTest.cpp b/test/unit_tests/UserTerminalHandlerTest.cpp
+index a60f48782..adbfa7d16 100644
+--- a/test/unit_tests/UserTerminalHandlerTest.cpp
++++ b/test/unit_tests/UserTerminalHandlerTest.cpp
+@@ -58,7 +58,7 @@ class RouterPairSocketHandler : public PipeSocketHandler {
+ 
+ class SessionEndTerminal : public UserTerminal {
+  public:
+-  SessionEndTerminal() : masterFd(-1), peerFd(-1), exitCode(37) {}
++  SessionEndTerminal() : exitCode(37), masterFd(-1), peerFd(-1) {}
+   ~SessionEndTerminal() override { cleanup(); }
+ 
+   int setup(int /*routerFd*/) override {
+-- 
+2.56.0
+

diff --git a/et-pr921-pipe-path-length.patch b/et-pr921-pipe-path-length.patch
new file mode 100644
index 0000000..4e5603b
--- /dev/null
+++ b/et-pr921-pipe-path-length.patch
@@ -0,0 +1,125 @@
+From 62135ee2af798bc78e7a5ec8f329850ab7557131 Mon Sep 17 00:00:00 2001
+From: Michel Lind <salimma@fedoraproject.org>
+Date: Tue, 10 Nov 2026 20:38:58 +0000
+Subject: [PATCH] fix: reject pipe paths that do not fit in sun_path
+
+PipeSocketHandler::connect() and listen() copied the endpoint name into
+sun_path with strncpy() bounded by sizeof(sun_path). A name of 108 bytes
+or more filled the buffer without a terminating NUL, and
+unixAddressLength() then read past it with strlen(): connect() failed
+with EINVAL, and listen() aborted on the failed bind().
+
+Check the length first, as UserSocketOps and the mux code already do:
+connect() now fails with ENAMETOOLONG and listen() throws
+runtime_error. Copy at most sizeof(sun_path) - 1 bytes, which also
+fixes GCC's -Wstringop-truncation warning.
+
+Assisted-by: Claude Code:claude-opus-5-5
+---
+ src/base/PipeSocketHandler.cpp            | 11 ++++-
+ test/unit_tests/UnixSocketHandlerTest.cpp | 50 +++++++++++++++++++++++
+ 2 files changed, 59 insertions(+), 2 deletions(-)
+
+diff --git a/src/base/PipeSocketHandler.cpp b/src/base/PipeSocketHandler.cpp
+index 576df9a94..c4a3e5802 100644
+--- a/src/base/PipeSocketHandler.cpp
++++ b/src/base/PipeSocketHandler.cpp
+@@ -10,6 +10,10 @@ int PipeSocketHandler::connect(const SocketEndpoint& endpoint) {
+ 
+   string pipePath = endpoint.name();
+   sockaddr_un remote{};
++  if (pipePath.size() >= sizeof(remote.sun_path)) {
++    SetErrno(ENAMETOOLONG);
++    return -1;
++  }
+ 
+   int sockFd = ::socket(AF_UNIX, SOCK_STREAM, 0);
+   FATAL_FAIL(sockFd);
+@@ -19,7 +23,7 @@ int PipeSocketHandler::connect(const SocketEndpoint& endpoint) {
+     return -1;
+   }
+   remote.sun_family = AF_UNIX;
+-  strncpy(remote.sun_path, pipePath.c_str(), sizeof(remote.sun_path));
++  strncpy(remote.sun_path, pipePath.c_str(), sizeof(remote.sun_path) - 1);
+ 
+   VLOG(3) << "Connecting to " << endpoint << " with fd " << sockFd;
+   int result =
+@@ -90,12 +94,15 @@ set<int> PipeSocketHandler::listen(const SocketEndpoint& endpoint) {
+   }
+ 
+   sockaddr_un local{};
++  if (pipePath.size() >= sizeof(local.sun_path)) {
++    throw runtime_error("Pipe path is too long: " + pipePath);
++  }
+ 
+   int fd = socket(AF_UNIX, SOCK_STREAM, 0);
+   FATAL_FAIL(fd);
+   prepareListenSocket(fd);
+   local.sun_family = AF_UNIX; /* local is declared before socket() ^ */
+-  strncpy(local.sun_path, pipePath.c_str(), sizeof(local.sun_path));
++  strncpy(local.sun_path, pipePath.c_str(), sizeof(local.sun_path) - 1);
+   RawSocketUtils::unlinkSocketPath(local.sun_path);
+ 
+   FATAL_FAIL(::bind(fd, (struct sockaddr*)&local, unixAddressLength(local)));
+diff --git a/test/unit_tests/UnixSocketHandlerTest.cpp b/test/unit_tests/UnixSocketHandlerTest.cpp
+index 11cab1430..206a6f5e9 100644
+--- a/test/unit_tests/UnixSocketHandlerTest.cpp
++++ b/test/unit_tests/UnixSocketHandlerTest.cpp
+@@ -269,4 +269,54 @@ TEST_CASE("PipeSocketHandler listenAsUser throws when path cannot bind",
+   REQUIRE_THROWS_AS(socketHandler->listenAsUser(endpoint, getuid(), getgid()),
+                     std::runtime_error);
+ }
++
++// A path that fills sun_path exactly leaves no room for the terminating NUL.
++TEST_CASE("PipeSocketHandler connect rejects a path that does not fit",
++          "[UnixSocketHandler][PipeSocketHandler]") {
++  shared_ptr<PipeSocketHandler> socketHandler(new PipeSocketHandler());
++  SocketEndpoint endpoint;
++  endpoint.set_name("/" + string(sizeof(sockaddr_un::sun_path) - 1, 'x'));
++
++  int clientFd = socketHandler->connect(endpoint);
++  REQUIRE(clientFd < 0);
++  REQUIRE(GetErrno() == ENAMETOOLONG);
++}
++
++TEST_CASE("PipeSocketHandler listen rejects a path that does not fit",
++          "[UnixSocketHandler][PipeSocketHandler]") {
++  shared_ptr<PipeSocketHandler> socketHandler(new PipeSocketHandler());
++  SocketEndpoint endpoint;
++  endpoint.set_name("/" + string(sizeof(sockaddr_un::sun_path) - 1, 'x'));
++
++  REQUIRE_THROWS_AS(socketHandler->listen(endpoint), std::runtime_error);
++}
++
++TEST_CASE("PipeSocketHandler accepts the longest path that fits",
++          "[UnixSocketHandler][PipeSocketHandler]") {
++  shared_ptr<PipeSocketHandler> socketHandler(new PipeSocketHandler());
++
++  string tmpPath = GetTempDirectory() + string("et_test_pipe_XXXXXXXX");
++  string pipeDirectory = string(mkdtemp(&tmpPath[0]));
++  const size_t longest = sizeof(sockaddr_un::sun_path) - 1;
++  string pipePath = pipeDirectory + "/";
++  REQUIRE(pipePath.size() < longest);
++  pipePath += string(longest - pipePath.size(), 'x');
++
++  SocketEndpoint endpoint;
++  endpoint.set_name(pipePath);
++
++  set<int> serverFds = socketHandler->listen(endpoint);
++  REQUIRE(!serverFds.empty());
++
++  int clientFd = socketHandler->connect(endpoint);
++  REQUIRE(clientFd >= 0);
++
++  int accepted = socketHandler->accept(*serverFds.begin());
++  REQUIRE(accepted >= 0);
++
++  socketHandler->close(accepted);
++  socketHandler->close(clientFd);
++  socketHandler->stopListening(endpoint);
++  FATAL_FAIL(::remove(pipeDirectory.c_str()));
++}
+ #endif
+-- 
+2.56.0
+

diff --git a/et-pr922-fdpoller-nofile-limit.patch b/et-pr922-fdpoller-nofile-limit.patch
new file mode 100644
index 0000000..3d17410
--- /dev/null
+++ b/et-pr922-fdpoller-nofile-limit.patch
@@ -0,0 +1,99 @@
+From cecbda8b6f5c92c76f8041a3736c120ac44847f3 Mon Sep 17 00:00:00 2001
+From: Michel Lind <salimma@fedoraproject.org>
+Date: Tue, 10 Nov 2026 22:43:07 +0000
+Subject: [PATCH] test: raise the open file limit for the FD_SETSIZE poller
+ test
+
+"FdPoller supports descriptors above FD_SETSIZE" duplicates a pipe to
+descriptors at FD_SETSIZE and above with F_DUPFD. Where the soft
+RLIMIT_NOFILE is 1024, as on Fedora's Koji builders, F_DUPFD fails with
+EINVAL and the test fails although the poller is fine.
+
+Raise the soft limit for the duration of the test, up to the hard limit,
+and skip only if the hard limit is too low for two descriptors above
+FD_SETSIZE.
+
+Assisted-by: Claude Code:claude-opus-5-5
+---
+ test/unit_tests/FdPollerTest.cpp | 51 ++++++++++++++++++++++++++++++++
+ 1 file changed, 51 insertions(+)
+
+diff --git a/test/unit_tests/FdPollerTest.cpp b/test/unit_tests/FdPollerTest.cpp
+index 53147c81f..af81a6ff9 100644
+--- a/test/unit_tests/FdPollerTest.cpp
++++ b/test/unit_tests/FdPollerTest.cpp
+@@ -3,6 +3,10 @@
+ #include "TestHeaders.hpp"
+ #include "TestSocketPair.hpp"
+ 
++#ifndef WIN32
++#include <sys/resource.h>
++#endif
++
+ using namespace et;
+ using namespace et::test;
+ 
+@@ -16,6 +20,45 @@ inline void writeTestSocket(int fd, const void* buf, size_t count) {
+   REQUIRE(::write(fd, buf, count) == static_cast<ssize_t>(count));
+ #endif
+ }
++
++#ifndef WIN32
++// Raises the soft RLIMIT_NOFILE while in scope, so a test can allocate
++// descriptors at FD_SETSIZE and above where the soft limit defaults to 1024
++// (as on some build systems). Only the soft limit changes, which needs no
++// privileges; it is raised to `wanted`, or to the hard limit if that is lower.
++class ScopedNofileLimit {
++ public:
++  ScopedNofileLimit(rlim_t needed, rlim_t wanted) {
++    if (getrlimit(RLIMIT_NOFILE, &saved_) != 0) {
++      return;
++    }
++    rlim_t current = saved_.rlim_cur;
++    if (current != RLIM_INFINITY && current < wanted) {
++      struct rlimit raised = saved_;
++      raised.rlim_cur = std::min(wanted, saved_.rlim_max);
++      if (setrlimit(RLIMIT_NOFILE, &raised) == 0) {
++        raised_ = true;
++        current = raised.rlim_cur;
++      }
++    }
++    sufficient_ = current == RLIM_INFINITY || current >= needed;
++  }
++  ~ScopedNofileLimit() {
++    if (raised_) {
++      setrlimit(RLIMIT_NOFILE, &saved_);
++    }
++  }
++  ScopedNofileLimit(const ScopedNofileLimit&) = delete;
++  ScopedNofileLimit& operator=(const ScopedNofileLimit&) = delete;
++
++  bool sufficient() const { return sufficient_; }
++
++ private:
++  struct rlimit saved_ = {};
++  bool raised_ = false;
++  bool sufficient_ = false;
++};
++#endif
+ }  // namespace
+ 
+ TEST_CASE("FdPoller supports descriptors above FD_SETSIZE", "[FdPoller]") {
+@@ -39,6 +82,14 @@ TEST_CASE("FdPoller supports descriptors above FD_SETSIZE", "[FdPoller]") {
+   test::closeTestFd(sockets[0]);
+   test::closeTestFd(sockets[1]);
+ #else
++  // Two descriptors at FD_SETSIZE and above need a soft limit above that;
++  // ask for some headroom in case low-numbered descriptors are in use.
++  const rlim_t fdSetSize = static_cast<rlim_t>(FD_SETSIZE);
++  ScopedNofileLimit nofileLimit(fdSetSize + 2, fdSetSize + 64);
++  if (!nofileLimit.sufficient()) {
++    SKIP("RLIMIT_NOFILE is too low for descriptors above FD_SETSIZE");
++  }
++
+   int pipeFds[2];
+   REQUIRE(pipe(pipeFds) == 0);
+   int highFd = fcntl(pipeFds[0], F_DUPFD, FD_SETSIZE);
+-- 
+2.56.0
+

diff --git a/et-use-system-dependency.patch b/et-use-system-dependency.patch
index 5981d01..d14ea7a 100644
--- a/et-use-system-dependency.patch
+++ b/et-use-system-dependency.patch
@@ -1,13 +1,13 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 7d57438e..d27bc173 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -93,26 +93,11 @@ find_package(sodium REQUIRED)
- find_package(Protobuf REQUIRED)
- find_package(Unwind)
+@@ -155,30 +155,13 @@
+   find_package(Unwind)
+ endif()
  
 -if(DISABLE_VCPKG)
--  add_subdirectory(${EXTERNAL_DIR}/Catch2)
+-  if(BUILD_TESTING)
+-    add_subdirectory(${EXTERNAL_DIR}/Catch2)
+-  endif()
 -  add_subdirectory(${EXTERNAL_DIR}/cxxopts)
 -  add_subdirectory(${EXTERNAL_DIR}/cpp-httplib)
 -  add_subdirectory(${EXTERNAL_DIR}/json)
@@ -20,17 +20,20 @@ index 7d57438e..d27bc173 100644
 -    ${EXTERNAL_DIR}/cxxopts/include
 -  )
 -else()
--  find_package(Catch2 CONFIG REQUIRED)
+-  if(BUILD_TESTING)
+-    find_package(Catch2 CONFIG REQUIRED)
+-  endif()
 -  find_package(httplib CONFIG REQUIRED)
 -  find_package(cxxopts CONFIG REQUIRED)
 -  find_package(nlohmann_json CONFIG REQUIRED)
--  find_path(SIMPLEINI_INCLUDE_DIRS "ConvertUTF.c")
--endif()
-+find_package(Catch2 CONFIG REQUIRED)
+-  find_path(SIMPLEINI_INCLUDE_DIRS "SimpleIni.h")
++if(BUILD_TESTING)
++  find_package(Catch2 CONFIG REQUIRED)
+ endif()
 +find_package(httplib CONFIG REQUIRED)
 +find_package(cxxopts CONFIG REQUIRED)
 +find_package(nlohmann_json CONFIG REQUIRED)
-+find_path(SIMPLEINI_INCLUDE_DIRS "ConvertUTF.c")
++find_path(SIMPLEINI_INCLUDE_DIRS "SimpleIni.h")
  
  # Optional packages
  find_package(UTempter)

diff --git a/et.spec b/et.spec
index c452f40..116fa19 100644
--- a/et.spec
+++ b/et.spec
@@ -19,69 +19,86 @@
 %global _firewalld_dir %{_prefix}/lib/firewalld
 
 Name:           et
-Version:        6.2.11
+Version:        7.1.1
 Release:        %autorelease
 Summary:        Remote shell that survives IP roaming and disconnect
 
-License:        Apache-2.0
+# Apache-2.0: et, UniversalStacktrace
+# MIT: base64, easyloggingpp, libvterm, PlatformFolders
+# Zlib: sole, ThreadPool
+License:        Apache-2.0 AND MIT AND Zlib
 URL:            https://mistertea.github.io/EternalTerminal/
 Source0:        https://github.com/MisterTea/EternalTerminal/archive/et-v%{version}/EternalTerminal-%{version}.tar.gz
 Source1:        et.xml
 Patch0:         et-use-system-dependency.patch
+# Upstream builds with -Werror; fix the warnings Fedora's -Wall enables
+# https://github.com/MisterTea/EternalTerminal/pull/920
+Patch1:         et-pr920-gcc-wall-warnings.patch
+# Reject pipe paths too long for sun_path instead of leaving it
+# unterminated (also fixes -Wstringop-truncation); backported to 7.1.1
+# https://github.com/MisterTea/EternalTerminal/pull/921
+Patch2:         et-pr921-pipe-path-length.patch
+# Raise the soft open file limit in the FD_SETSIZE poller test; Koji's
+# soft limit of 1024 makes F_DUPFD(FD_SETSIZE) fail
+# https://github.com/MisterTea/EternalTerminal/pull/922
+Patch3:         et-pr922-fdpoller-nofile-limit.patch
 
 ExcludeArch: %{ix86}
 
 BuildRequires:  gcc-c++
 BuildRequires:  cmake
-BuildRequires:  boost-devel
 BuildRequires:  firewalld-filesystem
 # -static BR required for tracking of header-only libraries
+BuildRequires:  catch-devel
 BuildRequires:  cpp-httplib-devel
 BuildRequires:  cpp-httplib-static
 BuildRequires:  cxxopts-devel
 BuildRequires:  cxxopts-static
-BuildRequires:  easyloggingpp-devel
-BuildRequires:  easyloggingpp-static
-BuildRequires:  catch-devel
-BuildRequires:  gflags-devel
 BuildRequires:  json-devel
 BuildRequires:  json-static
-BuildRequires:  simpleini-devel
 BuildRequires:  libatomic
-BuildRequires:  libcurl-devel
+BuildRequires:  libselinux-devel
 BuildRequires:  libsodium-devel
 %if %{with unwind}
 BuildRequires:  libunwind-devel
 %endif
 BuildRequires:  libutempter-devel
-BuildRequires:  ncurses-devel
 BuildRequires:  openssl-devel
+%if %{with tests}
+# pgrep, pkill and ps, used by the htm end-to-end tests
+BuildRequires:  procps-ng
+%endif
 BuildRequires:  protobuf-compiler
 BuildRequires:  protobuf-lite-devel
-BuildRequires:  libselinux-devel
+BuildRequires:  simpleini-devel
 BuildRequires:  systemd
+BuildRequires:  zlib-devel
 
 # Bundled libraries
-# cat .gitmodules | grep submodule | sort
-# for tarball, s/external/external_imported
-Provides:       bundled(base64) = 0
-# external_imported/cotire/CMake/cotire.cmake
-Provides:       bundled(cotire) = 1.8.0
-# external/msgpack-c/include/msgpack/version_master.h
-Provides:       bundled(msgpack) = 3.3.0
-# external/PlatformFolders/CMakeLists.txt
-Provides:       bundled(PlatformFolders) = 4.0.0
-# sanitizers-cmake is only used when building
-%ifnarch ppc64le s390x
-# external/sentry-native/include/sentry.h
-Provides:       bundled(sentry-native) = 0.6.0
-%endif
+# Versions are those of the submodule commits pinned at the release tag
+# (external/ in the upstream git repository). The tarball carries them
+# in external_imported/; the prep section checks that only the
+# directories listed here remain, so a newly bundled library fails the
+# build.
+# https://github.com/tkislan/base64
+Provides:       bundled(base64) = 0^20200731git6780d5b
+# MisterTea fork of https://github.com/abumusamq/easyloggingpp
+Provides:       bundled(easyloggingpp) = 9.97.0^20210202git8489989
+# Vendored copy (not a submodule) of libvterm 0.3.3 plus later changes;
+# et needs vterm_screen_callbacks_has_pushline4(), which the released
+# 0.3.3 shipped as libvterm-devel does not have
+Provides:       bundled(libvterm) = 0.3.3
+# https://github.com/sago007/PlatformFolders
+Provides:       bundled(PlatformFolders) = 4.3.0
 # https://github.com/r-lyeh-archived/sole
-Provides:       bundled(sole) = 1.0.1
-Provides:       bundled(ThreadPool) = 0
-# external/UniversalStacktrace/CMakeLists.txt
-Provides:       bundled(UniversalStacktrace) = 0.0.1
-# vcpkg is disabled
+Provides:       bundled(sole) = 1.0.1^20200819git424b969
+# https://github.com/progschj/ThreadPool
+Provides:       bundled(ThreadPool) = 0^20140926git9a42ec1
+# https://github.com/MisterTea/UniversalStacktrace
+Provides:       bundled(UniversalStacktrace) = 0^20260918gitfc5ade8
+# Not shipped: sanitizers-cmake (build only). Removed in prep: Catch2,
+# cotire, cpp-httplib, cxxopts, json, msgpack-c, sentry-native,
+# simpleini, vcpkg
 
 %{?systemd_requires}
 
@@ -92,39 +109,34 @@ interrupting the session.
 
 %prep
 %autosetup -p1 -n EternalTerminal-et-v%{version}
-# use this if we have patches we need to apply by hand
-# %%setup -q -n EternalTerminal-et-v%%{version}
 
-# Remove bundled Catch2 test framework
-rm -rf external_imported/Catch2
+# Unbundle: Catch2, cpp-httplib, cxxopts, json, simpleini
+# Unused: cotire, msgpack-c, vcpkg; sentry-native (telemetry disabled)
+for d in Catch2 cotire cpp-httplib cxxopts json msgpack-c sentry-native simpleini vcpkg; do
+  rm -r external_imported/$d
+done
 
-# Unbundle cpp-httplib
-rm -rf external_imported/cpp-httplib
+# Fail if upstream bundles something new; update the bundled() Provides
+# and License when this list changes
+expected="base64 easyloggingpp libvterm PlatformFolders sanitizers-cmake sole ThreadPool UniversalStacktrace"
+actual=$(ls external_imported | LC_ALL=C sort -f | xargs)
+if [ "$actual" != "$expected" ]; then
+  echo "external_imported changed: expected '$expected', got '$actual'" >&2
+  exit 1
+fi
 
-# Unbundle cxxopts
-rm -rf external_imported/cxxopts
+# Telemetry is compiled out (DISABLE_TELEMETRY); do not suggest otherwise
+sed -i 's/^telemetry = true$/telemetry = false/' etc/et.cfg
 
-# Unbundle easyloggingpp
-mkdir -p external_imported/easyloggingpp/src
-ln -sf %{_includedir} external_imported/easyloggingpp/src
-
-# Unbundle “JSON for Modern C++”
-rm -rf external_imported/json
-# both /usr/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
-# and /usr/share/pkgconfig/nlohmann_json.pc are wrong
-# so we can't use find_package / pkg_check_module without further hacks anyway
-#sed -r -i 's@\$\{.*\}/json/include@%{_includedir}/nlohmann@' \
-#    CMakeLists.txt
-
-# Unbundle simpleini
-rm -rf external_imported/simpleini
 
 %build
+# DISABLE_TELEMETRY also disables sentry; without it, logs are sent to
+# Datadog unless ET_NO_TELEMETRY is set
 %cmake \
-%ifarch ppc64le s390x
-  -DDISABLE_SENTRY=ON \
-%endif
-  -DDISABLE_VCPKG=ON
+  -DDISABLE_TELEMETRY=ON \
+  -DDISABLE_VCPKG=ON \
+  -DBASH_COMPLETION_COMPLETIONSDIR=%{bash_completions_dir} \
+  -DZSH_COMPLETIONS_DIR=%{zsh_completions_dir}
 %cmake_build
 
 
@@ -138,9 +150,8 @@ install -m 0644 -p systemctl/et.service %{buildroot}%{_unitdir}/et.service
 install -m 0644 -p etc/et.cfg %{buildroot}%{_sysconfdir}/et.cfg
 install -m 0644 %{SOURCE1} %{buildroot}%{_firewalld_dir}/services/et.xml
 
-rm -vf %{buildroot}%{_bindir}/crashpad_handler
-rm -rf %{buildroot}%{_libdir}/cmake/sentry
-rm -vf %{buildroot}%{_libdir}/*.a
+# Windows wrapper for et1
+rm %{buildroot}%{_bindir}/et1.cmd
 
 %if %{with tests}
 %check
@@ -168,6 +179,8 @@ rm -vf %{buildroot}%{_libdir}/*.a
 %license LICENSE
 %doc README.md
 %{_bindir}/et
+%{_bindir}/et1
+%{_bindir}/etctl
 %{_bindir}/etserver
 %{_bindir}/etterminal
 %{_bindir}/htm
@@ -177,6 +190,8 @@ rm -vf %{buildroot}%{_libdir}/*.a
 %{_firewalld_dir}/services/et.xml
 %config(noreplace) %{_sysconfdir}/et.cfg
 %{_unitdir}/et.service
+%{bash_completions_dir}/et
+%{zsh_completions_dir}/_et
 
 
 %changelog

diff --git a/sources b/sources
index 2ca1e2f..e7d60f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (EternalTerminal-6.2.11.tar.gz) = 122539595cbfc765a9f725a4f3f994e01597d48655f230a9dfc8d9f2c8500e05c1ba477a3dd811c4d1ecb6af223c265577fce3825fac7cde0bd819590d928cf9
+SHA512 (EternalTerminal-7.1.1.tar.gz) = 5f15ee7892835ec54cd9d72788c7a17f71b027c2e75d268182487db11bfcfbf1c4a6e9d595af9cc88c95e7aae8ab343917a3207c803da97f4291f865be14ed4b

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-11 10:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 10:04 [rpms/et] epel10: Update to 7.1.1 Michel Lind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox