commit: 1572d2d464fb1a29909b22612f8bf2cf7262994b Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Tue Dec 16 18:09:41 2025 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Tue Dec 16 18:10:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1572d2d4
sys-apps/s390-tools: add 2.27.0 Closes: https://bugs.gentoo.org/838028 Closes: https://bugs.gentoo.org/967616 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> sys-apps/s390-tools/Manifest | 1 + sys-apps/s390-tools/s390-tools-2.27.0.ebuild | 74 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/sys-apps/s390-tools/Manifest b/sys-apps/s390-tools/Manifest index eeafe301b100..72c2060afdba 100644 --- a/sys-apps/s390-tools/Manifest +++ b/sys-apps/s390-tools/Manifest @@ -1,2 +1,3 @@ DIST s390-tools-2.12.0.tar.gz 1186816 BLAKE2B bdf7975d236ec939539221ba548d67582836ae1ef8fab29ff19ac32596ba60686d41db47412bfe7a86d74a1728e3ee41356403ba21557cec4400a2aae98165df SHA512 4903ded5368966513e1090faca04482316870cf5fc53206d17ab98b821541e2836a016bd18cd1ca49ed6b5df0dff92dd1ed257ff712920a7aa3fd74e4a6bc6a0 +DIST s390-tools-2.27.0.tar.gz 1848002 BLAKE2B 5b71cffee4eefeb834eed4e34abc1d1c3e8d8df4e7862f0af5d0b1b26172060168059569f6ac27a0de1d28e0bf3155cd9d789098b12b8b11b69c4858d9def3a2 SHA512 8ec83718639d17fe7b1990f4e492f1e1bdd11e814b7838c921733eeccb212f417141042118eadf1e8db498e3ff2ce0c8d404189e436cefe17d9a3dacea22429f DIST s390-tools-2.9.0.tar.gz 1162090 BLAKE2B a86b8b1859d125f476a96546163881723cf87536a654871269c23ec6e72266776083f5d49bff3c65c2a01af7de985d2079cc9504a605e3d42de297a464b8ee69 SHA512 23315e8914a5c797b0678298ff51fd95a3c9f065b0fa9f6cf954573fd5ad394890d7f8dbd9cf2501d845c76c3fe31952b25cb7c2b2d59744305b2f37cf3a65bb diff --git a/sys-apps/s390-tools/s390-tools-2.27.0.ebuild b/sys-apps/s390-tools/s390-tools-2.27.0.ebuild new file mode 100644 index 000000000000..3efbf572bdb9 --- /dev/null +++ b/sys-apps/s390-tools/s390-tools-2.27.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs udev + +DESCRIPTION="User space utilities for the zSeries (s390) Linux kernel and device drivers" +HOMEPAGE="https://github.com/ibm-s390-tools/s390-tools" +SRC_URI="https://github.com/ibm-${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~s390" +IUSE="abi_s390_32 cryptsetup fuse ncurses openssl pfm snmp zlib" + +RDEPEND="fuse? ( sys-fs/fuse:0= ) + ncurses? ( sys-libs/ncurses:0= ) + openssl? ( + dev-libs/openssl:0= + cryptsetup? ( + >=sys-fs/cryptsetup-2.0.3:= + dev-libs/json-c:= + ) + ) + pfm? ( app-misc/pfm ) + snmp? ( net-analyzer/net-snmp ) + zlib? ( virtual/zlib:= )" +DEPEND="${RDEPEND}" +BDEPEND=" + app-admin/genromfs + virtual/pkgconfig +" + +src_prepare() { + default + sed -i -e 's/-lncurses/-lncurses -ltinfo/' "${S}"/hyptop/Makefile || die + + # zipl only builds on 64bit + if use abi_s390_32 ; then + sed -i -e 's/^TOOL_DIRS = zipl /TOOL_DIRS = /' "${S}"/Makefile || die + fi +} + +src_configure() { + export MAKEOPTS+=" V=1" + export HAVE_DRACUT=0 + export HAVE_FUSE=$(usex fuse 1 0) + export HAVE_NCURSES=$(usex ncurses 1 0) + export HAVE_SNMP=$(usex snmp 1 0) + export HAVE_PFM=$(usex pfm 1 0) + export HAVE_ZLIB=$(usex zlib 1 0) + export HAVE_OPENSSL=$(usex openssl 1 0) + export HAVE_CRYPTSETUP2=$(usex cryptsetup 1 0) + export HAVE_JSONC=$(usex cryptsetup 1 0) + tc-export AR BUILD_CC CC CXX LD NM OBJCOPY +} + +src_compile() { + emake \ + AR="${AR}" \ + HOSTCC="${BUILD_CC}" \ + CC="${CC}" LINK="${CC}" \ + CXX="${CXX}" LINKXX="${CXX}" \ + LD="${LD}" \ + NM="${NM}" \ + OBJCOPY="${OBJCOPY}" +} + +src_install() { + default + udev_dorules etc/udev/rules.d/*.rules + keepdir /var/log/ts-shell +}
