mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
gedit: Define ACCESSPERMS if not defined already
Fixes build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 94f92801d6)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
From ee43bcc3c8d69fe56a64c3487e2d3c780ea5d25e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Thu, 13 Jul 2017 06:53:35 -0700
|
||||||
|
Subject: [PATCH] tests/document-saver.c: Define ACCESSPERMS if not defined
|
||||||
|
already
|
||||||
|
|
||||||
|
Helps compile with musl
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
tests/document-saver.c | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tests/document-saver.c b/tests/document-saver.c
|
||||||
|
index 9f44d5a..811ade6 100644
|
||||||
|
--- a/tests/document-saver.c
|
||||||
|
+++ b/tests/document-saver.c
|
||||||
|
@@ -41,6 +41,10 @@
|
||||||
|
#define UNOWNED_GROUP_LOCAL_URI "/tmp/gedit-document-saver-unowned-group.txt"
|
||||||
|
#define UNOWNED_GROUP_REMOTE_URI "sftp://localhost/tmp/gedit-document-saver-unowned-group.txt"
|
||||||
|
|
||||||
|
+#if !defined(ACCESSPERMS)
|
||||||
|
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
static gboolean test_completed;
|
||||||
|
static gboolean mount_completed;
|
||||||
|
static gboolean mount_success;
|
||||||
|
--
|
||||||
|
2.13.2
|
||||||
|
|
||||||
@@ -8,11 +8,12 @@ DEPENDS = "gvfs enchant gconf gnome-doc-utils glib-2.0 gtk+ gtksourceview2 iso-c
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||||
|
|
||||||
inherit gnome gettext pythonnative
|
inherit gnome gettext pythonnative
|
||||||
SRC_URI+= " \
|
SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \
|
||||||
file://0001-workaround-void-pointer-arithmetic.patch \
|
file://0001-workaround-void-pointer-arithmetic.patch \
|
||||||
file://0001-Remove-help-directory-from-build.patch \
|
file://0001-Remove-help-directory-from-build.patch \
|
||||||
file://0002-suppress-string-format-literal-warning-to-fix-build-.patch \
|
file://0002-suppress-string-format-literal-warning-to-fix-build-.patch \
|
||||||
"
|
file://0001-tests-document-saver.c-Define-ACCESSPERMS-if-not-def.patch \
|
||||||
|
"
|
||||||
SRC_URI[archive.md5sum] = "e1eecb0a92a1a363b3d375ec5ac0fb3b"
|
SRC_URI[archive.md5sum] = "e1eecb0a92a1a363b3d375ec5ac0fb3b"
|
||||||
SRC_URI[archive.sha256sum] = "a561fe3dd1d199baede1bd07c4ee65f06fc7c494dd4d3327117f04149a608e3c"
|
SRC_URI[archive.sha256sum] = "a561fe3dd1d199baede1bd07c4ee65f06fc7c494dd4d3327117f04149a608e3c"
|
||||||
GNOME_COMPRESS_TYPE="bz2"
|
GNOME_COMPRESS_TYPE="bz2"
|
||||||
|
|||||||
Reference in New Issue
Block a user