Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2020 08:17:14 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r552314 - head/sysutils/lsof
Message-ID:  <202010140817.09E8HEJB069100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Oct 14 08:17:14 2020
New Revision: 552314
URL: https://svnweb.freebsd.org/changeset/ports/552314

Log:
  sysutils/lsof: replace architecture check with compiler check
  
  This issue happens only when GCC is in use, it doesn't happen with clang. Since the package changes, bump PORTREVISION.
  
  This also fixes build on e.g. mips64 stable/12.
  
  MFH:		2020Q4 (fix build blanket)

Modified:
  head/sysutils/lsof/Makefile

Modified: head/sysutils/lsof/Makefile
==============================================================================
--- head/sysutils/lsof/Makefile	Wed Oct 14 08:15:26 2020	(r552313)
+++ head/sysutils/lsof/Makefile	Wed Oct 14 08:17:14 2020	(r552314)
@@ -6,7 +6,7 @@
 
 PORTNAME=	lsof
 DISTVERSION=	4.93.2
-PORTREVISION=	12
+PORTREVISION=	13
 PORTEPOCH=	8
 CATEGORIES=	sysutils
 
@@ -18,7 +18,7 @@ LICENSE_NAME=	lsof
 LICENSE_FILE=	${FILESDIR}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-USES=		shebangfix tar:bzip2
+USES=		compiler shebangfix tar:bzip2
 
 HAS_CONFIGURE=	yes
 
@@ -45,9 +45,9 @@ CONFIGURE_SCRIPT=	Configure
 CONFIGURE_ARGS=	-n freebsd
 CONFIGURE_ENV=	LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"
 
-# PPC64 needs -lzpool for reasons unknown.  If someone can
+# GCC needs -lzfs -lzpool for reasons unknown.  If someone can
 # figure out why, I (ler) am all ears.
-.if ${ARCH} == powerpc64 || ${ARCH} == powerpc
+.if ${CHOSEN_COMPILER_TYPE} == gcc
 CONFIGURE_ENV+=	LSOF_CFGL="-lzfs -lzpool"
 . endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010140817.09E8HEJB069100>