aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-03 12:15:32 +0300
committerCem Keylan <cem@ckyln.com>2021-02-03 12:15:32 +0300
commit80b426c236a6ffb74f813b7ef8f55eb28ddd203a (patch)
tree1b8bff2d4c1856078f088971b34e72d109dc8dc7 /core
parent4539c9d2d23774ea009557df7ea06d8c3e23e0f3 (diff)
downloadrepository-80b426c236a6ffb74f813b7ef8f55eb28ddd203a.tar.gz
e2fsprogs: bump to 1.46.0
Diffstat (limited to 'core')
-rwxr-xr-xcore/e2fsprogs/build2
-rw-r--r--core/e2fsprogs/checksums3
-rw-r--r--core/e2fsprogs/patches/fix-musl.patch23
-rw-r--r--core/e2fsprogs/sources3
-rw-r--r--core/e2fsprogs/version2
5 files changed, 30 insertions, 3 deletions
diff --git a/core/e2fsprogs/build b/core/e2fsprogs/build
index 35dcd376..9c144907 100755
--- a/core/e2fsprogs/build
+++ b/core/e2fsprogs/build
@@ -3,6 +3,8 @@
export CFLAGS="$CFLAGS -static"
export LDFLAGS="$LDFLAGS -static"
+patch -p1 < fix-musl.patch
+
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
diff --git a/core/e2fsprogs/checksums b/core/e2fsprogs/checksums
index ef6f2f5c..68d093ed 100644
--- a/core/e2fsprogs/checksums
+++ b/core/e2fsprogs/checksums
@@ -1 +1,2 @@
-ffa7ae6954395abdc50d0f8605d8be84736465afc53b8938ef473fcf7ff44256 e2fsprogs-1.45.6.tar.xz
+91d61cef9a251a18e49a700be0028a8d35b0549a25d2bc263af6fa5d9f7c7d13 e2fsprogs-1.46.0.tar.xz
+3a6977348094c9629b2e62bc02ce77947cb11aa425e49d884debac16eca1258a fix-musl.patch
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
diff --git a/core/e2fsprogs/sources b/core/e2fsprogs/sources
index 1bb74fde..6a21d81d 100644
--- a/core/e2fsprogs/sources
+++ b/core/e2fsprogs/sources
@@ -1 +1,2 @@
-https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.45.6/e2fsprogs-1.45.6.tar.xz
+https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.46.0/e2fsprogs-1.46.0.tar.xz
+patches/fix-musl.patch
diff --git a/core/e2fsprogs/version b/core/e2fsprogs/version
index fc495df5..8c3df8ce 100644
--- a/core/e2fsprogs/version
+++ b/core/e2fsprogs/version
@@ -1 +1 @@
-1.45.6 1
+1.46.0 1