From owner-freebsd-ports@FreeBSD.ORG Sat Jul 19 13:09:18 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E09337B401; Sat, 19 Jul 2003 13:09:18 -0700 (PDT) Received: from tuebingen.mpg.de (connect.tuebingen.mpg.de [192.124.26.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFE3943F3F; Sat, 19 Jul 2003 13:09:16 -0700 (PDT) (envelope-from peter.kadau@tuebingen.mpg.de) Received: from [217.229.193.35] ([217.229.193.35] verified) by tuebingen.mpg.de (CommuniGate Pro SMTP 4.0.6) with ESMTP id 4982899; Sat, 19 Jul 2003 22:09:15 +0200 From: Peter Kadau To: Kris Kennaway In-Reply-To: <20030718025200.GA36893@rot13.obsecurity.org> References: <20030718025200.GA36893@rot13.obsecurity.org> Content-Type: text/plain Message-Id: <1058645354.31104.18.camel@straycat> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 19 Jul 2003 22:09:14 +0200 Content-Transfer-Encoding: 7bit cc: ports@freebsd.org cc: current@freebsd.org Subject: Re: Fixing gcc 3.3 compile failures -- kde ports proposal X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2003 20:09:18 -0000 Hi ! Luckily the KDE ports are very uniform. Applying the obvious, trivial patch to configure always works on current. (Of course only since the patch utility is clever enough to try the hunk at different offsets...): --- configure.orig Sat Jul 19 16:54:39 2003 +++ configure Sat Jul 19 16:55:37 2003 @@ -4236,7 +4236,7 @@ CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS" ;; esac - CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS" + CXXFLAGS="-Wall -pedantic -fpermissive -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS" echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5 echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6 (Beware of newlines when doing cut-and-paste). But that would break things on non-current. So how about setting a variable in /etc/make.conf ? I think for the time being this is not too much for a current-user... MY_CXX_BAILS_OUT_ON_KDE_CONFIGURE=yo (It needn't be so long though ;-) Then put that patch in the files directory as - e.g. - `current-patch-configure'. And change the ports Makefile along the lines of the following patch for koffice: --- Makefile.orig Sat Jul 19 21:48:15 2003 +++ Makefile Sat Jul 19 21:49:34 2003 @@ -38,4 +38,9 @@ .include "${.CURDIR}/../../x11/kde3/Makefile.kde" +.ifdef MY_CXX_BAILS_OUT_ON_KDE_CONFIGURE +pre-configure: + cd ${WRKSRC} && patch < ${FILESDIR}/current-patch-configure +.endif + .include With those settings, I could do a forced upgrade for everything. I know this can't be the clean, now-we-all-are-happy-solution. But as I already mentioned - for the time being... Cheers Peter