Skip to content

Comments

Selinux update#26

Merged
Microvenator merged 3 commits intomainfrom
selinux-update
Feb 23, 2026
Merged

Selinux update#26
Microvenator merged 3 commits intomainfrom
selinux-update

Conversation

@Microvenator
Copy link
Contributor

@Microvenator Microvenator commented Feb 8, 2026

  1. Добавляем опцию z для сборки под линуксом со включенным SELinux. Это предотвращает ошибку доступа к примонитрованному тому из контейнера.
  2. Убираем из ридми лишнюю зависимость. fmt затянут внутрь проекта.
  3. Прокидываем флаг компилятора -Wno-template-body. Он чинит ошибку сборки libunifex:
[ 95%] Building CXX object src/CMakeFiles/watchman_cpp.dir/server/server.cpp.o
In file included from /home/ail/senjun/watchman_cpp/third_party/libunifex-0.4.0/include/unifex/async_scope.hpp:18,
                 from /home/ail/senjun/watchman_cpp/src/server/detail/server_impl.hpp:7,
                 from /home/ail/senjun/watchman_cpp/src/server/server.cpp:3:
/home/ail/senjun/watchman_cpp/third_party/libunifex-0.4.0/include/unifex/v1/async_scope.hpp: In function ‘constexpr unifex::_block::blocking_kind unifex::v1::_async_scope::tag_invoke(unifex::tag_t<unifex::blocking>, const _attach_sender<Sender>::type&)’:
/home/ail/senjun/watchman_cpp/third_party/libunifex-0.4.0/include/unifex/v1/async_scope.hpp:284:16: error: ‘const struct unifex::v1::_async_scope::_attach_sender<Sender>::type’ has no member named ‘scope_’ [-Wtemplate-body]
  284 |       if (self.scope_) {
      |                ^~~~~~
gmake[2]: *** [src/CMakeFiles/watchman_cpp.dir/build.make:93: src/CMakeFiles/watchman_cpp.dir/server/server.cpp.o] Error 1

Ошибка возникает в свежих версиях gcc 15+. Про опцию.

Disable diagnosing errors when parsing a template, and instead issue an error only upon instantiation of the template.

@Microvenator Microvenator merged commit 943e091 into main Feb 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants