Bug 183444

Summary: net/gpxe misses isolinux.bin
Product: Ports & Packages Reporter: basarevych
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description basarevych 2013-10-29 14:40:00 UTC
previous version is installed but when I try to update:

# cd /usr/ports/net/gpxe
# make build deinstall reinstall clean

..

  [ZBIN] bin/gpxe.dsk.zbin
  [ZBIN] bin/gpxe.lkrn.zbin
  [ZBIN] bin/gpxe.hd.zbin
  [ZBIN] bin/undionly.kpxe.zbin
  [FINISH] bin/gpxe.dsk
  [FINISH] bin/gpxe.lkrn
  [FINISH] bin/undionly.kpxe
  [GENISO] bin/gpxe.iso
util/geniso: util/isolinux.bin not found, please install, or set ISOLINUX_BIN in arch/i386/Makefile correctly
gmake: *** [bin/gpxe.iso] Error 1
gmake: *** Waiting for unfinished jobs....
rm bin/gpxe.dsk.zinfo bin/gpxe.lkrn.zinfo bin/gpxe.lkrn.zbin bin/gpxe.dsk.zbin bin/gpxe.hd.zbin bin/gpxe.lkrn.bin bin/undionly.kpxe.zinfo bin/gpxe.hd.bin bin/gpxe.hd.zinfo bin/undionly.kpxe.bin bin/gpxe.lkrn bin/gpxe.dsk.bin bin/undionly.kpxe.zbin
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-10-29 19:35:24 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-29 19:35:42 UTC
Maintainer of net/gpxe,

Please note that PR ports/183444 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/183444

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-29 19:35:43 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-02-08 09:29:25 UTC
Author: antoine
Date: Sat Feb  8 09:29:17 2014
New Revision: 343313
URL: http://svnweb.freebsd.org/changeset/ports/343313
QAT: https://qat.redports.org/buildarchive/r343313/

Log:
  Mark broken: fails to build
  
  On 8 and 9:
    [GENISO] bin/gpxe.iso
  util/geniso: util/isolinux.bin not found, please install, or set ISOLINUX_BIN in arch/i386/Makefile correctly
  gmake: *** [bin/gpxe.iso] Error 1
  
  On 10 and head:
  lots of
  gcc: not found
  
  Reported by:	pkg-fallout (since september 2013)
  PR:		183444 (reports the brokenness to maintainer)
  With hat:	portmgr

Modified:
  head/net/gpxe/Makefile

Modified: head/net/gpxe/Makefile
==============================================================================
--- head/net/gpxe/Makefile	Sat Feb  8 09:26:43 2014	(r343312)
+++ head/net/gpxe/Makefile	Sat Feb  8 09:29:17 2014	(r343313)
@@ -11,6 +11,8 @@ MASTER_SITES=	http://etherboot.org/rel/g
 MAINTAINER=	gk.freebsd@googlemail.com
 COMMENT=	Create an open-source PXE implementation and bootloader
 
+BROKEN=		Fails to build
+
 LICENSE=	GPLv2
 
 BUILD_DEPENDS=	syslinux:${PORTSDIR}/sysutils/syslinux
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-04-21 09:10:02 UTC
Author: ohauer
Date: Mon Apr 21 08:09:57 2014
New Revision: 351669
URL: http://svnweb.freebsd.org/changeset/ports/351669
QAT: https://qat.redports.org/buildarchive/r351669/

Log:
  - fix build on FreeBSD <= 10
  - add stage support
  
  PR:		186559 [1]
  PR:		183444
  Submitted by:	ohauer [1]
  Approved by:	maintainer-timeout

Modified:
  head/net/gpxe/Makefile
  head/net/gpxe/files/patch-arch__i386__Makefile

Modified: head/net/gpxe/Makefile
==============================================================================
--- head/net/gpxe/Makefile	Mon Apr 21 07:52:16 2014	(r351668)
+++ head/net/gpxe/Makefile	Mon Apr 21 08:09:57 2014	(r351669)
@@ -9,15 +9,13 @@ MASTER_SITES=	http://etherboot.org/rel/g
 		http://slackware.cs.utah.edu/pub/kernel.org/pub/software/utils/boot/gpxe/
 
 MAINTAINER=	gk.freebsd@googlemail.com
-COMMENT=	Create an open-source PXE implementation and bootloader
-
-BROKEN=		Fails to build
+COMMENT=	Open Source (GPL) gPXE network bootloader
 
 LICENSE=	GPLv2
 
-BUILD_DEPENDS=	syslinux:${PORTSDIR}/sysutils/syslinux
+BUILD_DEPENDS=	syslinux:${PORTSDIR}/sysutils/syslinux \
+		mkisofs:${PORTSDIR}/sysutils/cdrtools
 
-USE_CDRTOOLS=	yes
 USES=		gmake perl5
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
 
@@ -28,26 +26,32 @@ PLIST_FILES=	%%DATADIR%%/gpxe.dsk \
 
 SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 ONLY_FOR_ARCHS=		amd64 i386
 ONLY_FOR_ARCHS_REASON=	not yet ported to anything other than amd64/i386
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
+BROKEN=	does not build on FreeBSD 10.x and later
+.endif
+
 .if ${ARCH} == "amd64"
 MAKE_ARGS+=	ARCH=i386
 .endif
 
+ISOLINUX_BIN?=	${LOCALBASE}/share/syslinux/bios/core/isolinux.bin
+
 post-patch:
-	@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/arch/i386/Makefile
+	@${REINPLACE_CMD} "s|%%WRKSRC%%|${WRKSRC}|" ${WRKSRC}/arch/i386/Makefile
 
-do-install:
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.dsk ${DATADIR}
-	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.usb ${DATADIR}
-	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.iso ${DATADIR}
+pre-build:
+# ISO creation fails if isolinux.bin is read only
+	${INSTALL} -m 644 ${ISOLINUX_BIN} ${WRKSRC}
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.dsk ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.usb ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.iso ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>

Modified: head/net/gpxe/files/patch-arch__i386__Makefile
==============================================================================
--- head/net/gpxe/files/patch-arch__i386__Makefile	Mon Apr 21 07:52:16 2014	(r351668)
+++ head/net/gpxe/files/patch-arch__i386__Makefile	Mon Apr 21 08:09:57 2014	(r351669)
@@ -1,12 +1,12 @@
 --- ./arch/i386/Makefile.orig	2010-06-29 21:31:33.000000000 +0200
-+++ ./arch/i386/Makefile	2010-08-07 16:06:23.000000000 +0200
-@@ -72,7 +72,8 @@
++++ ./arch/i386/Makefile	2014-02-08 11:45:50.000000000 +0100
+@@ -71,8 +71,7 @@
+ #
  ISOLINUX_BIN_LIST	:= \
  	$(ISOLINUX_BIN) \
- 	/usr/lib/syslinux/isolinux.bin \
+-	/usr/lib/syslinux/isolinux.bin \
 -	/usr/share/syslinux/isolinux.bin
-+	%%PREFIX%%/share/syslinux/isolinux.bin \
-+	%%PREFIX%%/share/syslinux/isolinux.bin
++	%%WRKSRC%%/isolinux.bin
  ISOLINUX_BIN	= $(firstword $(wildcard $(ISOLINUX_BIN_LIST)))
  
  # i386-specific directories containing source files
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Olli Hauer freebsd_committer freebsd_triage 2014-04-21 09:14:16 UTC
State Changed
From-To: feedback->closed

- Fix build on FreeBSD <= 10 in r351669