From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jan 3 13:10:22 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C96E316A4CE for ; Sat, 3 Jan 2004 13:10:22 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52BC843D5A for ; Sat, 3 Jan 2004 13:10:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i03LA8FR021451 for ; Sat, 3 Jan 2004 13:10:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i03LA8b9021450; Sat, 3 Jan 2004 13:10:08 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 3 Jan 2004 13:10:08 -0800 (PST) Resent-Message-Id: <200401032110.i03LA8b9021450@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, "Samy Al Bahra" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFB7A16A4CE for ; Sat, 3 Jan 2004 13:02:10 -0800 (PST) Received: from pimout5-ext.prodigy.net (pimout5-ext.prodigy.net [207.115.63.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FF8143D5D for ; Sat, 3 Jan 2004 13:02:03 -0800 (PST) (envelope-from "") Received: from sentinel.erased.us (adsl-68-76-187-158.dsl.akrnoh.ameritech.net [68.76.187.158])i03L226R431034 for ; Sat, 3 Jan 2004 16:02:02 -0500 Received: from [212.116.200.127] (helo=beastie.freebsd.local) by sentinel.erased.us with esmtp (Exim 3.36 #1 (Debian)) id 1Acsw0-0004pE-00 for ; Sat, 03 Jan 2004 16:03:48 -0500 Message-Id: <1073163714@beastie.freebsd.local> Date: Sun, 4 Jan 2004 00:02:05 +2700 From: "Samy Al Bahra" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: gtk-send-pr 0.3 Subject: ports/60871: Fix net/pxe on 5.X X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2004 21:10:23 -0000 >Number: 60871 >Category: ports >Synopsis: Fix net/pxe on 5.X >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 03 13:10:07 PST 2004 >Closed-Date: >Last-Modified: >Originator: Samy Al Bahra >Release: FreeBSD 5.1-CURRENT i386 >Organization: Kerneled >Environment: System: FreeBSD beastie.freebsd.local 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 20 18:35:24 AST 2003 samy@beastie.freebsd.local:/usr/src/sys/i386/compile/KERNELED i386 >Description: net/pxe does not build on 5.X systems due to subset-style decleration being used (depreciated in gcc 3.X). The patch that follows fixes this issue by removing redundant braces and properly defining array of pointers. >How-To-Repeat: Build with gcc 3.X. >Fix: --- pxe.patch begins here --- diff -ruN pxe/Makefile /home/samy/tmp/pxe/Makefile --- pxe/Makefile Mon Dec 22 05:07:01 2003 +++ /home/samy/tmp/pxe/Makefile Sat Jan 3 17:26:37 2004 @@ -21,12 +21,6 @@ DOCS= Changes INSTALL LICENCE README -.include - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile on FreeBSD ${OSVERSION}" -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pxe ${PREFIX}/sbin/ ${INSTALL_DATA} ${WRKSRC}/pxe.conf ${PREFIX}/etc/pxe.conf.sample @@ -37,4 +31,4 @@ .endfor .endif -.include +.include diff -ruN pxe/files/patch-packetstore.cc /home/samy/tmp/pxe/files/patch-packetstore.cc --- pxe/files/patch-packetstore.cc Thu Jan 1 03:00:00 1970 +++ /home/samy/tmp/pxe/files/patch-packetstore.cc Sat Jan 3 17:26:04 2004 @@ -0,0 +1,15 @@ +--- packetstore.cc.orig Sat Jan 3 17:24:11 2004 ++++ packetstore.cc Sat Jan 3 17:25:31 2004 +@@ -26,9 +26,9 @@ + /* some global variables */ + const char *DHCP_types[DHCP_MAX_TYPES] = + { +- {"INVALID"}, {"DHCPDISCOVER"}, {"DHCPOFFER"}, {"DHCPREQUEST"}, +- {"DHCPDECLINE"}, {"DHCPACK"}, {"DHCPNACK"}, {"DHCPRELEASE"}, +- {"DHCPINFORM"} ++ "INVALID", "DHCPDISCOVER", "DHCPOFFER", "DHCPREQUEST", ++ "DHCPDECLINE", "DHCPACK", "DHCPNACK", "DHCPRELEASE", ++ "DHCPINFORM" + }; + + /****************************************************************************** --- pxe.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: