From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 14 13:20:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 819BA1065673 for ; Wed, 14 Sep 2011 13:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 406A58FC18 for ; Wed, 14 Sep 2011 13:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8EDK86B056953 for ; Wed, 14 Sep 2011 13:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8EDK8uv056952; Wed, 14 Sep 2011 13:20:08 GMT (envelope-from gnats) Resent-Date: Wed, 14 Sep 2011 13:20:08 GMT Resent-Message-Id: <201109141320.p8EDK8uv056952@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gürkan Karaman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 756371065673 for ; Wed, 14 Sep 2011 13:12:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 65CE68FC15 for ; Wed, 14 Sep 2011 13:12:46 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8EDCk4p007043 for ; Wed, 14 Sep 2011 13:12:46 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8EDCk5g007033; Wed, 14 Sep 2011 13:12:46 GMT (envelope-from nobody) Message-Id: <201109141312.p8EDCk5g007033@red.freebsd.org> Date: Wed, 14 Sep 2011 13:12:46 GMT From: Gürkan Karaman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/160734: Fix port broken and amd64 problem X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2011 13:20:08 -0000 >Number: 160734 >Category: ports >Synopsis: Fix port broken and amd64 problem >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Sep 14 13:20:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Gürkan Karaman >Release: 7.1 >Organization: >Environment: >Description: Gpxe use gcc compiler options to create 32-bit output. I hope my patch is correct. I have tested it on a amd64 machine. >How-To-Repeat: >Fix: see patch file Patch attached with submission follows: --- Makefile.orig 2011-01-13 10:44:23.000000000 +0100 +++ Makefile 2011-09-14 13:31:41.000000000 +0200 @@ -2,7 +2,7 @@ # Date created: 27-02-2010 # Whom: Guerkan Karaman # -# $FreeBSD: ports/net/gpxe/Makefile,v 1.3 2011/01/13 09:44:23 erwin Exp $ +# $FreeBSD$ # PORTNAME= gpxe @@ -14,17 +14,14 @@ MAINTAINER= gk.freebsd@googlemail.com COMMENT= Create an open-source PXE implementation and bootloader -BUILD_DEPENDS= syslinux:${PORTSDIR}/sysutils/syslinux - -BROKEN= does not build - LICENSE= GPLv2 +BUILD_DEPENDS= syslinux:${PORTSDIR}/sysutils/syslinux + USE_BZIP2= yes USE_GMAKE= yes USE_CDRTOOLS= yes WRKSRC= ${WRKDIR}/${DISTNAME}/src -ONLY_FOR_ARCHS= i386 PLIST_DIRS= %%DATADIR%% PLIST_FILES= %%DATADIR%%/gpxe.dsk \ @@ -33,6 +30,12 @@ SUB_FILES= pkg-message +.include + +.if ${ARCH} == "amd64" +MAKE_ARGS+= ARCH=i386 +.endif + post-patch: @${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/arch/i386/Makefile @@ -45,4 +48,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include >Release-Note: >Audit-Trail: >Unformatted: