summaryrefslogtreecommitdiff
path: root/system/libaio
diff options
context:
space:
mode:
Diffstat (limited to 'system/libaio')
-rw-r--r--system/libaio/APKBUILD19
-rw-r--r--system/libaio/improper-strncpy-usage.patch26
-rw-r--r--system/libaio/posix-header.patch11
3 files changed, 47 insertions, 9 deletions
diff --git a/system/libaio/APKBUILD b/system/libaio/APKBUILD
index b40b031aa..f46e8b582 100644
--- a/system/libaio/APKBUILD
+++ b/system/libaio/APKBUILD
@@ -1,32 +1,33 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname="libaio"
-pkgver=0.3.111
+pkgver=0.3.112
pkgrel=0
pkgdesc="Asynchronous input/output library"
url="http://lse.sourceforge.net/io/aio.html"
arch="all"
license="LGPL-2.1+"
-depends=
+depends=""
makedepends="linux-headers"
-install=
subpackages="$pkgname-dev"
-source="http://ftp.debian.org/debian/pool/main/liba/$pkgname/${pkgname}_${pkgver}.orig.tar.gz"
+source="http://ftp.debian.org/debian/pool/main/liba/$pkgname/${pkgname}_${pkgver}.orig.tar.xz
+ improper-strncpy-usage.patch
+ posix-header.patch
+ "
build() {
- cd "$builddir"
- make
+ make LDFLAGS="$LDFLAGS -lssp_nonshared"
}
check() {
- cd "$builddir"
# the full testsuite requires root and attempts to do a loop mount
make partcheck
}
package() {
- cd "$builddir"
make prefix="$pkgdir/usr" install
}
-sha512sums="440f2b62f99ca2e72ffc8c2c04b4779a1a7cf24a8ba2a30b34d18b4ee77630a2078610fe8c435559f81a5c3bfa93049bd53d77464a0da8267833fbde3f40ceeb libaio_0.3.111.orig.tar.gz"
+sha512sums="612f0adeea4926ced914b43ec550bf821bef348e6c787f9e3c1a545e5667121692a9af7ebaab14744aca7132a071083a1120bd01e31726932f3ceb9be51891a7 libaio_0.3.112.orig.tar.xz
+8294a17b60676838375b3f17b84af19f3f3224788bdc944eda6b235305f48b6b292899f9d528be7b4b87305e7beac409afc0f250d052454b2a739bd990104b83 improper-strncpy-usage.patch
+4cc9ad9f1020bc6397c3847cc511bed93fe4c5391ef00094b6704c8ba3f9e295e35e60536ecb3e306713caac9fdb81ecc3d083d8e96cc20db39a105d16b7ab84 posix-header.patch"
diff --git a/system/libaio/improper-strncpy-usage.patch b/system/libaio/improper-strncpy-usage.patch
new file mode 100644
index 000000000..b2f6b86a4
--- /dev/null
+++ b/system/libaio/improper-strncpy-usage.patch
@@ -0,0 +1,26 @@
+It is invalid to use the src size as the strncpy size parameter.
+
+Found by GCC 8.3, fixed by awilfox.
+
+--- libaio-0.3.111/harness/cases/19.t.old 2018-03-06 22:24:47.000000000 +0000
++++ libaio-0.3.111/harness/cases/19.t 2019-02-28 22:20:03.170000000 +0000
+@@ -41,7 +41,7 @@
+ int fd;
+ char template[sizeof(TEMPLATE)];
+
+- strncpy(template, TEMPLATE, sizeof(TEMPLATE));
++ strncpy(template, TEMPLATE, sizeof(template));
+ fd = mkostemp(template, O_DIRECT);
+ if (fd < 0) {
+ perror("mkstemp");
+--- libaio-0.3.111/harness/cases/21.t.old 2018-03-06 22:24:47.000000000 +0000
++++ libaio-0.3.111/harness/cases/21.t 2019-02-28 22:20:13.120000000 +0000
+@@ -43,7 +43,7 @@
+ int fd;
+ char temp_file[sizeof(TEMPLATE)];
+
+- strncpy(temp_file, TEMPLATE, sizeof(TEMPLATE));
++ strncpy(temp_file, TEMPLATE, sizeof(temp_file));
+ fd = mkstemp(temp_file);
+ if (fd < 0) {
+ perror("mkstemp");
diff --git a/system/libaio/posix-header.patch b/system/libaio/posix-header.patch
new file mode 100644
index 000000000..6a11c0e34
--- /dev/null
+++ b/system/libaio/posix-header.patch
@@ -0,0 +1,11 @@
+--- libaio-0.3.112/harness/cases/22.t.old 2018-10-22 18:55:23.000000000 +0000
++++ libaio-0.3.112/harness/cases/22.t 2019-03-08 01:52:02.840000000 +0000
+@@ -11,7 +11,7 @@
+ #include <signal.h>
+ #include <stdio.h>
+ #include <unistd.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ #include <sys/wait.h>
+ #include <stdlib.h>
+