mtd-utils: update to 2.1.1
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Tue, 6 Aug 2019 19:59:13 +0000 (03:59 +0800)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Tue, 27 Aug 2019 08:32:44 +0000 (10:32 +0200)
Removed upstream patch
Compile and run tested on mvebu

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
package/utils/mtd-utils/Makefile
package/utils/mtd-utils/patches/200-Revert-Return-correct-error-number-in-ubi_get_vol_in.patch [deleted file]

index ca60726d81a94e298a9392147ce61c8e5b896509..8acd46747e6c68c2660ced0e3ce302c182d57e48 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mtd-utils
-PKG_VERSION:=2.0.2
+PKG_VERSION:=2.1.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/mtd-utils/
-PKG_HASH:=fb3de61be8e932abb424e8ea3c30298f553d5f970ad158a737bb303bbf9660b8
+PKG_HASH:=8d15e8b70f036d6af1a66011f8ca0e048e9675fa7983d33bea92c24313a232d2
 
 PKG_INSTALL:=1
 PKG_FIXUP:=autoreconf
@@ -58,7 +58,9 @@ MAKE_FLAGS += LDLIBS+="$(LIBGCC_S)"
 
 CONFIGURE_ARGS += \
        --disable-tests \
+       --without-crypto \
        --without-xattr \
+       --without-zstd \
        --without-lzo
 
 TARGET_CFLAGS += -ffunction-sections -fdata-sections
diff --git a/package/utils/mtd-utils/patches/200-Revert-Return-correct-error-number-in-ubi_get_vol_in.patch b/package/utils/mtd-utils/patches/200-Revert-Return-correct-error-number-in-ubi_get_vol_in.patch
deleted file mode 100644 (file)
index 79695c4..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-From 7d27becbb355853ba778e8b83fe171eecb8195d2 Mon Sep 17 00:00:00 2001
-From: Christian Lamparter <chunkeey@gmail.com>
-Date: Thu, 7 Jun 2018 22:36:19 +0200
-Subject: [PATCH] Revert "Return correct error number in ubi_get_vol_info1"
-
-This reverts commit dede98ffb706676309488d7cc660f569548d5930.
----
- lib/libubi.c | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/lib/libubi.c b/lib/libubi.c
-index b50e68a..978b433 100644
---- a/lib/libubi.c
-+++ b/lib/libubi.c
-@@ -1240,11 +1240,8 @@ int ubi_get_vol_info1(libubi_t desc, int dev_num, int vol_id,
-       info->dev_num = dev_num;
-       info->vol_id = vol_id;
--      if (vol_get_major(lib, dev_num, vol_id, &info->major, &info->minor)) {
--              if (errno == ENOENT)
--                      errno = ENODEV;
-+      if (vol_get_major(lib, dev_num, vol_id, &info->major, &info->minor))
-               return -1;
--      }
-       ret = vol_read_data(lib->vol_type, dev_num, vol_id, buf, 50);
-       if (ret < 0)
--- 
-2.17.1
-