svn commit: r504632 - head/emulators/xen-kernel

Roger Pau Monné royger at FreeBSD.org
Thu Jun 20 15:25:43 UTC 2019


Author: royger (src committer)
Date: Thu Jun 20 15:25:42 2019
New Revision: 504632
URL: https://svnweb.freebsd.org/changeset/ports/504632

Log:
  emulators/xen-kernel: use binutils to workaround LLD 8 bug
  
  LLD 8 changed the behaviour regarding the placement of orphaned
  sections, which produces a non-bootable Xen kernel:
  
  https://bugs.llvm.org/show_bug.cgi?id=42327
  
  Switch to GNU LD (and NM) until this is resolved.
  
  Sponsored by:		Citrix Systems R&D
  Reviewed by:		mat
  Differential revision:	https://reviews.freebsd.org/D20706

Modified:
  head/emulators/xen-kernel/Makefile

Modified: head/emulators/xen-kernel/Makefile
==============================================================================
--- head/emulators/xen-kernel/Makefile	Thu Jun 20 15:21:40 2019	(r504631)
+++ head/emulators/xen-kernel/Makefile	Thu Jun 20 15:25:42 2019	(r504632)
@@ -2,7 +2,7 @@
 
 PORTNAME=	xen
 PORTVERSION=	4.12.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	emulators
 MASTER_SITES=	http://downloads.xenproject.org/release/xen/${PORTVERSION}/
 PKGNAMESUFFIX=	-kernel
@@ -15,10 +15,17 @@ LICENSE=	GPLv2
 ONLY_FOR_ARCHS=	amd64
 
 USES=		cpe gmake python:2.7,build
+# LLD 8 changed the behaviour re the placement of orphaned sections, which
+# produces a non-bootable Xen kernel:
+#
+# https://bugs.llvm.org/show_bug.cgi?id=42327
+#
+# Switch to GNU LD (and NM) until this is resolved.
+USE_BINUTILS=	yes
 # Ports build environment has ARCH=amd64 set which disables Xen automatic arch
 # detection, but amd64 is not a valid arch for Xen. Hardcode x86_64 on the
 # command line in order to overwrite the one from the environment.
-MAKE_ARGS=	clang=y PYTHON=${PYTHON_CMD} ARCH=x86_64
+MAKE_ARGS=	clang=y PYTHON=${PYTHON_CMD} ARCH=x86_64 LD=${LD} NM=${NM}
 NO_MTREE=	yes
 STRIP=		#
 PLIST_FILES=	/boot/xen \


More information about the svn-ports-head mailing list