Fri Oct 11 14:38:56 2019 UTC ()
py-pyinotify: unconditionally build inotify syscalls so.

Fixes build on NetBSD and probably others.


(wiz)
diff -r1.2 -r1.3 pkgsrc/sysutils/py-pyinotify/distinfo
diff -r1.2 -r1.3 pkgsrc/sysutils/py-pyinotify/patches/patch-setup.py

cvs diff -r1.2 -r1.3 pkgsrc/sysutils/py-pyinotify/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/py-pyinotify/distinfo 2019/09/24 09:04:08 1.2
+++ pkgsrc/sysutils/py-pyinotify/distinfo 2019/10/11 14:38:56 1.3
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.2 2019/09/24 09:04:08 adam Exp $ 1$NetBSD: distinfo,v 1.3 2019/10/11 14:38:56 wiz Exp $
2 2
3SHA1 (Pyinotify-0.9.6.tar.gz) = 815c5e5699669d44042efb12122b60e97cae7bf4 3SHA1 (Pyinotify-0.9.6.tar.gz) = 815c5e5699669d44042efb12122b60e97cae7bf4
4RMD160 (Pyinotify-0.9.6.tar.gz) = 298d687320e30c80905ed7969143028045983e92 4RMD160 (Pyinotify-0.9.6.tar.gz) = 298d687320e30c80905ed7969143028045983e92
5SHA512 (Pyinotify-0.9.6.tar.gz) = 144db691c1cdfd4e52b838b8ed839b8d50d84d26a91a59b7460c3170f58a1c96b3ce4f51e6273835835291781215a87b8f2d2d87d1abf012e4c14b2cd4b3f4cf 5SHA512 (Pyinotify-0.9.6.tar.gz) = 144db691c1cdfd4e52b838b8ed839b8d50d84d26a91a59b7460c3170f58a1c96b3ce4f51e6273835835291781215a87b8f2d2d87d1abf012e4c14b2cd4b3f4cf
6Size (Pyinotify-0.9.6.tar.gz) = 61159 bytes 6Size (Pyinotify-0.9.6.tar.gz) = 61159 bytes
7SHA1 (patch-setup.py) = 7991345b06b5276438ae1b75548cac9d7de5867c 7SHA1 (patch-setup.py) = d6cfecc6e6ea7ae35aff01c95c0deffb21d275f5

cvs diff -r1.2 -r1.3 pkgsrc/sysutils/py-pyinotify/patches/patch-setup.py (expand / switch to unified diff)

--- pkgsrc/sysutils/py-pyinotify/patches/patch-setup.py 2019/09/24 09:04:08 1.2
+++ pkgsrc/sysutils/py-pyinotify/patches/patch-setup.py 2019/10/11 14:38:56 1.3
@@ -1,19 +1,28 @@ @@ -1,19 +1,28 @@
1$NetBSD: patch-setup.py,v 1.2 2019/09/24 09:04:08 adam Exp $ 1$NetBSD: patch-setup.py,v 1.3 2019/10/11 14:38:56 wiz Exp $
2 2
3Add NetBSD. 3Add NetBSD.
4 4
5--- setup.py.orig 2015-06-04 15:28:48.000000000 +0000 5--- setup.py.orig 2015-06-04 15:28:48.000000000 +0000
6+++ setup.py 6+++ setup.py
 7@@ -3,7 +3,7 @@
 8 # Set True to force compile native C-coded extension providing direct access
 9 # to inotify's syscalls. If set to False this extension will only be compiled
 10 # if no inotify interface from ctypes is found.
 11-compile_ext_mod = False
 12+compile_ext_mod = True
 13
 14 # import statements
 15 import os
7@@ -24,10 +24,6 @@ if sys.version_info < (2, 4): 16@@ -24,10 +24,6 @@ if sys.version_info < (2, 4):
8 sys.stderr.write('This module requires at least Python 2.4\n') 17 sys.stderr.write('This module requires at least Python 2.4\n')
9 sys.exit(1) 18 sys.exit(1)
10  19
11-# check linux platform 20-# check linux platform
12-if not platform.startswith('linux') and not platform.startswith('freebsd'): 21-if not platform.startswith('linux') and not platform.startswith('freebsd'):
13- sys.stderr.write("inotify is not available on %s\n" % platform) 22- sys.stderr.write("inotify is not available on %s\n" % platform)
14- sys.exit(1) 23- sys.exit(1)
15  24
16  25
17 classif = [ 26 classif = [
18@@ -71,7 +67,7 @@ def should_compile_ext_mod(): 27@@ -71,7 +67,7 @@ def should_compile_ext_mod():
19 return True 28 return True