sys-process/lsof: remove USE=static
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 4 Nov 2018 22:48:24 +0000 (23:48 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 4 Nov 2018 22:48:38 +0000 (23:48 +0100)
USE=static doesn't work with USE=rpc anymore since tirpc was moved to
net-libs/libtirpc:

- net-libs/libtirpc[static-libs] is broken: When net-libs/libtirpc was build
  with USE=kerberos it isn't guaranteed that virtual/krb5 provider was linked
  statically which is causing problems for lsof when trying to statically link
  against libtirpc.

- getrpcbynumber from print.c is now part of libc. However you cannot
  statically link against that libc component.

Closes: https://bugs.gentoo.org/667272
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sys-process/lsof/lsof-4.91.ebuild

index ff937fc558c570886d521bd14103b8e8b7cc8875..8dd49f00f030e2d5d9e3862f693a5eb3906234d2 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
 LICENSE="lsof"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="examples ipv6 rpc selinux static"
+IUSE="examples ipv6 rpc selinux"
 
 RDEPEND="rpc? ( net-libs/libtirpc )
        selinux? ( sys-libs/libselinux )"
@@ -62,8 +62,6 @@ target() {
 }
 
 src_configure() {
-       use static && append-ldflags -static
-
        append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
        append-cppflags $(usex ipv6 -{D,U}HASIPv6)
        [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX