summaryrefslogtreecommitdiff
path: root/recipes/e2fsprogs
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/e2fsprogs')
-rw-r--r--recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch11
-rw-r--r--recipes/e2fsprogs/e2fsprogs-native_1.38.bb5
-rw-r--r--recipes/e2fsprogs/e2fsprogs_1.38.bb5
-rw-r--r--recipes/e2fsprogs/e2fsprogs_1.41.4.bb4
4 files changed, 20 insertions, 5 deletions
diff --git a/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch b/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch
new file mode 100644
index 0000000000..97679d6ff9
--- /dev/null
+++ b/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch
@@ -0,0 +1,11 @@
+--- e2fsprogs-1.38/lib/ext2fs/ismounted.c~ 2005-06-06 06:05:22.000000000 +1000
++++ e2fsprogs-1.38/lib/ext2fs/ismounted.c 2009-04-03 15:07:35.000000000 +1100
+@@ -147,7 +147,7 @@
+ is_root:
+ #define TEST_FILE "/.ismount-test-file"
+ *mount_flags |= EXT2_MF_ISROOT;
+- fd = open(TEST_FILE, O_RDWR|O_CREAT);
++ fd = open(TEST_FILE, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
+ if (fd < 0) {
+ if (errno == EROFS)
+ *mount_flags |= EXT2_MF_READONLY;
diff --git a/recipes/e2fsprogs/e2fsprogs-native_1.38.bb b/recipes/e2fsprogs/e2fsprogs-native_1.38.bb
index 388c519d0c..af49b0d7dd 100644
--- a/recipes/e2fsprogs/e2fsprogs-native_1.38.bb
+++ b/recipes/e2fsprogs/e2fsprogs-native_1.38.bb
@@ -2,11 +2,12 @@ SECTION = "base"
require e2fsprogs.inc
inherit native
-PR = "r2"
+PR = "r3"
SRC_URI += "file://no-hardlinks.patch;patch=1 \
file://mkinstalldirs.patch;patch=1 \
- "
+ file://file-open-mode.patch;patch=1 \
+ "
EXTRA_OECONF = ""
diff --git a/recipes/e2fsprogs/e2fsprogs_1.38.bb b/recipes/e2fsprogs/e2fsprogs_1.38.bb
index 5687556c78..8ec469a84a 100644
--- a/recipes/e2fsprogs/e2fsprogs_1.38.bb
+++ b/recipes/e2fsprogs/e2fsprogs_1.38.bb
@@ -1,10 +1,11 @@
require e2fsprogs.inc
-PR = "r19"
+PR = "r20"
SRC_URI += "file://no-hardlinks.patch;patch=1 \
file://mkinstalldirs.patch;patch=1 \
- "
+ file://file-open-mode.patch;patch=1 \
+ "
TARGET_CC_ARCH += "${LDFLAGS}"
diff --git a/recipes/e2fsprogs/e2fsprogs_1.41.4.bb b/recipes/e2fsprogs/e2fsprogs_1.41.4.bb
index 177d9af2f8..c2b92323c4 100644
--- a/recipes/e2fsprogs/e2fsprogs_1.41.4.bb
+++ b/recipes/e2fsprogs/e2fsprogs_1.41.4.bb
@@ -2,7 +2,9 @@ require e2fsprogs.inc
SRC_URI += "file://mkinstalldirs.patch;patch=1"
-PR = "r2"
+DEPENDS += "gettext-native"
+
+PR = "r3"
do_compile_prepend () {
find ./ -print|xargs chmod u=rwX