summaryrefslogtreecommitdiff
path: root/editors/gedit
diff options
context:
space:
mode:
authorjperkin <jperkin>2012-10-26 15:51:13 +0000
committerjperkin <jperkin>2012-10-26 15:51:13 +0000
commitf16580e0c023202d495db2af522baef4226538a1 (patch)
tree81733499fb6f459b23741f744695a13d50bc4d76 /editors/gedit
parentda3e85999c109fec18c3993d6bf26e4db6f3dfe5 (diff)
downloadpkgsrc-f16580e0c023202d495db2af522baef4226538a1.tar.gz
Define ACCESSPERMS for systems which do not have it.
Fixes package on Solaris.
Diffstat (limited to 'editors/gedit')
-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!"