Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/lsof/files/, sys-process/lsof/
Date: Fri, 03 Jul 2020 06:13:28
Message-Id: 1593756799.1da5d9f95352d54311a57579e05504fbb1c235ba.polynomial-c@gentoo
1 commit: 1da5d9f95352d54311a57579e05504fbb1c235ba
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 3 06:13:08 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 3 06:13:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1da5d9f9
7
8 sys-process/lsof: Removed old
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-process/lsof/Manifest | 1 -
14 .../lsof/files/lsof-4.90-darwin-cppfix.patch | 12 ---
15 sys-process/lsof/lsof-4.91.ebuild | 117 ---------------------
16 3 files changed, 130 deletions(-)
17
18 diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest
19 index 2ea65705ba4..d8e31733fa7 100644
20 --- a/sys-process/lsof/Manifest
21 +++ b/sys-process/lsof/Manifest
22 @@ -1,2 +1 @@
23 DIST lsof-4.93.2.tar.gz 1319222 BLAKE2B 3b1756e7b72a0b0a2a11bce82a9b386f6dc5727d7837a4d544e2e33a98be3bfb46af50f0d8cc7b4a4bc419148d13f86d0f34cf806d90ba5d31312f426f81b7e9 SHA512 3c4a4d503391b1a648a08a4947c2e72a9629b169eddf50738b16a16a82f2a26967e4db2902e4a9157de5a73ae638db48e392117ffbd591e9fafd6b1725cd01a0
24 -DIST lsof_4.91.tar.bz2 791734 BLAKE2B cd6211caedea34fdbb89266fd78a70902117eda6d4d7fa69115426f4a6f5cb5296fa09bbd946648d8d93483881e4ea4e2190f090be155c1081850e8366cfd05a SHA512 49f811941dd6303f7cb0655fddb8b1177af5d1b18f2bd1edfab09d2c128aea73daecf09c7a5375979c66ba764c88a6e70c9086b55c3634e3be01ab1aa12e9f92
25
26 diff --git a/sys-process/lsof/files/lsof-4.90-darwin-cppfix.patch b/sys-process/lsof/files/lsof-4.90-darwin-cppfix.patch
27 deleted file mode 100644
28 index fcbfeba410a..00000000000
29 --- a/sys-process/lsof/files/lsof-4.90-darwin-cppfix.patch
30 +++ /dev/null
31 @@ -1,12 +0,0 @@
32 -diff -Naur a/dialects/darwin/libproc/dfile.c b/dialects/darwin/libproc/dfile.c
33 ---- a/dialects/darwin/libproc/dfile.c 2018-02-19 15:04:26.011578124 +0800
34 -+++ b/dialects/darwin/libproc/dfile.c 2018-02-19 15:04:45.006502653 +0800
35 -@@ -43,7 +43,7 @@
36 - #include "lsof.h"
37 -
38 - #if defined(PROC_FP_GUARDED)
39 --#extern struct pff_tab Pgf_tab[];
40 -+extern struct pff_tab Pgf_tab[];
41 - #endif /* defined(PROC_FP_GUARDED) */
42 -
43 -
44
45 diff --git a/sys-process/lsof/lsof-4.91.ebuild b/sys-process/lsof/lsof-4.91.ebuild
46 deleted file mode 100644
47 index 76e427ccb6b..00000000000
48 --- a/sys-process/lsof/lsof-4.91.ebuild
49 +++ /dev/null
50 @@ -1,117 +0,0 @@
51 -# Copyright 1999-2020 Gentoo Authors
52 -# Distributed under the terms of the GNU General Public License v2
53 -
54 -EAPI=6
55 -
56 -inherit flag-o-matic toolchain-funcs
57 -
58 -MY_P="${P/-/_}"
59 -DESCRIPTION="Lists open files for running Unix processes"
60 -HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
61 -SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
62 - ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2
63 - http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2"
64 -
65 -LICENSE="lsof"
66 -SLOT="0"
67 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
68 -IUSE="examples ipv6 rpc selinux"
69 -
70 -RDEPEND="rpc? ( net-libs/libtirpc )
71 - selinux? ( sys-libs/libselinux )"
72 -DEPEND="${RDEPEND}
73 - rpc? ( virtual/pkgconfig )"
74 -
75 -S="${WORKDIR}/${MY_P}/${MY_P}_src"
76 -
77 -PATCHES=(
78 - "${FILESDIR}"/${PN}-4.85-cross.patch #432120
79 - "${FILESDIR}"/${PN}-4.90-darwin-cppfix.patch #648084
80 -)
81 -
82 -src_unpack() {
83 - unpack ${A}
84 - cd ${MY_P} || die
85 - unpack ./${MY_P}_src.tar
86 -}
87 -
88 -src_prepare() {
89 - default
90 - # fix POSIX compliance with `echo`
91 - sed -i \
92 - -e 's:echo -n:printf:' \
93 - AFSConfig Configure Customize Inventory tests/CkTestDB || die
94 - # Convert `test -r header.h` into a compile test.
95 - # Make sure we convert `test ... -a ...` into two `test` commands
96 - # so we can then convert both over into a compile test. #601432
97 - sed -i -E \
98 - -e '/if test .* -a /s: -a : \&\& test :g' \
99 - -e '/test -r/s:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:g' \
100 - -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
101 - Configure || die
102 -}
103 -
104 -target() {
105 - case ${CHOST} in
106 - *-darwin*) echo darwin ;;
107 - *-freebsd*) echo freebsd ;;
108 - *-solaris*) echo solaris ;;
109 - *-aix*) echo aixgcc ;;
110 - *) echo linux ;;
111 - esac
112 -}
113 -
114 -src_configure() {
115 - append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
116 - append-cppflags $(usex ipv6 -{D,U}HASIPv6)
117 - [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX
118 - if [[ ${CHOST} == *-darwin* ]] ; then
119 - # make sys/proc_info.h available in ${T} because of LSOF_INCLUDE
120 - # dummy location -- Darwin needs this for a Configure check to
121 - # succeed
122 - if [[ -e /usr/include/sys/proc_info.h ]] ; then
123 - mkdir -p "${T}"/sys || die
124 - ( cd "${T}"/sys && ln -s /usr/include/sys/proc_info.h ) || die
125 - fi
126 - fi
127 -
128 - export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
129 - $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
130 -
131 - # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
132 - # around in it and mix /usr/include paths with cross-compile/etc.
133 - touch .neverInv
134 - LINUX_HASSELINUX=$(usex selinux y n) \
135 - LSOF_INCLUDE=${T} \
136 - LSOF_CC=$(tc-getCC) \
137 - LSOF_AR="$(tc-getAR) rc" \
138 - LSOF_RANLIB=$(tc-getRANLIB) \
139 - LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
140 - ./Configure -n $(target) || die
141 -}
142 -
143 -src_compile() {
144 - emake DEBUG="" all
145 -}
146 -
147 -src_install() {
148 - dobin lsof
149 -
150 - if use examples ; then
151 - insinto /usr/share/lsof/scripts
152 - doins scripts/*
153 - fi
154 -
155 - doman lsof.8
156 - dodoc 00*
157 -}
158 -
159 -pkg_postinst() {
160 - if [[ ${CHOST} == *-solaris* ]] ; then
161 - einfo "Note: to use lsof on Solaris you need read permissions on"
162 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
163 - elif [[ ${CHOST} == *-aix* ]] ; then
164 - einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
165 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
166 - fi
167 -}