Fixing gcc 3.3 compile failures -- kde ports proposal

Peter Kadau peter.kadau at
Sat Jul 19 13:09:18 PDT 2003

Hi !

Luckily the KDE ports are very uniform.
Applying the obvious, trivial patch to configure always works on
(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"
-        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...
(It needn't be so long though ;-)

Then put that patch in the files directory as - e.g. -

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"
+       cd ${WRKSRC} && patch < ${FILESDIR}/current-patch-configure
 .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...


More information about the freebsd-current mailing list