[mtd-utils & autoshutdown] fix patch error
authorhschang <chang@dev3>
Thu, 3 Jul 2014 12:02:41 +0000 (21:02 +0900)
committerhschang <chang@dev3>
Thu, 3 Jul 2014 12:02:49 +0000 (21:02 +0900)
meta-openvuplus/recipes-devtools/mtd/files/mkfs.ubifs-allow-output-file-creation-on-different-device.patch
meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-systemplugins-autoshutdown.bb

index 63f7ae2..e8ddf71 100644 (file)
@@ -1,11 +1,11 @@
 diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
 diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
-index f77e5e6..e002be5 100644
+index 200c8a5..00b97f4 100644
 --- a/mkfs.ubifs/mkfs.ubifs.c
 +++ b/mkfs.ubifs/mkfs.ubifs.c
 --- a/mkfs.ubifs/mkfs.ubifs.c
 +++ b/mkfs.ubifs/mkfs.ubifs.c
-@@ -324,6 +324,22 @@ static int in_path(const char *dir_name, const char *file_name)
+@@ -286,6 +286,22 @@ out_free:
        return ret;
  }
        return ret;
  }
-
 +/*
 + * same_device - determine if a file is on the same blockdevice as a directory.
 + * @dir_name: directory path name
 +/*
 + * same_device - determine if a file is on the same blockdevice as a directory.
 + * @dir_name: directory path name
@@ -25,12 +25,12 @@ index f77e5e6..e002be5 100644
  /**
   * calc_min_log_lebs - calculate the minimum number of log LEBs needed.
   * @max_bud_bytes: journal size (buds only)
  /**
   * calc_min_log_lebs - calculate the minimum number of log LEBs needed.
   * @max_bud_bytes: journal size (buds only)
-@@ -376,7 +392,7 @@ static int validate_options(void)
-
+@@ -338,7 +354,7 @@ static int validate_options(void)
        if (!output)
                return err_msg("no output file or UBI volume specified");
        if (!output)
                return err_msg("no output file or UBI volume specified");
--      if (root && in_path(root, output))
-+      if (root && same_device(root, output) && in_path(root, output))
-               return err_msg("output file cannot be in the UBIFS root "
-                              "directory");
-       if (!is_power_of_2(c->min_io_size))
+-      if (root) {
++      if (root && same_device(root, output)) {
+               tmp = is_contained(output, root);
+               if (tmp < 0)
+                       return err_msg("failed to perform output file root check");
index e1d87e3..9581a1e 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "automated power off for STB"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit gitpkgv
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit gitpkgv
-SRCREV="406e54cb250fecb5040dba844098140982186668"
+SRCREV_pn-${PN} = "406e54cb250fecb5040dba844098140982186668"
 PV = "0.3+git${SRCPV}"
 PKGV = "0.3+git${GITPKGV}"
 PR = "r3"
 PV = "0.3+git${SRCPV}"
 PKGV = "0.3+git${GITPKGV}"
 PR = "r3"