From owner-freebsd-ports Wed Oct 2 19:50:10 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD28537B422 for ; Wed, 2 Oct 2002 19:50:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0BC843E42 for ; Wed, 2 Oct 2002 19:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g932o4Co070874 for ; Wed, 2 Oct 2002 19:50:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g932o4Nw070873; Wed, 2 Oct 2002 19:50:04 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5BBF37B401; Wed, 2 Oct 2002 19:49:25 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1304743E42; Wed, 2 Oct 2002 19:49:25 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g932nu8A011787; Wed, 2 Oct 2002 22:49:57 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g932nuNS011786; Wed, 2 Oct 2002 22:49:56 -0400 (EDT) Message-Id: <200210030249.g932nuNS011786@dibbler.ne.client2.attbi.com> Date: Wed, 2 Oct 2002 22:49:56 -0400 (EDT) From: Craig Rodrigues Reply-To: Craig Rodrigues To: FreeBSD-gnats-submit@FreeBSD.org Cc: anders@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/43609: C++ compilation fixes for net/pxe Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43609 >Category: ports >Synopsis: C++ compilation fixes for net/pxe >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 02 19:50:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD dibbler.ne.client2.attbi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sun Sep 8 09:39:46 EDT 2002 rodrigc@dibbler.ne.client2.attbi.com:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: net/pxe does not compile with gcc 3.2 >How-To-Repeat: >Fix: This contains a fix, and an upgrade of the port to pxe-1.3. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pxe # pxe/files # pxe/files/patch-logfile.cc # pxe/Makefile # pxe/distinfo # pxe/pkg-comment # pxe/pkg-descr # pxe/pkg-plist # echo c - pxe mkdir -p pxe > /dev/null 2>&1 echo c - pxe/files mkdir -p pxe/files > /dev/null 2>&1 echo x - pxe/files/patch-logfile.cc sed 's/^X//' >pxe/files/patch-logfile.cc << 'END-of-pxe/files/patch-logfile.cc' X--- logfile.cc.orig Wed Oct 2 22:41:50 2002 X+++ logfile.cc Wed Oct 2 22:42:09 2002 X@@ -58,12 +58,13 @@ X { X /* open the file */ X umask(077); X- logfile = new std::fstream(filename, std::ios::out|std::ios::app, 0644); X+ logfile = new std::fstream(filename, std::ios::out|std::ios::app); X if(logfile == NULL) X { X std::cerr << "Error: LogFile::Open:open(): " << strerror(errno) <<"\n"; X exit(-1); X } X+ chmod(filename, 0644); X } X X END-of-pxe/files/patch-logfile.cc echo x - pxe/Makefile sed 's/^X//' >pxe/Makefile << 'END-of-pxe/Makefile' X# New ports collection makefile for: pxe X# Date created: 7 April 2002 X# Whom: Anders Nordby X# X# $FreeBSD: ports/net/pxe/Makefile,v 1.1 2002/04/07 21:35:45 anders Exp $ X# X XPORTNAME= pxe XPORTVERSION= 1.3 XCATEGORIES= net XMASTER_SITES= http://www.kano.org.uk/projects/pxe/ \ X ftp://ftp.nuug.no/pub/anders/distfiles/ X XMAINTAINER= anders@FreeBSD.org X XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= --with-config=${PREFIX}/etc/pxe.conf \ X --with-log=/var/log/pxe.log \ X --with-setuid=nobody X XDOCS= Changes INSTALL LICENCE README X Xpost-patch: X ${PERL} -pi -e "s,^CFLAGS.*,CFLAGS=\t\@CFLAGS\@,; \ X s,^CC.*,CC=\t${CXX}," \ X ${WRKSRC}/Makefile.in X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/pxe ${PREFIX}/sbin/ X ${INSTALL_DATA} ${WRKSRC}/pxe.conf ${PREFIX}/etc/pxe.conf.sample X.if !defined(NOPORTDOCS) X @${INSTALL} -d -m 0755 ${DOCSDIR} X.for f in ${DOCS} X ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ X.endfor X.endif X X.include END-of-pxe/Makefile echo x - pxe/distinfo sed 's/^X//' >pxe/distinfo << 'END-of-pxe/distinfo' XMD5 (pxe-1.3.tar.gz) = 3866c86ddada2bd4a4a01bb8b79cc951 END-of-pxe/distinfo echo x - pxe/pkg-comment sed 's/^X//' >pxe/pkg-comment << 'END-of-pxe/pkg-comment' XPXE daemon, set up a boot menu for netbooting PXE enabled clients END-of-pxe/pkg-comment echo x - pxe/pkg-descr sed 's/^X//' >pxe/pkg-descr << 'END-of-pxe/pkg-descr' XThis is a PXE daemon, which you can use to set up a networked boot menu for Xnetbooting client machines (FreeBSD, Linux, Windows, etc.) that support & Xutilize Intel's Preboot eXecution Environment (PXE). X XWWW: http://www.kano.org.uk/projects/pxe/ X X- Anders Nordby END-of-pxe/pkg-descr echo x - pxe/pkg-plist sed 's/^X//' >pxe/pkg-plist << 'END-of-pxe/pkg-plist' Xsbin/pxe Xetc/pxe.conf.sample X%%PORTDOCS%%share/doc/pxe/Changes X%%PORTDOCS%%share/doc/pxe/INSTALL X%%PORTDOCS%%share/doc/pxe/LICENCE X%%PORTDOCS%%share/doc/pxe/README X%%PORTDOCS%%@dirrm share/doc/pxe END-of-pxe/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message