Package Details: watchman 2024.04.22.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: carsme
Last Packager: carsme
Votes: 11
Popularity: 0.67
First Submitted: 2021-01-09 14:09 (UTC)
Last Updated: 2024-04-23 06:11 (UTC)

Latest Comments

1 2 Next › Last »

carsme commented on 2024-04-04 17:37 (UTC)

Facebook introduced a dependency to fb303, fbthrift and mvfst in edencommon in March. This means that building watchman + deps from source will take an incredibly long time.

I might try to patch out that dependency in the future (if possible), I published this now as a reference point for that endeavor. In the meantime, feel free to use watchman-bin if the compile times are problematic.

Tieje commented on 2024-03-02 00:49 (UTC)

I needed to use the Homebrew workaround. https://github.com/facebook/watchman/issues/1186 Otherwise, building from Make files seems to take an awfully long time.

pedro.fernandesf commented on 2023-11-08 15:47 (UTC)

I'm getting this error

Building folly...
==> Making package: folly 2023.11.06.00-1 (qua 08 nov 2023 12:40:38)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v2023.11.06.00.tar.gz
==> Validating source files with sha256sums...
    v2023.11.06.00.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v2023.11.06.00.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- other platform:
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

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?