From owner-svn-ports-head@freebsd.org Tue Aug 8 20:00:01 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70C61DCD224; Tue, 8 Aug 2017 20:00:01 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF1C7196A; Tue, 8 Aug 2017 20:00:01 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v78K00BE082760; Tue, 8 Aug 2017 20:00:00 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v78K00SE082758; Tue, 8 Aug 2017 20:00:00 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201708082000.v78K00SE082758@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 8 Aug 2017 20:00:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447572 - in head/net/ipxe: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/net/ipxe: . files X-SVN-Commit-Revision: 447572 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2017 20:00:01 -0000 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