Package Details: watchman 2025.10.20.00-1

Git Clone URL: https://aur.archlinux.org/watchman.git (read-only, click to copy)
Package Base: watchman
Description: Watches files and records, or triggers actions, when they change
Upstream URL: https://github.com/facebook/watchman
Licenses: MIT
Submitter: jelly
Maintainer: None
Last Packager: envolution
Votes: 14
Popularity: 0.003162
First Submitted: 2021-01-09 14:09 (UTC)
Last Updated: 2025-10-22 22:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

kusoneko commented on 2023-09-14 04:51 (UTC)

@carsme problem solved thanks

carsme commented on 2023-09-10 16:21 (UTC)

@kusoneko, I can't reproduce that issue. Can you try rebuilding folly and edencommon and see if the issue persists?

kusoneko commented on 2023-09-10 01:39 (UTC)

2023.09.04.00-1 doesn't compile on my end; I get the following error:

    Finished release [optimized] target(s) in 0.71s
[ 92%] Built target watchmanctl.cargo
/usr/bin/ld: /usr/lib/libedencommon_utils.a(ProcessNameCache.cpp.o): in function `facebook::eden::ProcessNameHandle::get[abi:cxx11]() const':
(.text+0x2658): undefined reference to `folly::futures::detail::CoreBase::getDeferredExecutor() const'
/usr/bin/ld: (.text+0x2685): undefined reference to `folly::futures::detail::CoreBase::CoreBase(folly::futures::detail::State, unsigned char)'
/usr/bin/ld: /usr/lib/libedencommon_utils.a(ProcessNameCache.cpp.o): in function `facebook::eden::ProcessNameCache::getAllProcessNames[abi:cxx11]()':
(.text+0x2d11): undefined reference to `folly::futures::detail::CoreBase::CoreBase(folly::futures::detail::State, unsigned char)'
/usr/bin/ld: /usr/lib/libedencommon_utils.a(ProcessNameCache.cpp.o): in function `std::pair<folly::Promise<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, folly::SemiFuture<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > folly::makePromiseContract<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >()':
(.text._ZN5folly19makePromiseContractINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt4pairINS_7PromiseIT_EENS_10SemiFutureIS9_EEEv[_ZN5folly19makePromiseContractINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt4pairINS_7PromiseIT_EENS_10SemiFutureIS9_EEEv]+0x38): undefined reference to `folly::futures::detail::CoreBase::CoreBase(folly::futures::detail::State, unsigned char)'
/usr/bin/ld: /usr/lib/libedencommon_utils.a(ProcessNameCache.cpp.o): in function `void folly::futures::detail::waitImpl<folly::SemiFuture<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(folly::SemiFuture<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)':
(.text._ZN5folly7futures6detail8waitImplINS_10SemiFutureINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES9_EEvRT_[_ZN5folly7futures6detail8waitImplINS_10SemiFutureINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES9_EEvRT_]+0x7d): undefined reference to `folly::futures::detail::CoreBase::CoreBase(folly::futures::detail::State, unsigned char)'
/usr/bin/ld: /usr/lib/libedencommon_utils.a(ProcessNameCache.cpp.o): in function `void folly::futures::detail::waitImpl<folly::SemiFuture<std::map<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<int>, std::allocator<std::pair<int const, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > > >, std::map<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<int>, std::allocator<std::pair<int const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >(folly::SemiFuture<std::map<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<int>, std::allocator<std::pair<int const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >&)':
(.text._ZN5folly7futures6detail8waitImplINS_10SemiFutureISt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiSA_EEEEESH_EEvRT_[_ZN5folly7futures6detail8waitImplINS_10SemiFutureISt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiSA_EEEEESH_EEvRT_]+0x7d): undefined reference to `folly::futures::detail::CoreBase::CoreBase(folly::futures::detail::State, unsigned char)'
/usr/bin/ld: /usr/lib/libedencommon_utils.a(ProcessNameCache.cpp.o): in function `folly::SemiFuture<std::map<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<int>, std::allocator<std::pair<int const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::getTry() &&':
(.text._ZNO5folly10SemiFutureISt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS7_EEEE6getTryEv[_ZNO5folly10SemiFutureISt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS7_EEEE6getTryEv]+0x3c): undefined reference to `folly::futures::detail::CoreBase::getDeferredExecutor() const'
/usr/bin/ld: (.text._ZNO5folly10SemiFutureISt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS7_EEEE6getTryEv[_ZNO5folly10SemiFutureISt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS7_EEEE6getTryEv]+0x69): undefined reference to `folly::futures::detail::CoreBase::CoreBase(folly::futures::detail::State, unsigned char)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/watchman.dir/build.make:1816: bin/watchman] Error 1
make[1]: *** [CMakeFiles/Makefile2:453: CMakeFiles/watchman.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

AlexBocken commented on 2023-03-12 14:27 (UTC)

@carsme Thank you, works smoothly now for me :)

