diff options
author | Cem Keylan <cem@ckyln.com> | 2021-02-03 12:15:32 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-02-03 12:15:32 +0300 |
commit | 80b426c236a6ffb74f813b7ef8f55eb28ddd203a (patch) | |
tree | 1b8bff2d4c1856078f088971b34e72d109dc8dc7 /core/e2fsprogs/patches | |
parent | 4539c9d2d23774ea009557df7ea06d8c3e23e0f3 (diff) | |
download | repository-80b426c236a6ffb74f813b7ef8f55eb28ddd203a.tar.gz |
e2fsprogs: bump to 1.46.0
Diffstat (limited to 'core/e2fsprogs/patches')
-rw-r--r-- | core/e2fsprogs/patches/fix-musl.patch | 23 |
1 files changed, 23 insertions, 0 deletions
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 |