summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2012-10-26 15:51:13 +0000
committerjperkin <jperkin@pkgsrc.org>2012-10-26 15:51:13 +0000
commit7037afbf0aa5393e4f215daf78b45e4c2149ca71 (patch)
tree81733499fb6f459b23741f744695a13d50bc4d76 /editors
parent51666fce9cb582f621550d5b1fe515e8f8e54c64 (diff)
downloadpkgsrc-7037afbf0aa5393e4f215daf78b45e4c2149ca71.tar.gz
Define ACCESSPERMS for systems which do not have it.
Fixes package on Solaris.
Diffstat (limited to 'editors')
-rw-r--r--editors/gedit/distinfo3
-rw-r--r--editors/gedit/patches/patch-tests_document-saver.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/editors/gedit/distinfo b/editors/gedit/distinfo
index 3d453e427ad..406d72a4c41 100644
--- a/editors/gedit/distinfo
+++ b/editors/gedit/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.52 2010/11/03 19:55:18 drochner Exp $
+$NetBSD: distinfo,v 1.53 2012/10/26 15:51:13 jperkin Exp $
SHA1 (gedit-2.30.4.tar.bz2) = ff7f4088d0b89224b84406557a7d9970323fdcc3
RMD160 (gedit-2.30.4.tar.bz2) = b2659b8847ef02c66a70acd2f4a492555e1e4d21
Size (gedit-2.30.4.tar.bz2) = 4705692 bytes
SHA1 (patch-ab) = 06f1492437126f8ee12bda5b5dd090b713885ba2
SHA1 (patch-ac) = 997c8a7ddcfc98369afdf42dddeff5cf6e159c23
+SHA1 (patch-tests_document-saver.c) = 5317930c5da888c33f43f341e627b2e85829212b
diff --git a/editors/gedit/patches/patch-tests_document-saver.c b/editors/gedit/patches/patch-tests_document-saver.c
new file mode 100644
index 00000000000..e26a760ff89
--- /dev/null
+++ b/editors/gedit/patches/patch-tests_document-saver.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-tests_document-saver.c,v 1.1 2012/10/26 15:51:13 jperkin Exp $
+
+Define ACCESSPERMS for systems which do not have it.
+
+--- tests/document-saver.c.orig 2012-10-26 15:41:49.737048981 +0000
++++ tests/document-saver.c 2012-10-26 15:42:28.479034452 +0000
+@@ -27,6 +27,10 @@
+ #include <string.h>
+ #include <sys/stat.h>
+
++#ifndef ACCESSPERMS
++#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
++#endif
++
+ #define DEFAULT_LOCAL_URI "/tmp/gedit-document-saver-test.txt"
+ #define DEFAULT_REMOTE_URI "sftp://localhost/tmp/gedit-document-saver-test.txt"
+ #define DEFAULT_CONTENT "hello world!"