svn commit: r334791 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Thu Jun 7 16:16:23 UTC 2018


Author: bdrewery
Date: Thu Jun  7 16:16:22 2018
New Revision: 334791
URL: https://svnweb.freebsd.org/changeset/base/334791

Log:
  Stop using head(1) which is not available in installworld.
  
  installworld should not be executing this anyhow but there is some
  obscure case doing it still.  The head(1) binary is not part of
  ITOOLS and there's no need to add it.
  
  MFC after:	1 week
  Sponsored by:	Dell EMC

Modified:
  head/share/mk/bsd.linker.mk

Modified: head/share/mk/bsd.linker.mk
==============================================================================
--- head/share/mk/bsd.linker.mk	Thu Jun  7 15:59:08 2018	(r334790)
+++ head/share/mk/bsd.linker.mk	Thu Jun  7 16:16:22 2018	(r334791)
@@ -49,7 +49,7 @@ ${var}=	${${var}.${${X_}_ld_hash}}
 
 .if ${ld} == "LD" || (${ld} == "XLD" && ${XLD} != ${LD})
 .if !defined(${X_}LINKER_TYPE) || !defined(${X_}LINKER_VERSION)
-_ld_version!=	(${${ld}} --version || echo none) | head -n 1
+_ld_version!=	(${${ld}} --version || echo none) | sed -n '1,1p'
 .if ${_ld_version} == "none"
 .warning Unable to determine linker type from ${ld}=${${ld}}
 .endif


More information about the svn-src-head mailing list