diff options
author | Sam James <sam@gentoo.org> | 2024-11-18 05:34:05 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-18 05:34:48 +0000 |
commit | 047579dd5fdbd32b836c75634fdce4d7ddf89607 (patch) | |
tree | fb96eef119665d7ff14a82256fd4a3140bd03f82 /dev-libs/ell/ell-0.70-r1.ebuild | |
parent | app-arch/ncompress: fix C23 compat (diff) | |
download | gentoo-047579dd5fdbd32b836c75634fdce4d7ddf89607.tar.gz gentoo-047579dd5fdbd32b836c75634fdce4d7ddf89607.tar.bz2 gentoo-047579dd5fdbd32b836c75634fdce4d7ddf89607.zip |
dev-libs/ell: fix C23 compat
Closes: https://bugs.gentoo.org/943704
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/ell/ell-0.70-r1.ebuild')
-rw-r--r-- | dev-libs/ell/ell-0.70-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/ell/ell-0.70-r1.ebuild b/dev-libs/ell/ell-0.70-r1.ebuild new file mode 100644 index 000000000000..458f682ec04f --- /dev/null +++ b/dev-libs/ell/ell-0.70-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-info + +DESCRIPTION="Embedded Linux Library provides core, low-level functionality for system daemons" +HOMEPAGE="https://git.kernel.org/pub/scm/libs/ell/ell.git" +if [[ "${PV}" == *9999 ]] ; then + inherit autotools git-r3 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git" +else + SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi +LICENSE="LGPL-2.1+" +SLOT="0" + +IUSE="pie test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( sys-apps/dbus )" + +CONFIG_CHECK=" + ~TIMERFD + ~EVENTFD + ~CRYPTO_USER_API + ~CRYPTO_USER_API_HASH + ~CRYPTO_MD5 + ~CRYPTO_SHA1 + ~KEY_DH_OPERATIONS +" + +PATCHES=( + "${FILESDIR}"/0.70 +) + +src_prepare() { + default + sed -i -e "s#/tmp/ell-test-bus#/tmp/ell-test-bus-$(uuidgen)#" \ + unit/test-dbus*.c unit/dbus.conf || die + [[ "${PV}" == *9999 ]] && eautoreconf +} + +src_configure() { + append-cflags "-fsigned-char" #662694 + local myeconfargs=( + $(use_enable pie) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name "*.la" -delete || die +} + +src_test() { + # New dbus tests fail with >3 jobs, this should get fixed soon + emake -j1 check +} |