1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

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
This commit is contained in:
Tobias Kortkamp 2017-08-08 20:00:00 +00:00
parent 7ddaa7a11c
commit c7cf918e83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447572
2 changed files with 18 additions and 29 deletions

View File

@ -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/isolinux.bin:sysutils/sysli
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

View File

@ -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