diff options
author | tsarna <tsarna> | 1998-07-11 20:33:12 +0000 |
---|---|---|
committer | tsarna <tsarna> | 1998-07-11 20:33:12 +0000 |
commit | e14bbdf490cc286fb26d9cc7ab32b01c4ce4a71c (patch) | |
tree | e0ff9037ec280a18bc026708dfaa23db5d012130 /lang/python/patches/patch-aj | |
parent | 9f10c08d80f1f5f79e442447fef993bf70adbd20 (diff) | |
download | pkgsrc-e14bbdf490cc286fb26d9cc7ab32b01c4ce4a71c.tar.gz |
Two changes:
- Use -fPIC instead of -fpic (latter breaks py-Numeric on sparc).
Suggested by tv@netbsd.org. This is inherited by most py-*
packages. Change sent to guido@cnri.reston.va.us.
- Remove official patches from patches dir. Use PATCHFILES mechanism
instead to get them from www.python.org.
Diffstat (limited to 'lang/python/patches/patch-aj')
-rw-r--r-- | lang/python/patches/patch-aj | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lang/python/patches/patch-aj b/lang/python/patches/patch-aj deleted file mode 100644 index 06c2b493ff0..00000000000 --- a/lang/python/patches/patch-aj +++ /dev/null @@ -1,15 +0,0 @@ ---- Objects/fileobject.c.orig Sat Apr 11 00:16:34 1998 -+++ Objects/fileobject.c Wed May 6 23:09:41 1998 -@@ -415,7 +415,11 @@ - struct stat st; - if (fstat(fileno(f->f_fp), &st) == 0) { - end = st.st_size; -- pos = ftell(f->f_fp); -+ pos = lseek(fileno(f->f_fp), 0L, SEEK_CUR); -+ if (pos >= 0) -+ pos = ftell(f->f_fp); -+ if (pos < 0) -+ clearerr(f->f_fp); - if (end > pos && pos >= 0) - return end - pos + 1; - /* Add 1 so if the file were to grow we'd notice. */ |