carsme commented on 2023-03-12 14:21 (UTC)

@AlexBocken I've excluded what I think are the problematic tests now. Let me know if you experience any other issues.

AlexBocken commented on 2023-03-12 12:26 (UTC)

@carsme Rebuilt it again, same four checks failed. Note that I'm not building in a clean chroot.

carsme commented on 2023-03-12 12:02 (UTC)

@scarleo This happens if you have rustup instead of rust installed and not yet set a default toolchain. I've added a environemnt variable that will select the stable toolchain in these situations, as recommended by https://wiki.archlinux.org/title/Rust_package_guidelines. The package should build for you now without having to do rustup default stable (though you might want to do that anyway).

@AlexBocken I've noticed that some of the tests are failing intermittently. I'm trying to identify which these are since I would still like to perform testing in the package, if viable. Could you try re-building and see if the same tests fail again?

AlexBocken commented on 2023-03-12 10:43 (UTC)

check() fails for me (4 / 451) tests fail.

        238 - test_py::watchman.integration.test_local_saved_state.TestSavedStateUnixBser2.test_localSavedStateSubscription (Failed)
        249 - test_py::watchman.integration.test_local_saved_state.TestSavedStateUnixJson.test_localSavedStateSubscription (Failed)
        311 - test_py::watchman.integration.test_scm.TestScmUnixJson.test_scmHg (Failed)
        336 - test_py::watchman.integration.test_site_spawn.TestSiteSpawn.test_failingSpawner (Failed)

One of the errors:

failed to start
2023-03-12T11:28:59,488: [cli] /home/alex/watchman/src/watchman-2023.03.06.00/watchman/integration/site_spawn_fail.py: exited with status 1
Fatal error detected at:
    @ 000000000020c195 watchman::Log::doLogToStdErr()
                       /home/alex/watchman/src/watchman-2023.03.06.00/watchman/Logging.cpp:56
    @ 0000000000208971 watchman::Publisher::enqueue(json_ref&&)
                       /usr/include/c++/12.2.1/bits/std_function.h:591
                       -> /home/alex/watchman/src/watchman-2023.03.06.00/watchman/PubSub.cpp
    @ 00000000001322d7 void watchman::Log::log<char const*&, char const (&) [22], int, char const (&) [2]>(watchman::LogLevel, char const*&, char const (&) [22], int&&, char const (&) [2])
                       /home/alex/watchman/src/watchman-2023.03.06.00/watchman/Logging.h:62
                       -> /home/alex/watchman/src/watchman-2023.03.06.00/watchman/main.cpp
    @ 0000000000052786 main
                       /home/alex/watchman/src/watchman-2023.03.06.00/watchman/Logging.h:124
                       -> /home/alex/watchman/src/watchman-2023.03.06.00/watchman/main.cpp
    @ 000000000002378f (unknown)
    @ 0000000000023849 __libc_start_main
    @ 0000000000054df4 _start
ERROR

======================================================================
ERROR: test_failingSpawner (watchman.integration.test_site_spawn.TestSiteSpawn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/alex/watchman/src/watchman-2023.03.06.00/build/watchman/integration/test_py/watchman/integration/test_site_spawn.py", line 31, in test_failingSpawner
    stderr = stderr.decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 13439: ordinal not in range(128)

Any clue how to fix this? You can find the full build log at https://bocken.org/static/watchman_build.log in case that could be of any use.

@scarleo have you tried running rustup default stable as recommended in the error? Still not working?

scarleo commented on 2023-03-12 08:07 (UTC)

Fails to build:

[100%] Building Rust executable 'watchmanctl'...
error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
make[2]: *** [watchman/cli/CMakeFiles/watchmanctl.cargo.dir/build.make:72: watchman/cli/CMakeFiles/watchmanctl.cargo] Error 1
make[1]: *** [CMakeFiles/Makefile2:1411: watchman/cli/CMakeFiles/watchmanctl.cargo.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

eclairevoyant commented on 2023-03-06 23:23 (UTC)

Took a look at this software, seems like it tries to download and build all dependent libraries even if they're present in the system. Might need some patches to use the system versions instead.