aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-11-20 12:44:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-20 13:19:13 +0000
commita2948f9dbbbd7bdc935a894b9fd00287f995d682 (patch)
tree13e914e15f9cc99cb2f7bc3e48e1dabb50f13d1b
parent434b0061f39263cbf9a4b481f7a79bba178722ef (diff)
downloadaports-a2948f9dbbbd7bdc935a894b9fd00287f995d682.tar.gz
aports-a2948f9dbbbd7bdc935a894b9fd00287f995d682.tar.bz2
aports-a2948f9dbbbd7bdc935a894b9fd00287f995d682.tar.xz
main/libaio: remove use of legacy asm/errno.h header
-rw-r--r--main/libaio/APKBUILD8
-rw-r--r--main/libaio/libaio-errno.patch11
2 files changed, 16 insertions, 3 deletions
diff --git a/main/libaio/APKBUILD b/main/libaio/APKBUILD
index 1c26d91c08..41e35c1862 100644
--- a/main/libaio/APKBUILD
+++ b/main/libaio/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="libaio"
pkgver=0.3.112
-pkgrel=0
+pkgrel=1
pkgdesc="Asynchronous input/output library"
url="https://pagure.io/libaio"
arch="all"
@@ -13,7 +13,8 @@ makedepends="linux-headers"
subpackages="$pkgname-dev"
source="https://releases.pagure.org/libaio/libaio-$pkgver.tar.gz
libaio-optional-werror.patch
- libaio-cppflags.patch"
+ libaio-cppflags.patch
+ libaio-errno.patch"
package() {
make prefix="$pkgdir/usr" \
@@ -25,4 +26,5 @@ package() {
sha512sums="5f984529c9f747a6c82f1e4457fc0832bb1fc299ae6e700f2ac5a8ea7b9bfc6ea1e75809728cc115a020cff6685ed1f4e38c6aeacc1ea98dfccce04dd19dafaa libaio-0.3.112.tar.gz
9b04df1f92b245c3012d161a96bc54d3bcc07d8a1049d7e5acfae50fba9bba94cbdbc220d75d186d6bf2333d58b093b9cf17bd7cd594cfdbfb6682a63daf19fd libaio-optional-werror.patch
-c9ad6ff35ba12f33e308059d89592281768cef7091213b4702b64af2d194462864ec660dea327f8b718e5c723ec9ba6170b591461e2b140ba94f6838cddb8d7c libaio-cppflags.patch"
+c9ad6ff35ba12f33e308059d89592281768cef7091213b4702b64af2d194462864ec660dea327f8b718e5c723ec9ba6170b591461e2b140ba94f6838cddb8d7c libaio-cppflags.patch
+2bf5224f5c5714786cb9ed28d9ae7c1721ad21a498d7e76d0cd1443435f7cd424bd6d80baa961a07f38f20359711b3270cd5913890a47b683e035dfe00f66054 libaio-errno.patch"
diff --git a/main/libaio/libaio-errno.patch b/main/libaio/libaio-errno.patch
new file mode 100644
index 0000000000..0d2ca77611
--- /dev/null
+++ b/main/libaio/libaio-errno.patch
@@ -0,0 +1,11 @@
+--- libaio-0.3.112.orig/src/compat-0_1.c
++++ libaio-0.3.112/src/compat-0_1.c
+@@ -19,7 +19,7 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+ #include <stdlib.h>
+-#include <asm/errno.h>
++#include <errno.h>
+
+ #include "libaio.h"
+ #include "vsys_def.h"