From 80b426c236a6ffb74f813b7ef8f55eb28ddd203a Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 3 Feb 2021 12:15:32 +0300 Subject: e2fsprogs: bump to 1.46.0 --- core/e2fsprogs/patches/fix-musl.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 core/e2fsprogs/patches/fix-musl.patch (limited to 'core/e2fsprogs/patches') diff --git a/core/e2fsprogs/patches/fix-musl.patch b/core/e2fsprogs/patches/fix-musl.patch new file mode 100644 index 00000000..5a53ed1b --- /dev/null +++ b/core/e2fsprogs/patches/fix-musl.patch @@ -0,0 +1,23 @@ +Previous versions only used qsort, so I am basically reverting this change +so that it works in Musl. qsort_r isn't defined in Musl. + +Cem Keylan + +--- a/e2fsck/rehash.c 2021-02-03 12:11:27.912285401 +0300 ++++ b/e2fsck/rehash.c 2021-02-03 12:12:18.213423881 +0300 +@@ -1048,11 +1048,11 @@ + /* Sort the list */ + resort: + if (fd.compress && fd.num_array > 1) +- qsort_r(fd.harray+2, fd.num_array-2, sizeof(struct hash_entry), +- hash_cmp, &name_cmp_ctx); ++ qsort(fd.harray+2, fd.num_array-2, sizeof(struct hash_entry), ++ hash_cmp); + else +- qsort_r(fd.harray, fd.num_array, sizeof(struct hash_entry), +- hash_cmp, &name_cmp_ctx); ++ qsort(fd.harray, fd.num_array, sizeof(struct hash_entry), ++ hash_cmp); + + /* + * Look for duplicates -- cgit v1.2.3