diff options
author | Sam James <sam@gentoo.org> | 2024-02-20 05:08:01 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-20 05:08:01 +0000 |
commit | 1fa58dd95ad7ddfd72f7f72d1b3cb4745e5a3936 (patch) | |
tree | 8655ef6d7fc07a5e1603d501ea9be427f993189a /dev-libs/libaio | |
parent | net-firewall/xtables-addons: drop 3.23, 3.24 (diff) | |
download | gentoo-1fa58dd95ad7ddfd72f7f72d1b3cb4745e5a3936.tar.gz gentoo-1fa58dd95ad7ddfd72f7f72d1b3cb4745e5a3936.tar.bz2 gentoo-1fa58dd95ad7ddfd72f7f72d1b3cb4745e5a3936.zip |
dev-libs/libaio: EAPI 8, drop usr-ldscript
* EAPI 8
* Drop usr-ldscript per news item
Bug: https://bugs.gentoo.org/325355
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libaio')
-rw-r--r-- | dev-libs/libaio/libaio-0.3.113-r1.ebuild | 91 | ||||
-rw-r--r-- | dev-libs/libaio/libaio-9999.ebuild | 11 |
2 files changed, 96 insertions, 6 deletions
diff --git a/dev-libs/libaio/libaio-0.3.113-r1.ebuild b/dev-libs/libaio/libaio-0.3.113-r1.ebuild new file mode 100644 index 000000000000..f122b3a77785 --- /dev/null +++ b/dev-libs/libaio/libaio-0.3.113-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="LGPL-2" +SLOT="0" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.112-cppflags.patch + "${FILESDIR}"/${PN}-0.3.113-respect-LDFLAGS.patch + "${FILESDIR}"/${PN}-0.3.113-32-bit-tests.patch +) + +src_prepare() { + default + + local sed_args=( + -e "/^prefix=/s:/usr:${EPREFIX}/usr:" + -e '/^libdir=/s:lib$:$(ABI_LIBDIR):' + -e 's:-Werror ::' + ) + 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 harness/Makefile Makefile || die + + multilib_copy_sources +} + +multilib_src_configure() { + # Upstream aren't interested in fixing: bug #855698 + filter-lto + + 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 + + # 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') +} diff --git a/dev-libs/libaio/libaio-9999.ebuild b/dev-libs/libaio/libaio-9999.ebuild index db2f93f97564..9066780e1381 100644 --- a/dev-libs/libaio/libaio-9999.ebuild +++ b/dev-libs/libaio/libaio-9999.ebuild @@ -1,12 +1,13 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit multilib-minimal toolchain-funcs flag-o-matic usr-ldscript +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" @@ -14,6 +15,7 @@ else SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" fi + LICENSE="LGPL-2" SLOT="0" IUSE="static-libs test" @@ -83,9 +85,6 @@ multilib_src_install_all() { doman man/* dodoc ChangeLog TODO - # move to / for multipath-tools, bug #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') } |