diff options
author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2019-05-07 22:49:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 23:00:32 +0100 |
commit | 969087c3ccdab4539c86913f872440bed6508597 (patch) | |
tree | b45259154426f88c4f092a3cf20afdea938e283d | |
parent | 4815f8847d35848723a72ec6a03553427bae25d0 (diff) | |
download | poky-969087c3ccdab4539c86913f872440bed6508597.tar.gz |
mtools: update to 4.0.23
Removed patches were mainstreamed.
(From OE-Core rev: 836c178cc34a98877a18540a855534a36bbe722b)
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/mtools/mtools/0001-Continue-even-if-fs-size-is-not-divisible-by-sectors.patch | 34 | ||||
-rw-r--r-- | meta/recipes-devtools/mtools/mtools/0001-remove-LOCK_NB-to-use-blocking-request.patch | 44 | ||||
-rw-r--r-- | meta/recipes-devtools/mtools/mtools_4.0.23.bb (renamed from meta/recipes-devtools/mtools/mtools_4.0.19.bb) | 6 |
3 files changed, 2 insertions, 82 deletions
diff --git a/meta/recipes-devtools/mtools/mtools/0001-Continue-even-if-fs-size-is-not-divisible-by-sectors.patch b/meta/recipes-devtools/mtools/mtools/0001-Continue-even-if-fs-size-is-not-divisible-by-sectors.patch deleted file mode 100644 index 1f8f8351c4..0000000000 --- a/meta/recipes-devtools/mtools/mtools/0001-Continue-even-if-fs-size-is-not-divisible-by-sectors.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 5cc8d1f96ab6d3459e13631d8356f87381562352 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Thu, 2 Jun 2016 09:49:44 +0300 | ||
4 | Subject: [PATCH] Continue even if fs size is not divisible by | ||
5 | sectors-per-track | ||
6 | |||
7 | Filesystem with a size that is not divisible by sectors-per-track is | ||
8 | not broken or invalid: it might be unoptimized on media where | ||
9 | heads and cylinders actually matter but that should be it. | ||
10 | |||
11 | Preserve the warning but make mtools continue even if fs size is not | ||
12 | divisible by sectors-per-track. | ||
13 | |||
14 | Upstream-Status: Submitted [info-mtools@gnu.org] | ||
15 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
16 | --- | ||
17 | init.c | 1 - | ||
18 | 1 file changed, 1 deletion(-) | ||
19 | |||
20 | diff --git a/init.c b/init.c | ||
21 | index c9152e0..4e16a01 100644 | ||
22 | --- a/init.c | ||
23 | +++ b/init.c | ||
24 | @@ -338,7 +338,6 @@ Stream_t *fs_init(char drive, int mode, int *isRop) | ||
25 | fprintf(stderr, | ||
26 | "Add mtools_skip_check=1 to your .mtoolsrc file " | ||
27 | "to skip this test\n"); | ||
28 | - exit(1); | ||
29 | } | ||
30 | |||
31 | /* full cylinder buffering */ | ||
32 | -- | ||
33 | 2.1.4 | ||
34 | |||
diff --git a/meta/recipes-devtools/mtools/mtools/0001-remove-LOCK_NB-to-use-blocking-request.patch b/meta/recipes-devtools/mtools/mtools/0001-remove-LOCK_NB-to-use-blocking-request.patch deleted file mode 100644 index 47385a582b..0000000000 --- a/meta/recipes-devtools/mtools/mtools/0001-remove-LOCK_NB-to-use-blocking-request.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From 5bdbfe0a63fed48104b17412854b26ee2275869a Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 22 Aug 2018 16:54:39 +0800 | ||
4 | Subject: [PATCH] remove LOCK_NB to use blocking request | ||
5 | |||
6 | While invoking mtools frequently, the unblocking request | ||
7 | caused race issue. Here is an example of syslinux | ||
8 | [snip] | ||
9 | dd if=/dev/zero of=floppy.img bs=1024 count=144 | ||
10 | losetup /dev/loop1 floppy.img | ||
11 | mkdosfs /dev/loop1 | ||
12 | syslinux -i /dev/loop1 | ||
13 | |plain floppy: device "/proc/6351/fd/3" busy (Resource temporarily unavailable): | ||
14 | |Cannot initialize 'S:' | ||
15 | |Bad target s:/ldlinux.sys | ||
16 | [snip] | ||
17 | |||
18 | The idea is from: | ||
19 | https://bugzilla.redhat.com/show_bug.cgi?id=1235016 | ||
20 | https://groups.google.com/a/chromium.org/forum/#!msg/chromium-os-dev/bRPUCFHoBTQ/ZjB8kjjx1vUJ | ||
21 | |||
22 | Upstream-Status: Pending | ||
23 | |||
24 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
25 | --- | ||
26 | lockdev.h | 2 +- | ||
27 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
28 | |||
29 | diff --git a/lockdev.h b/lockdev.h | ||
30 | index 4467bc2..5a135ad 100644 | ||
31 | --- a/lockdev.h | ||
32 | +++ b/lockdev.h | ||
33 | @@ -43,7 +43,7 @@ int lock_dev(int fd, int mode, struct device *dev) | ||
34 | return 0; | ||
35 | |||
36 | #if (defined(HAVE_FLOCK) && defined (LOCK_EX) && defined(LOCK_NB)) | ||
37 | - if (flock(fd, (mode ? LOCK_EX : LOCK_SH)|LOCK_NB) < 0) | ||
38 | + if (flock(fd, (mode ? LOCK_EX : LOCK_SH)) < 0) | ||
39 | #else /* FLOCK */ | ||
40 | |||
41 | #if (defined(HAVE_LOCKF) && defined(F_TLOCK)) | ||
42 | -- | ||
43 | 2.7.4 | ||
44 | |||
diff --git a/meta/recipes-devtools/mtools/mtools_4.0.19.bb b/meta/recipes-devtools/mtools/mtools_4.0.23.bb index 7d59d93a81..2ae69797a4 100644 --- a/meta/recipes-devtools/mtools/mtools_4.0.19.bb +++ b/meta/recipes-devtools/mtools/mtools_4.0.23.bb | |||
@@ -24,14 +24,12 @@ RRECOMMENDS_${PN}_libc-glibc = "\ | |||
24 | glibc-gconv-ibm866 \ | 24 | glibc-gconv-ibm866 \ |
25 | glibc-gconv-ibm869 \ | 25 | glibc-gconv-ibm869 \ |
26 | " | 26 | " |
27 | SRC_URI[md5sum] = "f750246a65ee6f9d2e82d10b03a0aaaf" | 27 | SRC_URI[md5sum] = "1d17b58c53a46b29c7f521d4a55ccef1" |
28 | SRC_URI[sha256sum] = "1bc197199ea1c2c317f597879486eeb817f3199b526d94cc6841624768d910df" | 28 | SRC_URI[sha256sum] = "f188db26751aeb5692a79b2380b440ecc05fd1848a52f869d7ca1193f2ef8ee3" |
29 | 29 | ||
30 | SRC_URI = "${GNU_MIRROR}/mtools/mtools-${PV}.tar.bz2 \ | 30 | SRC_URI = "${GNU_MIRROR}/mtools/mtools-${PV}.tar.bz2 \ |
31 | file://mtools-makeinfo.patch \ | 31 | file://mtools-makeinfo.patch \ |
32 | file://no-x11.gplv3.patch \ | 32 | file://no-x11.gplv3.patch \ |
33 | file://0001-Continue-even-if-fs-size-is-not-divisible-by-sectors.patch \ | ||
34 | file://0001-remove-LOCK_NB-to-use-blocking-request.patch \ | ||
35 | file://clang_UNUSED.patch \ | 33 | file://clang_UNUSED.patch \ |
36 | " | 34 | " |
37 | 35 | ||