[arch-commits] Commit in watchman/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 18:56:52 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:56:52
  Author: foutrelis
Revision: 753275

archrelease: copy trunk to community-staging-x86_64

Added:
  watchman/repos/community-staging-x86_64/
  watchman/repos/community-staging-x86_64/PKGBUILD
    (from rev 753274, watchman/trunk/PKGBUILD)
  watchman/repos/community-staging-x86_64/python3.patch
    (from rev 753274, watchman/trunk/python3.patch)
  watchman/repos/community-staging-x86_64/watchman.tmpfiles
    (from rev 753274, watchman/trunk/watchman.tmpfiles)

-------------------+
 PKGBUILD          |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 python3.patch     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 watchman.tmpfiles |    1 +
 3 files changed, 98 insertions(+)

Copied: watchman/repos/community-staging-x86_64/PKGBUILD (from rev 753274, watchman/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 18:56:52 UTC (rev 753275)
@@ -0,0 +1,46 @@
+# Maintainer: Jean Lucas <jean at 4ray.co>
+# Contributor: José Luis Lafuente <jl at lafuente.me>
+# Contributor: Michael Louis Thaler <michael.louis.thaler at gmail.com>
+
+pkgname=watchman
+pkgver=4.9.0
+pkgrel=5
+pkgdesc="An inotify-based file watching and job triggering command line utility"
+url="https://facebook.github.io/watchman/"
+arch=('i686' 'x86_64')
+license=('Apache')
+depends=('pcre' 'systemd' 'python')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/facebook/watchman/archive/v${pkgver}.tar.gz"
+        "${pkgname}.tmpfiles" "python3.patch")
+sha256sums=('1f6402dc70b1d056fffc3748f2fdcecff730d8843bb6936de395b3443ce05322'
+            '2b061865e10578a0477b9c7991a00594bc839c846b98896e93c75743dbf6a379'
+            '8aa32e37aef329e0873425d25e370d25b7aa0731f104a645737f1111f64a5a9e')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  ./autogen.sh
+
+  patch -Np1 -i "${srcdir}"/python3.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr --disable-statedir --enable-lenient
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  # TODO: fix segfault in test
+  #make check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  # Docs available online only; see https://github.com/facebook/watchman/issues/30
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm 644 "${srcdir}"/${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+}
+
+# vim:set ts=2 sw=2 et:

Copied: watchman/repos/community-staging-x86_64/python3.patch (from rev 753274, watchman/trunk/python3.patch)
===================================================================
--- community-staging-x86_64/python3.patch	                        (rev 0)
+++ community-staging-x86_64/python3.patch	2020-11-12 18:56:52 UTC (rev 753275)
@@ -0,0 +1,51 @@
+diff -aur watchman-4.9.0.old/python/bin/watchman-make watchman-4.9.0/python/bin/watchman-make
+--- watchman-4.9.0.old/python/bin/watchman-make	2020-04-03 20:33:59.893048471 +0200
++++ watchman-4.9.0/python/bin/watchman-make	2020-04-03 20:36:21.800479512 +0200
+@@ -209,7 +209,7 @@
+         client.setTimeout(600)
+ 
+         result = client.receive()
+-        for _, t in targets.iteritems():
++        for _, t in targets.items():
+             t.consumeEvents(client)
+ 
+         # Now we wait for events to settle
+@@ -218,7 +218,7 @@
+         while not settled:
+             try:
+                 result = client.receive()
+-                for _, t in targets.iteritems():
++                for _, t in targets.items():
+                     t.consumeEvents(client)
+             except pywatchman.SocketTimeout as ex:
+                 # Our short settle timeout hit, so we're now settled
+@@ -226,7 +226,7 @@
+                 break
+ 
+         # Now we can work on executing the targets
+-        for _, t in targets.iteritems():
++        for _, t in targets.items():
+             t.execute()
+ 
+         # Print this at the bottom of the loop rather than the top
+diff -aur watchman-4.9.0.old/python/bin/watchman-wait watchman-4.9.0/python/bin/watchman-wait
+--- watchman-4.9.0.old/python/bin/watchman-wait	2020-04-03 20:33:59.893048471 +0200
++++ watchman-4.9.0/python/bin/watchman-wait	2020-04-03 20:36:46.413945264 +0200
+@@ -182,7 +182,7 @@
+ try:
+     client.capabilityCheck(
+         required=['term-dirname', 'cmd-watch-project', 'wildmatch'])
+-    for _, sub in subscriptions.iteritems():
++    for _, sub in subscriptions.items():
+         sub.start(client)
+ 
+ except pywatchman.CommandError as ex:
+@@ -200,7 +200,7 @@
+         # the client object will accumulate all subscription results
+         # over time, so we ask it to remove and return those values
+         # for each of the subscriptions
+-        for _, sub in subscriptions.iteritems():
++        for _, sub in subscriptions.items():
+             sub.emit(client)
+ 
+     except pywatchman.SocketTimeout as ex:

Copied: watchman/repos/community-staging-x86_64/watchman.tmpfiles (from rev 753274, watchman/trunk/watchman.tmpfiles)
===================================================================
--- community-staging-x86_64/watchman.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/watchman.tmpfiles	2020-11-12 18:56:52 UTC (rev 753275)
@@ -0,0 +1 @@
+d /run/watchman 0777 root root



More information about the arch-commits mailing list