Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/libaio/PKGBUILD11
-rw-r--r--core/libaio/libaio-0.3.113-off_t.patch21
2 files changed, 32 insertions, 0 deletions
diff --git a/core/libaio/PKGBUILD b/core/libaio/PKGBUILD
new file mode 100644
index 00000000..0103f113
--- /dev/null
+++ b/core/libaio/PKGBUILD
@@ -0,0 +1,11 @@
+# patch for off_t -> off64_t (test 23)
+source+=('libaio-0.3.113-off_t.patch')
+sha512sums+=('4393b6f1322f9349f3dc00063867a8d80b97ec77978aad60a26424c6749e6800f77f7d854fcaa3d3517fbaba7f0441d694d0afeb43d7a6b5e10b709c65f9fa84')
+b2sums+=('9776de4c42eafd6bcd1042d0a161ac16eb38b4377408d2ad18c4533e6a3d7638fb8cf5cdb9179fa3180a381dc984eefc032f5341d11ce381d7b2914a2dea67bb')
+
+eval "$(
+ declare -f prepare | \
+ sed '
+ $ i cd $pkgname-$pkgname-$pkgver && patch -Np1 -i "$srcdir/libaio-0.3.113-off_t.patch" \
+ '
+)"
diff --git a/core/libaio/libaio-0.3.113-off_t.patch b/core/libaio/libaio-0.3.113-off_t.patch
new file mode 100644
index 00000000..15ae5215
--- /dev/null
+++ b/core/libaio/libaio-0.3.113-off_t.patch
@@ -0,0 +1,21 @@
+diff -rauN libaio-libaio-0.3.113/harness/cases/23.t libaio-libaio-0.3.113-off_t-patch/harness/cases/23.t
+--- libaio-libaio-0.3.113/harness/cases/23.t 2022-04-12 22:49:33.000000000 +0200
++++ libaio-libaio-0.3.113-off_t-patch/harness/cases/23.t 2022-06-02 13:25:40.945786571 +0200
+@@ -72,7 +72,7 @@
+ static void *thrproc2(void *arg)
+ {
+ for (;;) {
+- off_t offset = 0;
++ off64_t offset = 0;
+
+ pthread_barrier_wait(&barrier);
+ if (exiting)
+@@ -92,7 +92,7 @@
+ {
+ for (;;) {
+ char c;
+- off_t offset = 0;
++ off64_t offset = 0;
+
+ pthread_barrier_wait(&barrier);
+ if (exiting)