diff options
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/Manifest.gz | bin | 10135 -> 10133 bytes | |||
-rw-r--r-- | sys-process/lsof/Manifest | 2 | ||||
-rw-r--r-- | sys-process/lsof/files/lsof-4.98.0-fix-common-include-strftime.patch | 28 | ||||
-rw-r--r-- | sys-process/lsof/lsof-4.98.0-r1.ebuild | 58 |
4 files changed, 88 insertions, 0 deletions
diff --git a/sys-process/Manifest.gz b/sys-process/Manifest.gz Binary files differindex 047c0986fb34..86d30c586eda 100644 --- a/sys-process/Manifest.gz +++ b/sys-process/Manifest.gz diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest index ccc7c6133ddc..83b7f8c425ac 100644 --- a/sys-process/lsof/Manifest +++ b/sys-process/lsof/Manifest @@ -1,3 +1,5 @@ +AUX lsof-4.98.0-fix-common-include-strftime.patch 711 BLAKE2B 3c5182bcc967be342f9c4c677ffe8c6eee16d3b8c2d21c4433b86e28b7c9a1db8d04e2fd6e10d680765cd4b54d518d81d4a286ccf899a0806b98ee0c646a2dff SHA512 ea6c120e850bca271cc2152ddafe97a1a3105050ca59e83dd9b46bb1249686e2578f97d07f22128ed0f420170c669b031288b3fc4b0668947e6af9da512093ee DIST lsof-4.98.0.tar.gz 734232 BLAKE2B 2f4ba4d179e8061e5bcff7dda4a0981616530bd5577fc73904e2699e6e982efee9e4270d3f2d3c68751d73cb98bfed0fd49d4c6bd967d15b4e06dcb72494d024 SHA512 6fde12497ce9cbba698be624b45e8392d551626c3e46b50ec23e661b322438ef7162dbac0d06829d56f074c7d934fa1ca98aa50ee1487125c93bebfe8eb2a2e8 +EBUILD lsof-4.98.0-r1.ebuild 1436 BLAKE2B 0fe376b835a5e327a59206c6df37a3170abbe48938e20d6632f04050b3ffe51de09afd0916e68cbc1edbe545f2f5225944a524608872844e8b8e56a46f7df8cf SHA512 cb6bb37101eee931c330fbbb01f5e5ac7882c9113185e74889e3d1a626e245524fc7860f9085b09ad6d33e3d022a1fc4b0776988dc6a12bbaf4e490f0b762c0f EBUILD lsof-4.98.0.ebuild 1143 BLAKE2B a8bb837a09660c9eeb0c2ad6fd2ba0ba20d52f72d5c3b7c65448d1df5e2f6ee630c6752723e4e92ca3f3f3d9425ad701e1fcf0f35580ff86d958bc0d1e5fcf16 SHA512 073842dd2e4655cfdcccda69b33226023a9d7df5a3870f45f485f6e89bf0ace263a57fde39130c2c881a6328e518cfcb90d48465f32d263a125aed8b85cfd40d MISC metadata.xml 474 BLAKE2B d3c6368abc4d7656f3e2b136ffb651465fe7a65d65cb355b675b055ee6aa118d13d08ef224bd31fd17017d2ac3669b35a12dbd85f5375268bd48c099557c6eb1 SHA512 b7f98a413e6eb9fd787725e27c966586fea085ecbde22c84fd01e4fe5582e2e0d2ca18d1cce786d8e979d08e0fbdfed338c22d122d84544c1fc848b61573adfc diff --git a/sys-process/lsof/files/lsof-4.98.0-fix-common-include-strftime.patch b/sys-process/lsof/files/lsof-4.98.0-fix-common-include-strftime.patch new file mode 100644 index 000000000000..4b22dbfb8a02 --- /dev/null +++ b/sys-process/lsof/files/lsof-4.98.0-fix-common-include-strftime.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/910547 +https://github.com/lsof-org/lsof/commit/437824cf35daf5a505bed5b619bef95af090ecc4 + +From 437824cf35daf5a505bed5b619bef95af090ecc4 Mon Sep 17 00:00:00 2001 +From: Kalin KOZHUHAROV <me.kalin@gmail.com> +Date: Wed, 19 Jul 2023 15:23:13 +0200 +Subject: [PATCH] src/util.c add proper includes (#294) + +* src/util.c add proper includes + +Fixes #293 for lsof-org/lsof + +Signed-off-by: Kalin KOZHUHAROV <kalin@thinrope.net> + +--------- + +Signed-off-by: Kalin KOZHUHAROV <kalin@thinrope.net> +Co-authored-by: Jiajie Chen <c@jia.je> +--- a/util.c ++++ b/util.c +@@ -35,6 +35,7 @@ + * 4. This notice may not be removed or altered. + */ + ++#include "lsof.h" + + #if defined(HAS_STRFTIME) + #include <time.h> diff --git a/sys-process/lsof/lsof-4.98.0-r1.ebuild b/sys-process/lsof/lsof-4.98.0-r1.ebuild new file mode 100644 index 000000000000..aef7b5fff4a8 --- /dev/null +++ b/sys-process/lsof/lsof-4.98.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +MY_P="${P/-/_}" +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="https://github.com/lsof-org/lsof" +SRC_URI="https://github.com/lsof-org/lsof/releases/download/${PV}/${P}.tar.gz" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="rpc selinux" + +RDEPEND=" + rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-apps/groff + rpc? ( virtual/pkgconfig ) +" + +# Needs fixing first for sandbox +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${P}-fix-common-include-strftime.patch +) + +src_configure() { + # TODO: drop after 4.98.0: https://github.com/lsof-org/lsof/commit/4fbe0b78f63ce115f25cf7a49756745e3bf47fea + export ac_cv_header_selinux_selinux_h=$(usex selinux) + + # TODO: drop after 4.98.0: https://github.com/lsof-org/lsof/commit/22d9cedfca4672601f35f7683907373cd5124121 + [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX + + local myeconfargs=( + $(use_with rpc libtirpc) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + emake DEBUG="" all +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "Note: to use lsof on Solaris you need read permissions on" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" + fi +} |