From e2a1f49c0097398119c7e2940b73e5b9c5ddabfb Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 10 May 2021 09:21:48 -0700 Subject: [PATCH 01/30] Update to 2021.05.10.00 Signed-off-by: Michel Alexandre Salim --- .gitignore | 2 +- sources | 2 +- watchman.spec | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ad07370..0b165f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/watchman-2021.04.26.00.tar.gz +/watchman-2021.05.10.00.tar.gz diff --git a/sources b/sources index 846c14e..35370c7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (watchman-2021.04.26.00.tar.gz) = 222ab7b1daf338aace506d228e0f779b67084430416612cbfce86012903f07b74c8ddb1f1f669a95f912f2136e65cf35709b63f47b7acabcb357ed1ea36df2d0 +SHA512 (watchman-2021.05.10.00.tar.gz) = 4ed14bf520afefc04a1bb742eb0a6cdee921aa2a8ab9f2a0fee18d5a7e1f48224fc9372a313dc5bf57883759a12710d2459232ed35e6c5e89e4ef0c5cfd02c23 diff --git a/watchman.spec b/watchman.spec index 7ae3aa8..2c0ce2a 100644 --- a/watchman.spec +++ b/watchman.spec @@ -7,7 +7,7 @@ %bcond_with tests Name: watchman -Version: 2021.04.26.00 +Version: 2021.05.10.00 Release: 1%{?dist} Summary: File alteration monitoring service @@ -88,6 +88,9 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog +* Mon May 10 2021 Michel Alexandre Salim - 2021.05.10.00-1 +- Update to 2021.05.10.00 + * Mon Apr 26 2021 Michel Alexandre Salim - 2021.04.26.00-1 - Update to 2021.04.26.00 From d5767b318585a1ac2eab35892db9a80ed8431a22 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 21:19:50 +0200 Subject: [PATCH 02/30] Rebuilt for Python 3.10 --- watchman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index 2c0ce2a..edfcf61 100644 --- a/watchman.spec +++ b/watchman.spec @@ -8,7 +8,7 @@ Name: watchman Version: 2021.05.10.00 -Release: 1%{?dist} +Release: 2%{?dist} Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') @@ -88,6 +88,9 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog +* Fri Jun 04 2021 Python Maint - 2021.05.10.00-2 +- Rebuilt for Python 3.10 + * Mon May 10 2021 Michel Alexandre Salim - 2021.05.10.00-1 - Update to 2021.05.10.00 From 5c0f245054860d54b427644fea42a3740a210371 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Mon, 5 Jul 2021 07:43:08 -0500 Subject: [PATCH 03/30] Rebuild for new fmt version. --- watchman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index edfcf61..2a1463a 100644 --- a/watchman.spec +++ b/watchman.spec @@ -8,7 +8,7 @@ Name: watchman Version: 2021.05.10.00 -Release: 2%{?dist} +Release: 3%{?dist} Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') @@ -88,6 +88,9 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog +* Mon Jul 05 2021 Richard Shaw - 2021.05.10.00-3 +- Rebuild for new fmt version. + * Fri Jun 04 2021 Python Maint - 2021.05.10.00-2 - Rebuilt for Python 3.10 From 572f7a40aa7a4e4a7e1d65dc4b7919af3dcefe8a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 20:46:14 +0000 Subject: [PATCH 04/30] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- watchman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index 2a1463a..7458d48 100644 --- a/watchman.spec +++ b/watchman.spec @@ -8,7 +8,7 @@ Name: watchman Version: 2021.05.10.00 -Release: 3%{?dist} +Release: 4%{?dist} Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') @@ -88,6 +88,9 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 2021.05.10.00-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Mon Jul 05 2021 Richard Shaw - 2021.05.10.00-3 - Rebuild for new fmt version. From 5ba130801bc69f2e8be6d0f0a85aa1ef3b3985d4 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Mon, 13 Sep 2021 21:14:08 +0900 Subject: [PATCH 05/30] Patch for folly API deprecation change Patch for build issue on 32bit arch Disable tests with gtest 1.11 for now --- watchman-2021.05.10.00-folly-new.patch | 36 ++++++++++++++++++++++++++ watchman-2021.05.10.00-wordsize.patch | 14 ++++++++++ watchman.spec | 16 +++++++++++- 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 watchman-2021.05.10.00-folly-new.patch create mode 100644 watchman-2021.05.10.00-wordsize.patch diff --git a/watchman-2021.05.10.00-folly-new.patch b/watchman-2021.05.10.00-folly-new.patch new file mode 100644 index 0000000..4aa7e18 --- /dev/null +++ b/watchman-2021.05.10.00-folly-new.patch @@ -0,0 +1,36 @@ +--- watchman-2021.05.10.00/PendingCollection.cpp.folly 2021-05-09 08:48:24.000000000 +0900 ++++ watchman-2021.05.10.00/PendingCollection.cpp 2021-09-09 15:58:07.886372886 +0900 +@@ -301,9 +301,9 @@ PendingCollection::LockedPtr PendingColl + } + + if (timeoutms.count() == -1) { +- cond_.wait(lock.getUniqueLock()); ++ cond_.wait(lock.as_lock()); + } else { +- cond_.wait_for(lock.getUniqueLock(), timeoutms); ++ cond_.wait_for(lock.as_lock(), timeoutms); + } + + pinged = lock->checkAndResetPinged(); +--- watchman-2021.05.10.00/perf.cpp.folly 2021-05-09 08:48:24.000000000 +0900 ++++ watchman-2021.05.10.00/perf.cpp 2021-09-09 15:59:22.202231238 +0900 +@@ -221,7 +221,7 @@ void PerfLogThread::loop() noexcept { + // No samples remaining, and we have been asked to quit. + return; + } +- cond_.wait(state.getUniqueLock()); ++ cond_.wait(state.as_lock()); + } + + samples = nullptr; +--- watchman-2021.05.10.00/state.cpp.folly 2021-05-09 08:48:24.000000000 +0900 ++++ watchman-2021.05.10.00/state.cpp 2021-09-09 15:59:59.626159910 +0900 +@@ -42,7 +42,7 @@ static void state_saver() noexcept { + { + auto state = saveState.lock(); + if (!state->needsSave) { +- stateCond.wait(state.getUniqueLock()); ++ stateCond.wait(state.as_lock()); + } + do_save = state->needsSave; + state->needsSave = false; diff --git a/watchman-2021.05.10.00-wordsize.patch b/watchman-2021.05.10.00-wordsize.patch new file mode 100644 index 0000000..407d18c --- /dev/null +++ b/watchman-2021.05.10.00-wordsize.patch @@ -0,0 +1,14 @@ +--- watchman-2021.05.10.00/InMemoryView.h.wordsize 2021-05-09 08:48:24.000000000 +0900 ++++ watchman-2021.05.10.00/InMemoryView.h 2021-09-09 19:55:39.910101746 +0900 +@@ -362,7 +362,11 @@ class InMemoryView : public QueryableVie + time_t mtime; + }; + ++#if __WORDSIZE == 32 ++ static_assert(80 == sizeof(PendingChangeLogEntry)); ++#else + static_assert(88 == sizeof(PendingChangeLogEntry)); ++#endif + + // If set, paths processed by processPending are logged here. + std::unique_ptr> diff --git a/watchman.spec b/watchman.spec index 7458d48..26abeab 100644 --- a/watchman.spec +++ b/watchman.spec @@ -8,7 +8,7 @@ Name: watchman Version: 2021.05.10.00 -Release: 4%{?dist} +Release: 5%{?dist} Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') @@ -18,6 +18,10 @@ URL: https://facebook.github.io/%{name}/ Source0: https://github.com/facebook/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: tmpfiles-%{name}.conf Patch0: %{name}-destdir.patch +# https://github.com/facebook/folly/commit/b65ef9f8b5f9b495370b1e651732214cde8abc7d +Patch1: watchman-2021.05.10.00-folly-new.patch +# Fix build failure on 32bit arch +Patch2: watchman-2021.05.10.00-wordsize.patch # Folly is known not to work on big-endian CPUs # TODO: file bz once this is approved @@ -54,6 +58,11 @@ The python3-py%{name} package contains Python bindings for %{name}. # Fix pywatchman version. sed -i "s|version=\"1.4.1\"|version=\"%{version}\"|" python/setup.py +# testsuite does not seem to compile with gtest 1.11.... +# disabling for now on rawhide +%if 0%{?fedora} >= 36 +sed -i CMakeLists.txt -e 's|^t_test|#t_test|' +%endif %build %cmake \ @@ -88,6 +97,11 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog +* Mon Sep 13 2021 Mamoru TASAKA - 2021.05.10.00-5 +- Patch for folly API deprecation change +- Patch for build issue on 32bit arch +- Disable tests with gtest 1.11 for now + * Fri Jul 23 2021 Fedora Release Engineering - 2021.05.10.00-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From eb4c81008d1e04f61eaaa73787d91e2874e213af Mon Sep 17 00:00:00 2001 From: Sahana Prasad Date: Tue, 14 Sep 2021 19:17:40 +0200 Subject: [PATCH 06/30] Rebuilt with OpenSSL 3.0.0 --- watchman.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index 26abeab..31d467a 100644 --- a/watchman.spec +++ b/watchman.spec @@ -8,7 +8,7 @@ Name: watchman Version: 2021.05.10.00 -Release: 5%{?dist} +Release: 6%{?dist} Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') @@ -97,6 +97,9 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog +* Tue Sep 14 2021 Sahana Prasad - 2021.05.10.00-6 +- Rebuilt with OpenSSL 3.0.0 + * Mon Sep 13 2021 Mamoru TASAKA - 2021.05.10.00-5 - Patch for folly API deprecation change - Patch for build issue on 32bit arch From ee2f1c307aa4879e766d09fd3fc70318b7a67814 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 28 Dec 2021 11:33:19 -0800 Subject: [PATCH 07/30] Rebuilt with Folly 2021.12.20.00 Opt in to rpmautospec Signed-off-by: Michel Alexandre Salim --- changelog | 78 +++++++++++++++++++++++++++++++++++++++++++++++ watchman.spec | 83 +++++---------------------------------------------- 2 files changed, 86 insertions(+), 75 deletions(-) create mode 100644 changelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..cda3887 --- /dev/null +++ b/changelog @@ -0,0 +1,78 @@ +* Tue Dec 28 2021 Michel Alexandre Salim - 2021.05.10.00-7 +- Rebuilt with Folly 2021.12.20.00 +- Opt in to rpmautospec + +* Tue Sep 14 2021 Sahana Prasad - 2021.05.10.00-6 +- Rebuilt with OpenSSL 3.0.0 + +* Mon Sep 13 2021 Mamoru TASAKA - 2021.05.10.00-5 +- Patch for folly API deprecation change +- Patch for build issue on 32bit arch +- Disable tests with gtest 1.11 for now + +* Fri Jul 23 2021 Fedora Release Engineering - 2021.05.10.00-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jul 05 2021 Richard Shaw - 2021.05.10.00-3 +- Rebuild for new fmt version. + +* Fri Jun 04 2021 Python Maint - 2021.05.10.00-2 +- Rebuilt for Python 3.10 + +* Mon May 10 2021 Michel Alexandre Salim - 2021.05.10.00-1 +- Update to 2021.05.10.00 + +* Mon Apr 26 2021 Michel Alexandre Salim - 2021.04.26.00-1 +- Update to 2021.04.26.00 + +* Fri Apr 16 2021 Michel Alexandre Salim - 2021.04.12.00-1 +- Update to 2021.04.12.00 + +* Tue Mar 30 2021 Jonathan Wakely - 2021.03.29.00-2 +- Rebuilt for removed libstdc++ symbol (#1937698) + +* Mon Mar 29 2021 Michel Alexandre Salim - 2021.03.29.00-1 +- Update to 2021.03.29.00 + +* Wed Mar 24 2021 Michel Alexandre Salim - 2021.03.22.00-1 +- Update to 2021.03.22.00 + +* Mon Mar 15 2021 Michel Alexandre Salim - 2021.03.15.00-1 +- Update to 2021.03.15.00 + +* Wed Feb 03 2021 Michel Alexandre Salim - 2021.02.01.00-1 +- Update to 2021.02.01.00 + +* Tue Jan 26 17:51:20 PST 2021 Michel Alexandre Salim - 2021.01.25.00-1 +- Update to 2021.01.25.00 + +* Tue Dec 29 12:16:46 PST 2020 Michel Alexandre Salim - 2020.12.28.00-1 +- Update to 2020.12.28.00 + +* Tue Dec 22 20:48:10 PST 2020 Michel Alexandre Salim - 2020.12.21.00-1 +- Update to 2020.12.21.00 + +* Tue Dec 1 12:26:55 PST 2020 Michel Alexandre Salim - 2020.09.21.00-7 +- Recreate state directory with tmpfiles (bz #1903141) + +* Mon Nov 30 16:23:46 PST 2020 Michel Alexandre Salim - 2020.09.21.00-6 +- Rebuild for folly-2020.11.30.00 + +* Mon Nov 23 2020 Michel Alexandre Salim - 2020.09.21.00-5 +- Rebuild for folly-2020.11.23.00 + +* Mon Nov 16 2020 Michel Alexandre Salim - 2020.09.21.00-4 +- Rebuild for folly-2020.11.16.00 + +* Thu Nov 12 2020 Michel Alexandre Salim - 2020.09.21.00-3 +- Also install Watchman's state directory + +* Wed Nov 11 2020 Michel Alexandre Salim - 2020.09.21.00-2 +- Support enabling tests +- Add ExcludeArch on s390x for Folly dependency +- Rename Python subpackage +- Fix version number and licensing for Python subpackage +- Move Python scripts to the Python subpackage + +* Tue Nov 10 2020 Michel Alexandre Salim - 2020.09.21.00-1 +- Initial package diff --git a/watchman.spec b/watchman.spec index 31d467a..af43def 100644 --- a/watchman.spec +++ b/watchman.spec @@ -8,7 +8,7 @@ Name: watchman Version: 2021.05.10.00 -Release: 6%{?dist} +Release: %autorelease Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') @@ -33,6 +33,12 @@ BuildRequires: folly-devel BuildRequires: pcre-devel # for %%{_tmpfilesdir} BuildRequires: systemd-rpm-macros +# Optional dependencies +BuildRequires: valgrind-devel +# Test dependencies +# TODO this shouldn't be needed if tests are not enabled +BuildRequires: gmock-devel +BuildRequires: gtest-devel %description Watchman exists to watch files and record when they actually change. It can also @@ -97,77 +103,4 @@ cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %changelog -* Tue Sep 14 2021 Sahana Prasad - 2021.05.10.00-6 -- Rebuilt with OpenSSL 3.0.0 - -* Mon Sep 13 2021 Mamoru TASAKA - 2021.05.10.00-5 -- Patch for folly API deprecation change -- Patch for build issue on 32bit arch -- Disable tests with gtest 1.11 for now - -* Fri Jul 23 2021 Fedora Release Engineering - 2021.05.10.00-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Mon Jul 05 2021 Richard Shaw - 2021.05.10.00-3 -- Rebuild for new fmt version. - -* Fri Jun 04 2021 Python Maint - 2021.05.10.00-2 -- Rebuilt for Python 3.10 - -* Mon May 10 2021 Michel Alexandre Salim - 2021.05.10.00-1 -- Update to 2021.05.10.00 - -* Mon Apr 26 2021 Michel Alexandre Salim - 2021.04.26.00-1 -- Update to 2021.04.26.00 - -* Fri Apr 16 2021 Michel Alexandre Salim - 2021.04.12.00-1 -- Update to 2021.04.12.00 - -* Tue Mar 30 2021 Jonathan Wakely - 2021.03.29.00-2 -- Rebuilt for removed libstdc++ symbol (#1937698) - -* Mon Mar 29 2021 Michel Alexandre Salim - 2021.03.29.00-1 -- Update to 2021.03.29.00 - -* Wed Mar 24 2021 Michel Alexandre Salim - 2021.03.22.00-1 -- Update to 2021.03.22.00 - -* Mon Mar 15 2021 Michel Alexandre Salim - 2021.03.15.00-1 -- Update to 2021.03.15.00 - -* Wed Feb 03 2021 Michel Alexandre Salim - 2021.02.01.00-1 -- Update to 2021.02.01.00 - -* Tue Jan 26 17:51:20 PST 2021 Michel Alexandre Salim - 2021.01.25.00-1 -- Update to 2021.01.25.00 - -* Tue Dec 29 12:16:46 PST 2020 Michel Alexandre Salim - 2020.12.28.00-1 -- Update to 2020.12.28.00 - -* Tue Dec 22 20:48:10 PST 2020 Michel Alexandre Salim - 2020.12.21.00-1 -- Update to 2020.12.21.00 - -* Tue Dec 1 12:26:55 PST 2020 Michel Alexandre Salim - 2020.09.21.00-7 -- Recreate state directory with tmpfiles (bz #1903141) - -* Mon Nov 30 16:23:46 PST 2020 Michel Alexandre Salim - 2020.09.21.00-6 -- Rebuild for folly-2020.11.30.00 - -* Mon Nov 23 2020 Michel Alexandre Salim - 2020.09.21.00-5 -- Rebuild for folly-2020.11.23.00 - -* Mon Nov 16 2020 Michel Alexandre Salim - 2020.09.21.00-4 -- Rebuild for folly-2020.11.16.00 - -* Thu Nov 12 2020 Michel Alexandre Salim - 2020.09.21.00-3 -- Also install Watchman's state directory - -* Wed Nov 11 2020 Michel Alexandre Salim - 2020.09.21.00-2 -- Support enabling tests -- Add ExcludeArch on s390x for Folly dependency -- Rename Python subpackage -- Fix version number and licensing for Python subpackage -- Move Python scripts to the Python subpackage - -* Tue Nov 10 2020 Michel Alexandre Salim - 2020.09.21.00-1 -- Initial package +%autochangelog From c5ff828ba6cb2a31471cecee5c26fa0fdb8e9683 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jan 2022 04:17:00 +0000 Subject: [PATCH 08/30] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering From d3d55cfb7ee10303f3f41b99e883a8140645fa24 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 8 Mar 2022 19:58:17 -0800 Subject: [PATCH 09/30] Rebuild for folly-2022.03.07.00 From 1c2e4e29141ff2dacc0a3af66f25502f0c8fe612 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 8 Mar 2022 20:04:56 -0800 Subject: [PATCH 10/30] Exclude ppc64le on Fedora >= 36 until Folly's fmt issue is fixed Signed-off-by: Michel Alexandre Salim --- watchman.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/watchman.spec b/watchman.spec index af43def..dd611b7 100644 --- a/watchman.spec +++ b/watchman.spec @@ -26,6 +26,10 @@ Patch2: watchman-2021.05.10.00-wordsize.patch # Folly is known not to work on big-endian CPUs # TODO: file bz once this is approved ExcludeArch: s390x +%if 0%{?fedora} >= 36 +# fmt code breaks: https://bugzilla.redhat.com/show_bug.cgi?id=2061022 +ExcludeArch: ppc64le +%endif BuildRequires: cmake BuildRequires: gcc-c++ From 9f880030e5a99263236c5f8d7688a123e061032b Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 9 Mar 2022 09:11:39 -0800 Subject: [PATCH 11/30] Exclude %%{ix86} on Fedora >= 36 Signed-off-by: Michel Alexandre Salim --- watchman.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watchman.spec b/watchman.spec index dd611b7..5e030ae 100644 --- a/watchman.spec +++ b/watchman.spec @@ -27,6 +27,8 @@ Patch2: watchman-2021.05.10.00-wordsize.patch # TODO: file bz once this is approved ExcludeArch: s390x %if 0%{?fedora} >= 36 +# can't build against clang folly: https://bugzilla.redhat.com/show_bug.cgi?id=2062395 +ExcludeArch: %{ix86} # fmt code breaks: https://bugzilla.redhat.com/show_bug.cgi?id=2061022 ExcludeArch: ppc64le %endif From a5bf9e0627b9a8fe85e6461b25e46b3b21bd13db Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 9 Mar 2022 11:18:27 -0800 Subject: [PATCH 12/30] Drop %%{arm32} too on clang-compiled folly Signed-off-by: Michel Alexandre Salim --- watchman.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index 5e030ae..48671e6 100644 --- a/watchman.spec +++ b/watchman.spec @@ -28,7 +28,7 @@ Patch2: watchman-2021.05.10.00-wordsize.patch ExcludeArch: s390x %if 0%{?fedora} >= 36 # can't build against clang folly: https://bugzilla.redhat.com/show_bug.cgi?id=2062395 -ExcludeArch: %{ix86} +ExcludeArch: %{arm32} %{ix86} # fmt code breaks: https://bugzilla.redhat.com/show_bug.cgi?id=2061022 ExcludeArch: ppc64le %endif From 7a8e85d35ca1c58323253ab0ac0a435718fcbdc6 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 16 Mar 2022 21:20:49 -0700 Subject: [PATCH 13/30] Rebuild for folly-2022.03.14.00 From c62a2f80b43e1ec22fa82740a2620ad6470d8554 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 19 Jul 2022 21:33:29 +0900 Subject: [PATCH 14/30] Rebuild for fmt-9, enable ppc64 again --- watchman.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index 48671e6..95f47d0 100644 --- a/watchman.spec +++ b/watchman.spec @@ -26,7 +26,7 @@ Patch2: watchman-2021.05.10.00-wordsize.patch # Folly is known not to work on big-endian CPUs # TODO: file bz once this is approved ExcludeArch: s390x -%if 0%{?fedora} >= 36 +%if 0%{?fedora} == 36 # can't build against clang folly: https://bugzilla.redhat.com/show_bug.cgi?id=2062395 ExcludeArch: %{arm32} %{ix86} # fmt code breaks: https://bugzilla.redhat.com/show_bug.cgi?id=2061022 From f5b22c44f7b2590db941089a1e02378396afe6c6 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 22 Jul 2022 10:39:55 -0500 Subject: [PATCH 15/30] Rebuild for folly 2022.07.11.00 Signed-off-by: Michel Alexandre Salim --- watchman.spec | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/watchman.spec b/watchman.spec index 95f47d0..93a14fd 100644 --- a/watchman.spec +++ b/watchman.spec @@ -23,15 +23,7 @@ Patch1: watchman-2021.05.10.00-folly-new.patch # Fix build failure on 32bit arch Patch2: watchman-2021.05.10.00-wordsize.patch -# Folly is known not to work on big-endian CPUs -# TODO: file bz once this is approved -ExcludeArch: s390x -%if 0%{?fedora} == 36 -# can't build against clang folly: https://bugzilla.redhat.com/show_bug.cgi?id=2062395 -ExcludeArch: %{arm32} %{ix86} -# fmt code breaks: https://bugzilla.redhat.com/show_bug.cgi?id=2061022 -ExcludeArch: ppc64le -%endif +ExclusiveArch: x86_64 aarch64 ppc64le BuildRequires: cmake BuildRequires: gcc-c++ From 1543cd1ced1a5b75bfdc7d6e7166f1940f045e5f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 12:13:18 +0000 Subject: [PATCH 16/30] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering From ec5b781589dfc561754258f2d8e8424b8a51c120 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 06:37:07 +0000 Subject: [PATCH 17/30] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 14a2f321d57fb5a9a4052d65d85ed9a5c54b77e2 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 25 Apr 2023 16:21:27 -0500 Subject: [PATCH 18/30] Rebuild for folly-2023.04.24.00 Signed-off-by: Michel Alexandre Salim From 19809093d99e246091c893b6cb018e58e92068c7 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 13 Jun 2023 23:28:53 +0200 Subject: [PATCH 19/30] Rebuilt for Python 3.12 From 6f710e24d6b4f2f275882f4c1f438a83845db80f Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Wed, 28 Jun 2023 11:56:36 +0200 Subject: [PATCH 20/30] Rebuilt due to fmt 10 update. From 845644620e6c53f03fd22c3c1fc5b8aa6de58a81 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 10 Jul 2023 11:23:35 -0500 Subject: [PATCH 21/30] Rebuild for folly 2023.07.03.00 - Fix build failure with Python 3.12 (fixes: rhbz#2155443) - Fix build failure with fmt 10 (fixes: rhbz#2219458) - Use SPDX license identifiers Signed-off-by: Michel Alexandre Salim --- watchman-fix-for-fmt10.diff | 22 ++++++++++++++++++++++ watchman-fix-for-py3_12.diff | 23 +++++++++++++++++++++++ watchman.spec | 8 ++++++-- 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 watchman-fix-for-fmt10.diff create mode 100644 watchman-fix-for-py3_12.diff diff --git a/watchman-fix-for-fmt10.diff b/watchman-fix-for-fmt10.diff new file mode 100644 index 0000000..f764b71 --- /dev/null +++ b/watchman-fix-for-fmt10.diff @@ -0,0 +1,22 @@ +--- a/json.cpp ++++ b/json.cpp +@@ -443,7 +443,7 @@ bool watchman_json_buffer::streamPdu(w_s + return streamN(stm, len, jerr); + } + default: +- logf(FATAL, "not streaming for pdu type {}\n", pdu_type); ++ logf(FATAL, "not streaming for pdu type {}\n", static_cast(pdu_type)); + return false; + } + } +--- a/bser.cpp ++++ b/bser.cpp +@@ -388,7 +388,7 @@ int w_bser_dump(const bser_ctx_t* ctx, c + case W_STRING_MIXED: + return bser_mixedstring(ctx, wstr, data); + default: +- w_assert(false, "unknown string type 0x%02x", wstr.type()); ++ w_assert(false, "unknown string type 0x%02x", static_cast(wstr.type())); + return -1; + } + } diff --git a/watchman-fix-for-py3_12.diff b/watchman-fix-for-py3_12.diff new file mode 100644 index 0000000..c29e7bb --- /dev/null +++ b/watchman-fix-for-py3_12.diff @@ -0,0 +1,23 @@ +--- a/build/fbcode_builder/CMake/fb_py_test_main.py ++++ b/build/fbcode_builder/CMake/fb_py_test_main.py +@@ -24,11 +24,6 @@ import traceback + import unittest + import warnings + +-# Hide warning about importing "imp"; remove once python2 is gone. +-with warnings.catch_warnings(): +- warnings.filterwarnings("ignore", category=DeprecationWarning) +- import imp +- + try: + from StringIO import StringIO + except ImportError: +@@ -195,7 +190,7 @@ class CallbackStream(object): + return self._fileno + + +-class BuckTestResult(unittest._TextTestResult): ++class BuckTestResult(unittest.TextTestResult): + """ + Our own TestResult class that outputs data in a format that can be easily + parsed by buck's test runner. diff --git a/watchman.spec b/watchman.spec index 93a14fd..e54d0a6 100644 --- a/watchman.spec +++ b/watchman.spec @@ -13,7 +13,7 @@ Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') -License: ASL 2.0 +License: Apache-2.0 URL: https://facebook.github.io/%{name}/ Source0: https://github.com/facebook/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: tmpfiles-%{name}.conf @@ -22,6 +22,10 @@ Patch0: %{name}-destdir.patch Patch1: watchman-2021.05.10.00-folly-new.patch # Fix build failure on 32bit arch Patch2: watchman-2021.05.10.00-wordsize.patch +# Fix build failure with Python 3.12 +Patch3: watchman-fix-for-py3_12.diff +# Fix build failure with fmt 10 +Patch4: watchman-fix-for-fmt10.diff ExclusiveArch: x86_64 aarch64 ppc64le @@ -45,7 +49,7 @@ trigger actions (such as rebuilding assets) when matching files change. %package -n python3-py%{name} Summary: Python bindings for %{name} -License: BSD and MIT +License: BSD-3-Clause and MIT BuildRequires: procps-ng BuildRequires: python3-devel BuildRequires: python3-setuptools From 5fef2b72134e8c8686021f0bc1b5a4cede31533e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 17:59:16 +0000 Subject: [PATCH 22/30] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 039cef062bb18970015b6b8655c0a4b90d67c505 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Tue, 12 Sep 2023 20:57:29 -0500 Subject: [PATCH 23/30] Rebuilt for folly 2023.09.11.00 Signed-off-by: Michel Lind From aec37af04bd5744dbb41646c9a2f17cf60c46e93 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Tue, 17 Oct 2023 22:36:13 -0500 Subject: [PATCH 24/30] Rebuilt for folly 2023.10.16.00 From fb781d4b4b03a1d9edc847e24c9e3d19152908dc Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Thu, 25 Jan 2024 12:48:27 -0600 Subject: [PATCH 25/30] Rebuilt for folly 2024.01.22.00 From d3a279f0f1ea1c948b4231c2731fd812358d8046 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Sat, 24 Feb 2024 13:46:22 -0600 Subject: [PATCH 26/30] Rebuilt for folly 2024.02.19.00 From 27ffd69b260aec73087f0b064c5a9dab036a6758 Mon Sep 17 00:00:00 2001 From: JasenChao Date: Mon, 8 Apr 2024 15:27:08 +0800 Subject: [PATCH 27/30] Add riscv64 support. --- watchman.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watchman.spec b/watchman.spec index e54d0a6..4fbecdb 100644 --- a/watchman.spec +++ b/watchman.spec @@ -27,7 +27,7 @@ Patch3: watchman-fix-for-py3_12.diff # Fix build failure with fmt 10 Patch4: watchman-fix-for-fmt10.diff -ExclusiveArch: x86_64 aarch64 ppc64le +ExclusiveArch: x86_64 aarch64 ppc64le riscv64 BuildRequires: cmake BuildRequires: gcc-c++ From c4217421540b3bc32cb3a651ff94e2ae7f656ed6 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Sat, 8 Jun 2024 22:33:19 +0200 Subject: [PATCH 28/30] Rebuilt for Python 3.13 From 90a6f17c098593e7fd1944fbbf96e22cbf48eb5d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 09:08:22 +0000 Subject: [PATCH 29/30] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From a42fa83ce6154e71e4894326878fdbbfb6668170 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Mon, 9 Dec 2024 10:36:40 +0000 Subject: [PATCH 30/30] FTBFS; need to be repackaged after the Rust rewrite anyway --- .gitignore | 1 - README.md | 3 - changelog | 78 ------------------ dead.package | 1 + sources | 1 - tmpfiles-watchman.conf | 1 - watchman-2021.05.10.00-folly-new.patch | 36 --------- watchman-2021.05.10.00-wordsize.patch | 14 ---- watchman-destdir.patch | 45 ----------- watchman-fix-for-fmt10.diff | 22 ----- watchman-fix-for-py3_12.diff | 23 ------ watchman.spec | 108 ------------------------- 12 files changed, 1 insertion(+), 332 deletions(-) delete mode 100644 .gitignore delete mode 100644 README.md delete mode 100644 changelog create mode 100644 dead.package delete mode 100644 sources delete mode 100644 tmpfiles-watchman.conf delete mode 100644 watchman-2021.05.10.00-folly-new.patch delete mode 100644 watchman-2021.05.10.00-wordsize.patch delete mode 100644 watchman-destdir.patch delete mode 100644 watchman-fix-for-fmt10.diff delete mode 100644 watchman-fix-for-py3_12.diff delete mode 100644 watchman.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 0b165f5..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/watchman-2021.05.10.00.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 9ac2e8a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# watchman - -The watchman package diff --git a/changelog b/changelog deleted file mode 100644 index cda3887..0000000 --- a/changelog +++ /dev/null @@ -1,78 +0,0 @@ -* Tue Dec 28 2021 Michel Alexandre Salim - 2021.05.10.00-7 -- Rebuilt with Folly 2021.12.20.00 -- Opt in to rpmautospec - -* Tue Sep 14 2021 Sahana Prasad - 2021.05.10.00-6 -- Rebuilt with OpenSSL 3.0.0 - -* Mon Sep 13 2021 Mamoru TASAKA - 2021.05.10.00-5 -- Patch for folly API deprecation change -- Patch for build issue on 32bit arch -- Disable tests with gtest 1.11 for now - -* Fri Jul 23 2021 Fedora Release Engineering - 2021.05.10.00-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Mon Jul 05 2021 Richard Shaw - 2021.05.10.00-3 -- Rebuild for new fmt version. - -* Fri Jun 04 2021 Python Maint - 2021.05.10.00-2 -- Rebuilt for Python 3.10 - -* Mon May 10 2021 Michel Alexandre Salim - 2021.05.10.00-1 -- Update to 2021.05.10.00 - -* Mon Apr 26 2021 Michel Alexandre Salim - 2021.04.26.00-1 -- Update to 2021.04.26.00 - -* Fri Apr 16 2021 Michel Alexandre Salim - 2021.04.12.00-1 -- Update to 2021.04.12.00 - -* Tue Mar 30 2021 Jonathan Wakely - 2021.03.29.00-2 -- Rebuilt for removed libstdc++ symbol (#1937698) - -* Mon Mar 29 2021 Michel Alexandre Salim - 2021.03.29.00-1 -- Update to 2021.03.29.00 - -* Wed Mar 24 2021 Michel Alexandre Salim - 2021.03.22.00-1 -- Update to 2021.03.22.00 - -* Mon Mar 15 2021 Michel Alexandre Salim - 2021.03.15.00-1 -- Update to 2021.03.15.00 - -* Wed Feb 03 2021 Michel Alexandre Salim - 2021.02.01.00-1 -- Update to 2021.02.01.00 - -* Tue Jan 26 17:51:20 PST 2021 Michel Alexandre Salim - 2021.01.25.00-1 -- Update to 2021.01.25.00 - -* Tue Dec 29 12:16:46 PST 2020 Michel Alexandre Salim - 2020.12.28.00-1 -- Update to 2020.12.28.00 - -* Tue Dec 22 20:48:10 PST 2020 Michel Alexandre Salim - 2020.12.21.00-1 -- Update to 2020.12.21.00 - -* Tue Dec 1 12:26:55 PST 2020 Michel Alexandre Salim - 2020.09.21.00-7 -- Recreate state directory with tmpfiles (bz #1903141) - -* Mon Nov 30 16:23:46 PST 2020 Michel Alexandre Salim - 2020.09.21.00-6 -- Rebuild for folly-2020.11.30.00 - -* Mon Nov 23 2020 Michel Alexandre Salim - 2020.09.21.00-5 -- Rebuild for folly-2020.11.23.00 - -* Mon Nov 16 2020 Michel Alexandre Salim - 2020.09.21.00-4 -- Rebuild for folly-2020.11.16.00 - -* Thu Nov 12 2020 Michel Alexandre Salim - 2020.09.21.00-3 -- Also install Watchman's state directory - -* Wed Nov 11 2020 Michel Alexandre Salim - 2020.09.21.00-2 -- Support enabling tests -- Add ExcludeArch on s390x for Folly dependency -- Rename Python subpackage -- Fix version number and licensing for Python subpackage -- Move Python scripts to the Python subpackage - -* Tue Nov 10 2020 Michel Alexandre Salim - 2020.09.21.00-1 -- Initial package diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..9ac758d --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +FTBFS; need to be repackaged after the Rust rewrite anyway diff --git a/sources b/sources deleted file mode 100644 index 35370c7..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (watchman-2021.05.10.00.tar.gz) = 4ed14bf520afefc04a1bb742eb0a6cdee921aa2a8ab9f2a0fee18d5a7e1f48224fc9372a313dc5bf57883759a12710d2459232ed35e6c5e89e4ef0c5cfd02c23 diff --git a/tmpfiles-watchman.conf b/tmpfiles-watchman.conf deleted file mode 100644 index 74c11ed..0000000 --- a/tmpfiles-watchman.conf +++ /dev/null @@ -1 +0,0 @@ -d /run/watchman 02777 root root diff --git a/watchman-2021.05.10.00-folly-new.patch b/watchman-2021.05.10.00-folly-new.patch deleted file mode 100644 index 4aa7e18..0000000 --- a/watchman-2021.05.10.00-folly-new.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- watchman-2021.05.10.00/PendingCollection.cpp.folly 2021-05-09 08:48:24.000000000 +0900 -+++ watchman-2021.05.10.00/PendingCollection.cpp 2021-09-09 15:58:07.886372886 +0900 -@@ -301,9 +301,9 @@ PendingCollection::LockedPtr PendingColl - } - - if (timeoutms.count() == -1) { -- cond_.wait(lock.getUniqueLock()); -+ cond_.wait(lock.as_lock()); - } else { -- cond_.wait_for(lock.getUniqueLock(), timeoutms); -+ cond_.wait_for(lock.as_lock(), timeoutms); - } - - pinged = lock->checkAndResetPinged(); ---- watchman-2021.05.10.00/perf.cpp.folly 2021-05-09 08:48:24.000000000 +0900 -+++ watchman-2021.05.10.00/perf.cpp 2021-09-09 15:59:22.202231238 +0900 -@@ -221,7 +221,7 @@ void PerfLogThread::loop() noexcept { - // No samples remaining, and we have been asked to quit. - return; - } -- cond_.wait(state.getUniqueLock()); -+ cond_.wait(state.as_lock()); - } - - samples = nullptr; ---- watchman-2021.05.10.00/state.cpp.folly 2021-05-09 08:48:24.000000000 +0900 -+++ watchman-2021.05.10.00/state.cpp 2021-09-09 15:59:59.626159910 +0900 -@@ -42,7 +42,7 @@ static void state_saver() noexcept { - { - auto state = saveState.lock(); - if (!state->needsSave) { -- stateCond.wait(state.getUniqueLock()); -+ stateCond.wait(state.as_lock()); - } - do_save = state->needsSave; - state->needsSave = false; diff --git a/watchman-2021.05.10.00-wordsize.patch b/watchman-2021.05.10.00-wordsize.patch deleted file mode 100644 index 407d18c..0000000 --- a/watchman-2021.05.10.00-wordsize.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- watchman-2021.05.10.00/InMemoryView.h.wordsize 2021-05-09 08:48:24.000000000 +0900 -+++ watchman-2021.05.10.00/InMemoryView.h 2021-09-09 19:55:39.910101746 +0900 -@@ -362,7 +362,11 @@ class InMemoryView : public QueryableVie - time_t mtime; - }; - -+#if __WORDSIZE == 32 -+ static_assert(80 == sizeof(PendingChangeLogEntry)); -+#else - static_assert(88 == sizeof(PendingChangeLogEntry)); -+#endif - - // If set, paths processed by processPending are logged here. - std::unique_ptr> diff --git a/watchman-destdir.patch b/watchman-destdir.patch deleted file mode 100644 index 0675d53..0000000 --- a/watchman-destdir.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 433938a3a6f03b144151895e23c98906af1d4d7a Mon Sep 17 00:00:00 2001 -From: Michel Alexandre Salim -Date: Tue, 26 Jan 2021 22:32:56 -0800 -Subject: [PATCH] watchman: use DESTDIR consistently - -Delay `DESTDIR` evaluation in invocation of `python setup.py` so it uses -the value passed when installing, not when configuring. - -Also use don't prepend `CMAKE_INSTALL_PREFIX` for `WATCHMAN_STATE_DIR`. -It will pick up `DESTDIR` automatically - -Note: when building on Fedora, `DESTDIR` is set to the build root and -`PREFIX` set to `/usr`, so adding the `PREFIX` would result in Python files -being seen in `%{buildroot}/usr/usr` - -Signed-off-by: Michel Alexandre Salim ---- - CMakeLists.txt | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3dbcd68a..2c197bcd 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -136,7 +136,7 @@ endfunction() - file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/config.h.new" "#pragma once\n") - - if(NOT WIN32) -- set(WATCHMAN_STATE_DIR "${CMAKE_INSTALL_PREFIX}/var/run/watchman" CACHE STRING -+ set(WATCHMAN_STATE_DIR "/var/run/watchman" CACHE STRING - "Run-time path of the persistent state directory") - set(INSTALL_WATCHMAN_STATE_DIR OFF CACHE BOOL - "Whether WATCHMAN_STATE_DIR should be created by the cmake install -@@ -418,7 +418,7 @@ else() - ${CMAKE_COMMAND} -E env - CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} - ${PYTHON3} ${SETUP_PY} install -- --root $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} -+ --root \$ENV{DESTDIR} - RESULT_VARIABLE STATUS) - if (NOT STATUS STREQUAL 0) - message(FATAL_ERROR \"pywatchman install failed\") --- -2.29.2 - diff --git a/watchman-fix-for-fmt10.diff b/watchman-fix-for-fmt10.diff deleted file mode 100644 index f764b71..0000000 --- a/watchman-fix-for-fmt10.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- a/json.cpp -+++ b/json.cpp -@@ -443,7 +443,7 @@ bool watchman_json_buffer::streamPdu(w_s - return streamN(stm, len, jerr); - } - default: -- logf(FATAL, "not streaming for pdu type {}\n", pdu_type); -+ logf(FATAL, "not streaming for pdu type {}\n", static_cast(pdu_type)); - return false; - } - } ---- a/bser.cpp -+++ b/bser.cpp -@@ -388,7 +388,7 @@ int w_bser_dump(const bser_ctx_t* ctx, c - case W_STRING_MIXED: - return bser_mixedstring(ctx, wstr, data); - default: -- w_assert(false, "unknown string type 0x%02x", wstr.type()); -+ w_assert(false, "unknown string type 0x%02x", static_cast(wstr.type())); - return -1; - } - } diff --git a/watchman-fix-for-py3_12.diff b/watchman-fix-for-py3_12.diff deleted file mode 100644 index c29e7bb..0000000 --- a/watchman-fix-for-py3_12.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- a/build/fbcode_builder/CMake/fb_py_test_main.py -+++ b/build/fbcode_builder/CMake/fb_py_test_main.py -@@ -24,11 +24,6 @@ import traceback - import unittest - import warnings - --# Hide warning about importing "imp"; remove once python2 is gone. --with warnings.catch_warnings(): -- warnings.filterwarnings("ignore", category=DeprecationWarning) -- import imp -- - try: - from StringIO import StringIO - except ImportError: -@@ -195,7 +190,7 @@ class CallbackStream(object): - return self._fileno - - --class BuckTestResult(unittest._TextTestResult): -+class BuckTestResult(unittest.TextTestResult): - """ - Our own TestResult class that outputs data in a format that can be easily - parsed by buck's test runner. diff --git a/watchman.spec b/watchman.spec deleted file mode 100644 index 4fbecdb..0000000 --- a/watchman.spec +++ /dev/null @@ -1,108 +0,0 @@ -# some Python tests are failing -# The following tests FAILED: -# 40 - CacheTest.future (Child aborted) -# 290 - test_py::tests.integration.test_site_spawn.TestSiteSpawn.test_failingSpawner (Failed) -# 292 - test_py::tests.integration.test_site_spawn.TestSiteSpawn.test_spawner (Failed) -# Errors while running CTest -%bcond_with tests - -Name: watchman -Version: 2021.05.10.00 -Release: %autorelease -Summary: File alteration monitoring service - -%global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') - -License: Apache-2.0 -URL: https://facebook.github.io/%{name}/ -Source0: https://github.com/facebook/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz -Source1: tmpfiles-%{name}.conf -Patch0: %{name}-destdir.patch -# https://github.com/facebook/folly/commit/b65ef9f8b5f9b495370b1e651732214cde8abc7d -Patch1: watchman-2021.05.10.00-folly-new.patch -# Fix build failure on 32bit arch -Patch2: watchman-2021.05.10.00-wordsize.patch -# Fix build failure with Python 3.12 -Patch3: watchman-fix-for-py3_12.diff -# Fix build failure with fmt 10 -Patch4: watchman-fix-for-fmt10.diff - -ExclusiveArch: x86_64 aarch64 ppc64le riscv64 - -BuildRequires: cmake -BuildRequires: gcc-c++ -BuildRequires: folly-devel -BuildRequires: pcre-devel -# for %%{_tmpfilesdir} -BuildRequires: systemd-rpm-macros -# Optional dependencies -BuildRequires: valgrind-devel -# Test dependencies -# TODO this shouldn't be needed if tests are not enabled -BuildRequires: gmock-devel -BuildRequires: gtest-devel - -%description -Watchman exists to watch files and record when they actually change. It can also -trigger actions (such as rebuilding assets) when matching files change. - - -%package -n python3-py%{name} -Summary: Python bindings for %{name} -License: BSD-3-Clause and MIT -BuildRequires: procps-ng -BuildRequires: python3-devel -BuildRequires: python3-setuptools -Requires: %{name}%{?_isa} = %{version}-%{release} -# watchman-diag shells out to ps -Requires: procps-ng - -%description -n python3-py%{name} -The python3-py%{name} package contains Python bindings for %{name}. - - -%prep -%autosetup -p1 -# Fix pywatchman version. -sed -i "s|version=\"1.4.1\"|version=\"%{version}\"|" python/setup.py - -# testsuite does not seem to compile with gtest 1.11.... -# disabling for now on rawhide -%if 0%{?fedora} >= 36 -sed -i CMakeLists.txt -e 's|^t_test|#t_test|' -%endif - -%build -%cmake \ - -DINSTALL_WATCHMAN_STATE_DIR=ON -%cmake_build - - -%install -%cmake_install -mkdir -p %{buildroot}%{_tmpfilesdir} -cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf - - -%if %{with tests} -%check -%ctest -%endif - - -%files -%license LICENSE -%doc CODE_OF_CONDUCT.md README.markdown -%attr(02777,root,root) %dir %{_var}/run/%{name} -%{_bindir}/%{name} -%{_tmpfilesdir}/%{name}.conf - -%files -n python3-py%{name} -%license python/LICENSE -%{_bindir}/%{name}-* -%{python3_sitearch}/py%{name} -%{python3_sitearch}/py%{name}-%{stripped_version}-py%{python3_version}.egg-info - - -%changelog -%autochangelog