aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2004-05-11 03:27:15 +0800
committerlinimon <linimon@FreeBSD.org>2004-05-11 03:27:15 +0800
commitf0027db43cfd6a8035c7bea91f5431349ad3be34 (patch)
treeb853fc5c278fd45527640500d7c59c556a084159 /misc
parent3b55d20673cd5a6ca9890257142b2cef0bf36acc (diff)
downloadfreebsd-ports-graphics-f0027db43cfd6a8035c7bea91f5431349ad3be34.tar.gz
freebsd-ports-graphics-f0027db43cfd6a8035c7bea91f5431349ad3be34.tar.zst
freebsd-ports-graphics-f0027db43cfd6a8035c7bea91f5431349ad3be34.zip
Update to 0.999 and work around buggy getpid() implementations in compiler.
PR: ports/65846 Submitted by: Marco Molteni <mmolteni@cisco.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/py-pexpect/Makefile2
-rw-r--r--misc/py-pexpect/distinfo4
-rw-r--r--misc/py-pexpect/files/patch-pexpect.py29
3 files changed, 32 insertions, 3 deletions
diff --git a/misc/py-pexpect/Makefile b/misc/py-pexpect/Makefile
index 9a86b20c309..5f5ce8321f0 100644
--- a/misc/py-pexpect/Makefile
+++ b/misc/py-pexpect/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= pexpect
-PORTVERSION= 0.99
+PORTVERSION= 0.999
CATEGORIES= misc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/misc/py-pexpect/distinfo b/misc/py-pexpect/distinfo
index c242ce95488..f874397075b 100644
--- a/misc/py-pexpect/distinfo
+++ b/misc/py-pexpect/distinfo
@@ -1,2 +1,2 @@
-MD5 (pexpect-0.99.tgz) = 597081031c64fc58dc9a0dc5bc6c078c
-SIZE (pexpect-0.99.tgz) = 19933
+MD5 (pexpect-0.999.tgz) = e426e5f54d323aaf392008c9eb35131d
+SIZE (pexpect-0.999.tgz) = 20190
diff --git a/misc/py-pexpect/files/patch-pexpect.py b/misc/py-pexpect/files/patch-pexpect.py
new file mode 100644
index 00000000000..37263f96a78
--- /dev/null
+++ b/misc/py-pexpect/files/patch-pexpect.py
@@ -0,0 +1,29 @@
+--- pexpect.py.orig Mon Apr 26 14:16:08 2004
++++ pexpect.py Mon Apr 26 14:19:45 2004
+@@ -498,21 +498,24 @@ class spawn:
+ pid, status = os.waitpid(self.pid, os.WNOHANG)
+ except OSError:
+ return 0
+
+ # I have to do this twice for Solaris.
+ # I can't even believe that I figured this out...
+- if pid == 0 and status == 0:
++
++ # If waitpid() returns 0 it means that no child process wishes to
++ # report, and the value of status is undefined.
++ if pid == 0:
+ try:
+ pid, status = os.waitpid(self.pid, os.WNOHANG)
+ #print 'Solaris sucks'
+ except OSError: # This is crufty. When does this happen?
+ return 0
+ # If pid and status is still 0 after two calls to waitpid() then
+ # the process really is alive. This seems to work on all platforms.
+- if pid == 0 and status == 0:
++ if pid == 0:
+ return 1
+
+ # I do not OR this together because I want hooks for debugging.
+ if os.WIFEXITED (status):
+ self.exitstatus = os.WEXITSTATUS(status)
+ return 0