From 1ca779af6b83b5320006f2e0d43940828eb782e6 Mon Sep 17 00:00:00 2001 From: lumag Date: Mon, 11 May 2015 22:38:26 +0300 Subject: obexpush: fix compilation error Newer glibc is strict on passing mode argument to open() call if O_CREAT has been specified. Provide reasonable mode argument to fix compilation error. Signed-off-by: Dmitry Eremin-Solenikov --- recipes-support/obexpush/files/fix-open.patch | 18 ++++++++++++++++++ recipes-support/obexpush/obexpush_1.0.0.bb | 1 + 2 files changed, 19 insertions(+) create mode 100644 recipes-support/obexpush/files/fix-open.patch diff --git a/recipes-support/obexpush/files/fix-open.patch b/recipes-support/obexpush/files/fix-open.patch new file mode 100644 index 0000000..1280daf --- /dev/null +++ b/recipes-support/obexpush/files/fix-open.patch @@ -0,0 +1,18 @@ +Index: obexpush/opd/main.c +=================================================================== +--- obexpush.orig/opd/main.c ++++ obexpush/opd/main.c +@@ -562,11 +562,11 @@ int main(int argc, char **argv,char *env + dup2(fd, 0); + close(fd); + +- fd = open("_opd_msgs.txt", O_RDWR | O_CREAT); ++ fd = open("_opd_msgs.txt", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + dup2(fd, 1); + close(fd); + +- fd = open("_opd_errs.txt", O_RDWR | O_CREAT); ++ fd = open("_opd_errs.txt", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + dup2(fd, 2); + close(fd); + diff --git a/recipes-support/obexpush/obexpush_1.0.0.bb b/recipes-support/obexpush/obexpush_1.0.0.bb index 5018728..0cb18cd 100644 --- a/recipes-support/obexpush/obexpush_1.0.0.bb +++ b/recipes-support/obexpush/obexpush_1.0.0.bb @@ -8,6 +8,7 @@ PR = "r7" SRC_URI = "http://www.caside.lancs.ac.uk/bt/obexpush.tar.gz \ file://add-obextool.patch \ + file://fix-open.patch \ file://init \ file://opd_args" S = "${WORKDIR}/obexpush" -- cgit 1.2.3-korg