tools: mtd-utils: Update to version 2.1.2
The release notes says this: As already said, the changes since 2.1.1 are primarily bug fixes, addressing compiler warnings and issues reported by diagnostic tools, but also build failures for some configurations. https://lists.infradead.org/pipermail/linux-mtd/2020-July/081299.html Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
00722a720c
commit
561031921f
@ -7,11 +7,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mtd-utils
|
PKG_NAME:=mtd-utils
|
||||||
PKG_VERSION:=2.1.1
|
PKG_VERSION:=2.1.2
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/mtd-utils/
|
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/mtd-utils/
|
||||||
PKG_HASH:=8d15e8b70f036d6af1a66011f8ca0e048e9675fa7983d33bea92c24313a232d2
|
PKG_HASH:=8ad4c5f34716d40646aa28724a2f5616d325a6f119254f914e26976f1f76e9d6
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- a/jffsX-utils/mkfs.jffs2.c
|
--- a/jffsX-utils/mkfs.jffs2.c
|
||||||
+++ b/jffsX-utils/mkfs.jffs2.c
|
+++ b/jffsX-utils/mkfs.jffs2.c
|
||||||
@@ -427,7 +427,7 @@ static int interpret_table_entry(struct
|
@@ -428,7 +428,7 @@ static int interpret_table_entry(struct
|
||||||
|
|
||||||
if (sscanf (line, "%" SCANF_PREFIX "s %c %lo %lu %lu %lu %lu %lu %lu %lu",
|
if (sscanf (line, "%" SCANF_PREFIX "s %c %lo %lu %lu %lu %lu %lu %lu %lu",
|
||||||
SCANF_STRING(name), &type, &mode, &uid, &gid, &major, &minor,
|
SCANF_STRING(name), &type, &mode, &uid, &gid, &major, &minor,
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
|
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
|
||||||
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
|
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
|
||||||
@@ -1503,6 +1503,7 @@ static int add_inode(struct stat *st, in
|
@@ -1549,6 +1549,7 @@ static int add_inode(struct stat *st, in
|
||||||
|
|
||||||
if (c->default_compr != UBIFS_COMPR_NONE)
|
if (c->default_compr != UBIFS_COMPR_NONE)
|
||||||
use_flags |= UBIFS_COMPR_FL;
|
use_flags |= UBIFS_COMPR_FL;
|
||||||
@ -78,7 +78,7 @@
|
|||||||
if (flags & FS_COMPR_FL)
|
if (flags & FS_COMPR_FL)
|
||||||
use_flags |= UBIFS_COMPR_FL;
|
use_flags |= UBIFS_COMPR_FL;
|
||||||
if (flags & FS_SYNC_FL)
|
if (flags & FS_SYNC_FL)
|
||||||
@@ -1515,6 +1516,7 @@ static int add_inode(struct stat *st, in
|
@@ -1561,6 +1562,7 @@ static int add_inode(struct stat *st, in
|
||||||
use_flags |= UBIFS_DIRSYNC_FL;
|
use_flags |= UBIFS_DIRSYNC_FL;
|
||||||
if (fctx)
|
if (fctx)
|
||||||
use_flags |= UBIFS_CRYPT_FL;
|
use_flags |= UBIFS_CRYPT_FL;
|
||||||
@ -86,7 +86,7 @@
|
|||||||
memset(ino, 0, UBIFS_INO_NODE_SZ);
|
memset(ino, 0, UBIFS_INO_NODE_SZ);
|
||||||
|
|
||||||
ino_key_init(&key, inum);
|
ino_key_init(&key, inum);
|
||||||
@@ -1600,7 +1602,9 @@ static int add_dir_inode(const char *pat
|
@@ -1646,7 +1648,9 @@ static int add_dir_inode(const char *pat
|
||||||
fd = dirfd(dir);
|
fd = dirfd(dir);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return sys_err_msg("dirfd failed");
|
return sys_err_msg("dirfd failed");
|
||||||
@ -96,7 +96,7 @@
|
|||||||
flags = 0;
|
flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1811,6 +1815,7 @@ static int add_file(const char *path_nam
|
@@ -1857,6 +1861,7 @@ static int add_file(const char *path_nam
|
||||||
dn->ch.node_type = UBIFS_DATA_NODE;
|
dn->ch.node_type = UBIFS_DATA_NODE;
|
||||||
key_write(&key, &dn->key);
|
key_write(&key, &dn->key);
|
||||||
out_len = NODE_BUFFER_SIZE - UBIFS_DATA_NODE_SZ;
|
out_len = NODE_BUFFER_SIZE - UBIFS_DATA_NODE_SZ;
|
||||||
@ -104,7 +104,7 @@
|
|||||||
if (c->default_compr == UBIFS_COMPR_NONE &&
|
if (c->default_compr == UBIFS_COMPR_NONE &&
|
||||||
!c->encrypted && (flags & FS_COMPR_FL))
|
!c->encrypted && (flags & FS_COMPR_FL))
|
||||||
#ifdef WITHOUT_LZO
|
#ifdef WITHOUT_LZO
|
||||||
@@ -1819,6 +1824,7 @@ static int add_file(const char *path_nam
|
@@ -1865,6 +1870,7 @@ static int add_file(const char *path_nam
|
||||||
use_compr = UBIFS_COMPR_LZO;
|
use_compr = UBIFS_COMPR_LZO;
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
@ -112,7 +112,7 @@
|
|||||||
use_compr = c->default_compr;
|
use_compr = c->default_compr;
|
||||||
compr_type = compress_data(buf, bytes_read, &dn->data,
|
compr_type = compress_data(buf, bytes_read, &dn->data,
|
||||||
&out_len, use_compr);
|
&out_len, use_compr);
|
||||||
@@ -1876,7 +1882,9 @@ static int add_non_dir(const char *path_
|
@@ -1924,7 +1930,9 @@ static int add_non_dir(const char *path_
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return sys_err_msg("failed to open file '%s'",
|
return sys_err_msg("failed to open file '%s'",
|
||||||
path_name);
|
path_name);
|
||||||
|
@ -5015,7 +5015,7 @@
|
|||||||
+}
|
+}
|
||||||
--- a/jffsX-utils/mkfs.jffs2.c
|
--- a/jffsX-utils/mkfs.jffs2.c
|
||||||
+++ b/jffsX-utils/mkfs.jffs2.c
|
+++ b/jffsX-utils/mkfs.jffs2.c
|
||||||
@@ -1666,11 +1666,11 @@ int main(int argc, char **argv)
|
@@ -1667,11 +1667,11 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
erase_block_size *= units;
|
erase_block_size *= units;
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
out_free:
|
out_free:
|
||||||
--- a/include/libubigen.h
|
--- a/include/libubigen.h
|
||||||
+++ b/include/libubigen.h
|
+++ b/include/libubigen.h
|
||||||
@@ -188,6 +188,9 @@ int ubigen_write_layout_vol(const struct
|
@@ -187,6 +187,9 @@ int ubigen_write_layout_vol(const struct
|
||||||
long long ec1, long long ec2,
|
long long ec1, long long ec2,
|
||||||
struct ubi_vtbl_record *vtbl, int fd);
|
struct ubi_vtbl_record *vtbl, int fd);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
int target_endian = __BYTE_ORDER;
|
int target_endian = __BYTE_ORDER;
|
||||||
|
|
||||||
static uint32_t find_hardlink(struct filesystem_entry *e)
|
static uint32_t find_hardlink(struct filesystem_entry *e)
|
||||||
@@ -250,8 +250,8 @@ static struct filesystem_entry *add_host
|
@@ -251,8 +251,8 @@ static struct filesystem_entry *add_host
|
||||||
mode &= ~(S_ISUID | S_ISGID);
|
mode &= ~(S_ISUID | S_ISGID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
entry = xcalloc(1, sizeof(struct filesystem_entry));
|
entry = xcalloc(1, sizeof(struct filesystem_entry));
|
||||||
@@ -1557,6 +1557,20 @@ static void parse_image(void){
|
@@ -1558,6 +1558,20 @@ static void parse_image(void){
|
||||||
close(in_fd);
|
close(in_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int c, opt;
|
int c, opt;
|
||||||
@@ -1575,6 +1589,7 @@ int main(int argc, char **argv)
|
@@ -1576,6 +1590,7 @@ int main(int argc, char **argv)
|
||||||
warn_page_size = 1; /* warn user if page size not 4096 */
|
warn_page_size = 1; /* warn user if page size not 4096 */
|
||||||
|
|
||||||
jffs2_compressors_init();
|
jffs2_compressors_init();
|
||||||
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
while ((opt = getopt_long(argc, argv,
|
while ((opt = getopt_long(argc, argv,
|
||||||
"D:d:r:s:o:qUPfh?vVe:lbp::nc:m:x:X:Lty:i:", long_options, &c)) >= 0)
|
"D:d:r:s:o:qUPfh?vVe:lbp::nc:m:x:X:Lty:i:", long_options, &c)) >= 0)
|
||||||
@@ -1625,7 +1640,7 @@ int main(int argc, char **argv)
|
@@ -1626,7 +1641,7 @@ int main(int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
|
Loading…
Reference in New Issue
Block a user