Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2017 20:00:00 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447572 - in head/net/ipxe: . files
Message-ID:  <201708082000.v78K00SE082758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Aug  8 20:00:00 2017
New Revision: 447572
URL: https://svnweb.freebsd.org/changeset/ports/447572

Log:
  When ld is lld net/ipxe fails to build with
  
  ld  -m elf_i386_fbsd -N --no-check-sections --section-start=.prefix=0   --gc-sections -static -o bin/usbdisk.bin --oformat binary -e 0 bin/usbdisk.o
  ld: error: unknown argument: --no-check-sections
  ld: error: unknown argument: --section-start=.prefix=0
  
  The port is supposed to use ld from devel/binutils but does not
  currently respect ${LD} (or any of the other binutils related
  variables) and always uses ld from base.  Make sure that the build
  actually uses the binutils from ports.
  
  While here:
  - Remove Perl runtime dependency
  - Pet portlint
  - Trim the pkg-message to the actually useful bits

Modified:
  head/net/ipxe/Makefile
  head/net/ipxe/files/pkg-message.in

Modified: head/net/ipxe/Makefile
==============================================================================
--- head/net/ipxe/Makefile	Tue Aug  8 19:54:35 2017	(r447571)
+++ head/net/ipxe/Makefile	Tue Aug  8 20:00:00 2017	(r447572)
@@ -5,7 +5,7 @@
 
 PORTNAME=	ipxe
 PORTVERSION=	20161208
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 
 MAINTAINER=	tobik@FreeBSD.org
@@ -17,6 +17,9 @@ BUILD_DEPENDS=	${LOCALBASE}/share/syslinux/bios/core/i
 		bash:shells/bash \
 		mkisofs:sysutils/cdrtools
 
+USES=		gmake perl5 shebangfix
+USE_BINUTILS=	yes
+USE_GCC=	yes
 USE_GITHUB=	yes
 GH_PROJECT=	ipxe
 # iPXE hasn't had a release since 2010.
@@ -28,16 +31,21 @@ GH_PROJECT=	ipxe
 #      to be production-ready.  You should always use the latest code.
 #
 GH_TAGNAME=	26050fd4c87c50503d5bd573b2ec91703676e211
+USE_PERL5=	build
 
-USES=		gmake perl5 shebangfix
-USE_BINUTILS=	yes
-USE_GCC=	yes
 MAKE_ARGS=	PERL=${PERL} \
 		CC=${CC} \
 		HOST_CC=${CC} \
+		AS=${AS} \
+		LD=${LD} \
+		SIZE=${SIZE} \
+		AR=${AR} \
+		RANLIB=${RANLIB} \
+		OBJCOPY=${OBJCOPY} \
+		NM=${NM} \
+		OBJDUMP=${OBJDUMP} \
 		NO_WERROR=1 \
 		V=1 \
-		OBJCOPY="${LOCALBASE}/bin/objcopy" \
 		ISOLINUX_BIN="${WRKSRC}/isolinux.bin" \
 		LDLINUX_C32="${LOCALBASE}/share/syslinux/bios/com32/elflink/ldlinux/ldlinux.c32"
 WRKSRC_SUBDIR=	src

Modified: head/net/ipxe/files/pkg-message.in
==============================================================================
--- head/net/ipxe/files/pkg-message.in	Tue Aug  8 19:54:35 2017	(r447571)
+++ head/net/ipxe/files/pkg-message.in	Tue Aug  8 20:00:00 2017	(r447572)
@@ -1,25 +1,6 @@
 The following files have been installed in %%DATADIR%%:
-
-* ipxe.dsk:  To create a bootable floppy run
-
-    dd if=%%DATADIR%%/ipxe.dsk of=/dev/fd0
-
-  where /dev/fd0 is your floppy drive.  This will erase any data
-  already on the disk.
-
-* ipxe.usb:  To create a bootable USB key run
-
-    dd if=%%DATADIR%%/ipxe.usb of=/dev/daX
-
-  where /dev/daX is your USB key, and is *not* a real hard disk on
-  your system.  This will erase any data already on the USB key.
-
-* ipxe.iso:  To create a bootable CD-ROM run
-
-    cdrecord %%DATADIR%%/ipxe.iso
-
-  to write the image to a blank CD.
-
-* ipxe.pxe:  For chainloading from a PXE ROM.
-
-* ipxe.lkrn:  For any boot manager that can boot Linux kernels.
+- ipxe.dsk for creating a bootable floppy disk
+- ipxe.usb for creating a bootable USB key
+- ipxe.iso for creating a bootable CD
+- ipxe.pxe for chainloading from a PXE ROM
+- ipxe.lkrn for any boot manager that can boot Linux kernels



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