Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2018 08:19:19 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481327 - head/Mk/Scripts
Message-ID:  <201810060819.w968JJtc059593@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sat Oct  6 08:19:19 2018
New Revision: 481327
URL: https://svnweb.freebsd.org/changeset/ports/481327

Log:
  Use full path to file(1) from base as sysutils/file is buggy
  
  PR:		231554

Modified:
  head/Mk/Scripts/find-lib.sh

Modified: head/Mk/Scripts/find-lib.sh
==============================================================================
--- head/Mk/Scripts/find-lib.sh	Sat Oct  6 07:33:02 2018	(r481326)
+++ head/Mk/Scripts/find-lib.sh	Sat Oct  6 08:19:19 2018	(r481327)
@@ -27,7 +27,7 @@ dirs="${LIB_DIRS} $(cat ${LOCALBASE}/libdata/ldconfig/
 for libdir in ${dirs} ; do
 	test -f ${libdir}/${lib} || continue
 	libfile=${libdir}/${lib}
-	[ "$(file -b -L --mime-type ${libfile})" = "application/x-sharedlib" ] || continue
+	[ "$(/usr/bin/file -b -L --mime-type ${libfile})" = "application/x-sharedlib" ] || continue
 	echo $libfile
 	break
 done



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