Index: head/emulators/xen-kernel/Makefile =================================================================== --- head/emulators/xen-kernel/Makefile +++ head/emulators/xen-kernel/Makefile @@ -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 @@ 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 \