dev-libs/libaio: bump to v0.3.112
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 4 Jun 2019 00:02:42 +0000 (02:02 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 4 Jun 2019 00:07:31 +0000 (02:07 +0200)
Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
dev-libs/libaio/Manifest
dev-libs/libaio/files/libaio-0.3.112-cppflags.patch
dev-libs/libaio/libaio-0.3.112.ebuild [new file with mode: 0644]
dev-libs/libaio/libaio-9999.ebuild

index 56396318f01eaefbb2a8a3f88f877a9a05609918..9fdec3bf4ca5e0c03bb3182b7384735ba2ddc874 100644 (file)
@@ -1,2 +1,3 @@
 DIST libaio-0.3.110.tar.gz 42270 BLAKE2B e774e5888106ffcf4db08569a8b3dc6722f4e0e8278e9f2fafe865e282c0568059e8dbb37aab7a33719ab4d80f42404bfb1d4ab03f5c066d9eb75301676f525e SHA512 664295d330d6e9adc005e2331e77582619625b479ffc2b81728ba6a682487380ee936079c4a69d35144b458bbe35c612f4ed9b32e913bd7e109b824345763eb3
 DIST libaio-0.3.111.tar.gz 44557 BLAKE2B dc2f44599218de0ca80cfc17f604eb85c9b1241ce7221f49f1a4ee8c5bd3fa135c29ac8d97f6f97550a508e27b0dc92eb709256ffd803c1feca255016a4d674d SHA512 259b89647e22ba47edd4076b8d6aa8ab89af197b64930aa5b01b69fc1969b13b4a5e91c449ccdc9b2746c9eae3160211ce1fe110d252efeca5f2c56d0ea66e2e
+DIST libaio-0.3.112.tar.gz 46977 BLAKE2B 088f3b195a65bdc97ae2318e47af17c65259ed3208dca7bfef93c81a800602085e5b2078dbd436c740be316d0ebd923a1b3b7c0808257e2e7c7fb0f7ae1e0dba SHA512 5f984529c9f747a6c82f1e4457fc0832bb1fc299ae6e700f2ac5a8ea7b9bfc6ea1e75809728cc115a020cff6685ed1f4e38c6aeacc1ea98dfccce04dd19dafaa
index 2f1ba4b7aec1568874f8faf2cf4c9fa36cd2660f..dddb9c2166070a796f022c52b8f4cf62df08941e 100644 (file)
@@ -1,25 +1,16 @@
-From 1df69d571c5b764c42ba17970707cc29d2394a25 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Sun, 21 Apr 2019 13:04:24 +0200
-Subject: [PATCH 2/2] respect env CPPFLAGS
+respect env CPPFLAGS
 
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- src/Makefile | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/Makefile b/src/Makefile
-index 66534b9..44bbef8 100644
 --- a/src/Makefile
 +++ b/src/Makefile
-@@ -5,6 +5,7 @@ usrlibdir=$(libdir)
+@@ -2,8 +2,9 @@ prefix=/usr
+ includedir=$(prefix)/include
+ libdir=$(prefix)/lib
  
- CFLAGS ?= -g -fomit-frame-pointer -O2
- CFLAGS += -Wall -I. -fPIC
+-CFLAGS ?= -g -fomit-frame-pointer -O2
+-CFLAGS += -Wall -I. -fPIC
++CFLAGS ?= -fomit-frame-pointer -O2
++CFLAGS += -I. -fPIC
 +CFLAGS += $(CPPFLAGS)
  SO_CFLAGS=-shared $(CFLAGS)
  L_CFLAGS=$(CFLAGS)
  LINK_FLAGS=
--- 
-2.21.0
-
diff --git a/dev-libs/libaio/libaio-0.3.112.ebuild b/dev-libs/libaio/libaio-0.3.112.ebuild
new file mode 100644 (file)
index 0000000..b6ff5d1
--- /dev/null
@@ -0,0 +1,85 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit multilib-minimal toolchain-funcs flag-o-matic
+
+DESCRIPTION="Asynchronous input/output library that uses the kernels native interface"
+HOMEPAGE="https://pagure.io/libaio"
+if [[ "${PV}" == 9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://pagure.io/libaio.git"
+else
+       SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="static-libs test"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.3.112-cppflags.patch
+       "${FILESDIR}"/${PN}-0.3.111-optional-werror.patch
+)
+
+src_prepare() {
+       default
+
+       local sed_args=(
+               -e "/^prefix=/s:/usr:${EPREFIX}/usr:"
+               -e '/^libdir=/s:lib$:$(ABI_LIBDIR):'
+       )
+       if ! use static-libs; then
+               sed_args+=( -e '/\tinstall .*\/libaio.a/d' )
+               # Tests require the static library to be built.
+               use test || sed_args+=( -e '/^all_targets +=/s/ libaio.a//' )
+       fi
+       sed -i "${sed_args[@]}" src/Makefile Makefile || die
+
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       if use arm ; then
+               # When building for thumb, we can't allow frame pointers.
+               # http://crbug.com/464517
+               if $(tc-getCPP) ${CFLAGS} ${CPPFLAGS} - <<<$'#ifndef __thumb__\n#error\n#endif' >&/dev/null ; then
+                       append-flags -fomit-frame-pointer
+               fi
+       fi
+}
+
+_emake() {
+       CC=$(tc-getCC) \
+       AR=$(tc-getAR) \
+       RANLIB=$(tc-getRANLIB) \
+       ABI_LIBDIR=$(get_libdir) \
+       CFLAGS_WERROR= \
+       emake "$@"
+}
+
+multilib_src_compile() {
+       _emake
+}
+
+multilib_src_test() {
+       mkdir -p testdir || die
+       # 'make check' breaks with sandbox, 'make partcheck' works
+       _emake partcheck prefix="${S}/src" libdir="${S}/src"
+}
+
+multilib_src_install() {
+       _emake install DESTDIR="${D}"
+}
+
+multilib_src_install_all() {
+       doman man/*
+       dodoc ChangeLog TODO
+
+       # move crap to / for multipath-tools #325355
+       gen_usr_ldscript -a aio
+
+       # This lib is a bare minimal shim on top of kernel syscalls.
+       export QA_DT_NEEDED=$(find "${ED}" -type f -name 'libaio.so.*' -printf '/%P\n')
+}
index ddaf4e22813ef1a037dbf2c55512a25247ba6975..b6ff5d1d421515caa225d2b53d9dd90baa7e1516 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI="7"
 
 inherit multilib-minimal toolchain-funcs flag-o-matic
 
@@ -11,15 +11,14 @@ if [[ "${PV}" == 9999 ]] ; then
        inherit git-r3
        EGIT_REPO_URI="https://pagure.io/libaio.git"
 else
-       SRC_URI="https://pagure.io/${PN}/archive/${P}/${P}.tar.gz"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+       SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
 fi
 LICENSE="LGPL-2"
 SLOT="0"
 IUSE="static-libs test"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-0.3.112-install.patch
        "${FILESDIR}"/${PN}-0.3.112-cppflags.patch
        "${FILESDIR}"/${PN}-0.3.111-optional-werror.patch
 )
@@ -72,7 +71,6 @@ multilib_src_test() {
 
 multilib_src_install() {
        _emake install DESTDIR="${D}"
-
 }
 
 multilib_src_install_all() {